RPGHacker / asar

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

why in narwhal is pc() not considered a label #307

Open Alcaro opened 5 months ago

Alcaro commented 5 months ago

which of you were asleep at the wheel when adding that

[23:58:34]  <Sir Walrus> !rb as2
org $008000
lda walrus,x
if pc() == $008003
walrus
endif
walrus = $018000
[23:58:34]  <randombot999#8226> Errors occurred while assembling.
: error: (Einternal_error): An internal error occured (phantom error). This is a bug in Asar, please report it at https://github.com/RPGHacker/asar/issues, along with a patch that reproduces it if possible.
Alcaro commented 5 months ago

the issue reproduces with realbase(), !rb as19, or both

it does not reproduce with !rb as, but that's just because it's 1.81 and pc() and realbase() aren't implemented yet