RPGHacker / asar

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

[Asar2] Phantom Error when using array indices #285

Closed hellow554 closed 10 months ago

hellow554 commented 1 year ago

This code produces the following error:

org $8000

dw BgmArray[0]

BgmArray:
    dw 0

: error: (Ephantom_error): A phantom error occurred. This is an Asar bug, please report it: https://github.com/RPGHacker/asar/issues

If you replace BgmArray[0] with BgmArray+0, it works, but I like the array syntax more, because BgmArray is a struct in my case, not a simple label.

randomdude999 commented 10 months ago

phantom error fixed, and this syntax now works with all structs. (doesn't work with regular labels though, asar has no clue what their size should be.)