jacobly0 / fasmg-ez80

fasmg ez80 include files
22 stars 5 forks source link

Labels as expressions not in LAB file #15

Closed PeterTillema closed 3 years ago

PeterTillema commented 3 years ago

If you have a label to which an expression is assigned, like label = $+2, it won't get added to the lab file using symbol_table.inc. "normal" labels, like label: are just fine.

Test code:

include 'ez80.inc'
include 'ti84pceg.inc'
include 'tiformat.inc'
include 'symbol_table.inc'
format ti executable 'HELLO'

    or  a, a
    sbc hl, hl
    ld  (curRow), hl
    ld  hl, hello
    call    dplay
    jp  _NewLine

hello = $
    db "Hello", 0

dplay:
    jp  _PutS

Lab output:

dplay = 13740186
PeterTillema commented 3 years ago

Closing this as it can be "fixed" using := rather than =.