RPGHacker / asar

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

Asar ignores extraneous parentheses after macro calls #295

Closed RPGHacker closed 10 months ago

RPGHacker commented 10 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.