Add support for the GBZ80, Z180, and eZ80 variants of the Z80 architecure. Add an...
[deliverable/binutils-gdb.git] / gas / testsuite / gas / z80 / z80_reloc.s
1 .text
2 .globl glb_proc
3 .globl data8
4 .globl data16
5 .globl data24
6 .globl data32
7 .L_proc:
8 ld (hl),.L_proc >> 0
9 inc hl
10 ld (hl),.L_proc >> 8
11 inc hl
12 ld (hl),(glb_proc) & 0xff
13 inc hl
14 ld (hl),glb_proc >> 8
15 inc hl
16 ld (hl),glb_proc >> 16
17 inc hl
18 ld (hl),glb_proc >> 24
19 ld bc,.L_label
20 ld de,glb_proc >> 0
21 ld hl,glb_proc >> 16
22 djnz start
23 ld a,data8
24 ret
25 .L_label:
26 .db data8
27 .dw data16
28 .d24 data24
29 .d32 data32
30 .db data16 & 0xff
31 .db data16 >> 8
32 .dw data32 & 0xffff
33 .dw data32 >> 16
34 .end
This page took 0.038901 seconds and 4 git commands to generate.