collapseos/apps/zasm/tests/test1.asm
Virgil Dupras 2c0166814f zasm: support inline labels
That is, labels with code following right afterwards.
2019-05-14 14:10:20 -04:00

16 lines
198 B
NASM

; comment
add a, b ; comment
label1:
inc a ; comment
ld hl, label2
.dw label2
; comment
.db 42
label2: .dw 0x42
.dw 3742
.dw 0x3742
ld a, (label1)
.equ foo 0x1234
.equ bar foo
ld hl, bar