Closed clarkeaa closed 7 years ago
Thank you for letting me know about this. The issue comes up if .endm is indented or there is any extra spaces after .endm. The code was unintentionally written to look for .endm on a line by itself.
I never noticed it because I typically never indent lines that start with a dot. I'm going to make some more changes in the macro code later since that's the wrong error message for a missing .endm, but for now this should take care of your issue. Please let me know if anything else comes up.
offending code:
build command:
naken_asm -b red.asm -o red.bin
output:
I saw this problem with b3aaff8095a560dedffa03cfb294c08cc6c05274. Removing the macro block fixes compilation. I expected this code to work. I've attempted to paste in your example macros and they also cause the same problem.