RPGHacker / asar

(Now) official repository of the SNES assembler Asar, originally created by Alcaro
Other
195 stars 42 forks source link

Asar ignores extraneous parentheses after macro calls #295

Closed RPGHacker closed 6 months ago

RPGHacker commented 6 months ago
!rb as -b asar_2_beta
macro legit_macro()
  dw $8000
endmacro

%legit_macro()(this part is ignored)

This produces the following output from randombot:

00 80

This seems odd. I'd definitely say the extraneous parentheses after the macro call should trip Asar up in some way. Combined with defines, this helped a funny bug sneak into one of my patches.