diff --git a/TODO.txt b/TODO.txt index 52a2648c..b497e63e 100644 --- a/TODO.txt +++ b/TODO.txt @@ -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 diff --git a/sjasm/io_trd.cpp b/sjasm/io_trd.cpp index 17f6705a..0c87b3d9 100644 --- a/sjasm/io_trd.cpp +++ b/sjasm/io_trd.cpp @@ -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;