Skip to content

Commit

Permalink
fix 32b/win/raspberry compiling error
Browse files Browse the repository at this point in the history
  • Loading branch information
ped7g committed Jul 2, 2019
1 parent a8efbd3 commit 4453140
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions TODO.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ CSPECTMAP - needs better support for DISP and instances of STRUCT
--syntax: L options implementation
add DOCS example test: "hl: Ld a,(hl),,de,hl" when all is implemented

LABELS - forward reference - v DEFL/=/EQU pripadoch??! = sux??

SAVENEX - simplify it even more... probably keep memory zeroed, and make even zero bytes
"tainting" pages for AUTO command, so only things produced by user will land into NEX file.

static analysis: PVS-Studio https://www.viva64.com/en/m/0036/

FIXME in sources mark further points worth refactoring
Expand Down
2 changes: 1 addition & 1 deletion sjasm/io_trd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ int TRD_AddFile(char* fname, char* fhobname, int start, int length, int autostar
byte hobnamebin[9]; // prepare binary format of name (as on disc) (for replace search)
memset(hobnamebin,' ',9);
if (extLetter) hobnamebin[8] = extLetter;
memcpy(hobnamebin, fhobname, std::min(hobNameL, 8UL)); // binary form is 8+1 with spaces-padding
memcpy(hobnamebin, fhobname, std::min(hobNameL, size_t(8))); // binary form is 8+1 with spaces-padding
if (0 <= autostart && ('B' != extLetter || 9999 < autostart)) {
Warning("zx.trdimage_add_file: autostart value is BASIC program line number (0..9999) (in lua use -1 otherwise).");
autostart = -1;
Expand Down

0 comments on commit 4453140

Please sign in to comment.