RPGHacker / asar

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

[asar2] datasize does not work on local labels #319

Open hellow554 opened 2 months ago

hellow554 commented 2 months ago
org $8000

foo:
   LDA #datasize(.data)

.data:
    db 0, 1, 2, 3

.end
my.asm:4: error: (Elabel_not_found): Label '.data' wasn't found.
    in block: [LDA #datasize(.data)]

for global labels, it works fine though :)

hellow554 commented 2 months ago

Oh, and datasize is not documented anywhere 🙈