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