collapseos/apps/zasm/tests/test1.asm
Virgil Dupras d6f5cf5b90 zasm: fix first pass inversion bug
Also, confirm in tests that we can refer to other symbols in `.equ`.
2019-05-12 08:50:29 -04:00

17 lines
199 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