Closed anrikun closed 1 month ago
do you have a concrete example? there is a check and an error message in that case
unlabel
ld a,{sizeof}unlabel
[nostruct.asm:4] cannot SIZEOF unknown structure [UNLABEL]!
Here's a sample to reproduce the issue. main.asm.txt
Compiled running: "..\asm\rasm.exe" ./src/main.asm -o test3 -sw -sb -void
Compiled with: RASM v2.2.5 (build xx/06/2024) - Consolidation
Output: Pre-processing [./src/main.asm] Assembling -1.00 Write snapshot v3 file test3.sna WriteSNA bank 0,1,2,3 packed Total 4 banks (64K) Write symbol file test3.sym
Aaaaaaaaaaaaaaaaaahhh! nice example, will fix it quickly ;) THANKS
Thank you for the fix Edouard and also for the quick release!
In my code, I had:
add {sizeof}MyStruct
When debugging my code, I noticed that I had renamed theMyStruct
structure in the meantime forgetting to update this line. But RASM did not throw any error, and silently resolved{sizeof}MyStruct
as0xFF
I think this should throw an error.