Produces test.asm(2) error: Invalid expression due to the readu32 offset 0x12345678 being greater than the file size. However, nothing should happen since the readu32() occurs in a false block.
However, if a readu32() in a false block is passed an undefined label as the filename, then it does work. The following compiles without errors:
By the way, the error message for a non-existant file doesn't print correctly. .notice tohex(readu32("doesntexist.bin")) produces test.asm(1) error: Could not open 00D22220 where 00D22220 is a random memory address.
Given the following input .asm and an empty test.bin file:
Produces
test.asm(2) error: Invalid expression
due to the readu32 offset 0x12345678 being greater than the file size. However, nothing should happen since the readu32() occurs in a false block.However, if a readu32() in a false block is passed an undefined label as the filename, then it does work. The following compiles without errors:
By the way, the error message for a non-existant file doesn't print correctly.
.notice tohex(readu32("doesntexist.bin"))
producestest.asm(1) error: Could not open 00D22220
where 00D22220 is a random memory address.Using 91ad61a. Probably similar to #83.