Fix .endmacro not at the start of the line. Rename test files.

This commit is contained in:
mvax
2023-03-02 15:12:30 -05:00
parent 98d2d9ee4e
commit 3f2129894b
2 changed files with 0 additions and 0 deletions

30
test/asm/val/endmacro.s Normal file
View File

@@ -0,0 +1,30 @@
; for PR #2013
.import _exit
.export _main
; this macro is invalid, but should not cause an error (if it is never expanded)
.macro invalid
nop .endmacro
.endmacro
.define temp_endmac .endmacro
.macro new_mac
.define startmac .macro
.define endmac .endmacro
temp_endmac
.undefine temp_endmac
new_mac
startmac dex2
dex
dex
endmac
_main:
ldx #$02
dex2
; x should be zero
txa
jmp _exit