diff --git a/README.md b/README.md index 50f9490..5451e37 100644 --- a/README.md +++ b/README.md @@ -100,6 +100,9 @@ Primarily tested with personal archive of sources written for Kick assmebler, DA * irp (indefinite repeat) **FIXED** +* INCBIN and IMPORT BINARY always failed (force 0 bytes length) +* Using more than 16 bytes of Pool labels was flawed +* Fixed STRUCT directive (failed if contained line was empty) * Adding x65macro.i * Vice symbols will generate breakpoints whenever label 'debugbreak' is encountered * Evaluating '==' was broken diff --git a/x65.cpp b/x65.cpp index 3125ffc..9b4d6df 100644 --- a/x65.cpp +++ b/x65.cpp @@ -4599,7 +4599,7 @@ StatusCode Asm::Directive_Incbin(strref line, int skip, int len) size_t size = 0; if (char *buffer = LoadBinary(line, size)) { int bin_size = (int)size - skip; - if (bin_size>len) + if (len && bin_size>len) bin_size = len; if (bin_size>0) AddBin((const unsigned char*)buffer+skip, bin_size);