collapseos/tests/zasm/test1.asm

31 lines
398 B
NASM
Raw Normal View History

; comment
add a, b ; comment
2019-05-09 21:21:08 -04:00
label1:
inc a ; comment
ld hl, label2
2019-05-10 21:17:19 -04:00
.dw label2
; comment
.db 42, 54
label2: .dw 0x42
.dw 3742, 0xffff
2019-05-09 22:14:11 -04:00
.dw 0x3742
2019-05-09 21:21:08 -04:00
ld a, (label1)
rla \ rla
.equ foo 0x1234
.equ bar foo
ld hl, bar
2019-05-17 17:43:42 -04:00
ld ix, 1234
ld iy, 2345
ld (ix+1), l
ld l, (ix-1)
2019-05-17 23:01:29 -04:00
ld hl, 0x100
.equ baz 0x20
; accept space before comma
ld b , baz-3
rl d
rr e
2019-05-18 19:59:31 -04:00
rlc c
cp '-'
sbc hl, de
.fill 0x50-$