1ldhilo : MACRO
2    ld  HIGH(\1),LOW(\2)
3ENDM
4
5SECTION "r0", ROM0[$0]
6ld HIGH(af),a
7ld HIGH(bc),LOW(bc)
8ld LOW(bc),HIGH(bc)
9ld HIGH(de),LOW(de)
10ld LOW(de),HIGH(de)
11    ldhilo hl, hl
12ld LOW(hl),HIGH(hl)
13
14db HIGH(label+$AB)
15db LOW(label+$AB)
16
17db HIGH($1234)
18db LOW($1234)
19
20SECTION "o",OAM
21DS $10
22label:
23