mirror of
https://github.com/hsoft/collapseos.git
synced 2024-11-17 07:08:05 +11:00
d6f5cf5b90
Also, confirm in tests that we can refer to other symbols in `.equ`.
17 lines
199 B
NASM
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
|