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