1 #name
: eZ80 backward relocation
in ADL mode
3 #source
: relocs
.s
--defsym ADLMODE
=1
5 #ld
: -e
0 -Ttext
0x100 -Tdata
0x200 -s
8 .*:[ ]+file
format (coff
)|
(elf32
)\
-z80
20 106:[ ]+7e
[ ]+ld a
,\
(hl\
)
23 109:[ ]+cd
00 01 00[ ]+call 0x0100
24 10d:[ ]+c4
01 01 00[ ]+call nz
,0x0101
25 111:[ ]+cc
02 01 00[ ]+call z
,0x0102
26 115:[ ]+d4
03 01 00[ ]+call nc
,0x0103
27 119:[ ]+dc
04 01 00[ ]+call c
,0x0104
28 11d:[ ]+e4
05 01 00[ ]+call po
,0x0105
29 121:[ ]+ec
06 01 00[ ]+call pe
,0x0106
30 125:[ ]+f4
07 01 00[ ]+call p
,0x0107
31 129:[ ]+fc
08 01 00[ ]+call m
,0x0108
32 12d:[ ]+c3
00 01 00[ ]+jp 0x0100
33 131:[ ]+c2
01 01 00[ ]+jp nz
,0x0101
34 135:[ ]+ca
02 01 00[ ]+jp z
,0x0102
35 139:[ ]+d2
03 01 00[ ]+jp nc
,0x0103
36 13d:[ ]+da 04 01 00[ ]+jp c
,0x0104
37 141:[ ]+e2
05 01 00[ ]+jp po
,0x0105
38 145:[ ]+ea
06 01 00[ ]+jp pe
,0x0106
39 149:[ ]+f2
07 01 00[ ]+jp p
,0x0107
40 14d:[ ]+fa
08 01 00[ ]+jp m
,0x0108
41 151:[ ]+dd 6e
05[ ]+ld l
,\
(ix\
+5\
)
42 154:[ ]+dd 7e
03[ ]+ld a
,\
(ix\
+3\
)
43 157:[ ]+dd 4e fa
[ ]+ld c
,\
(ix\
-6\
)
44 15a
:[ ]+dd 46 f9
[ ]+ld b
,\
(ix\
-7\
)
45 15d:[ ]+fd
75 fb
[ ]+ld \
(iy\
-5\
),l
46 160:[ ]+fd
77 03[ ]+ld \
(iy\
+3\
),a
47 163:[ ]+fd
71 0e
[ ]+ld \
(iy\
+14\
),c
48 166:[ ]+fd
70 0f[ ]+ld \
(iy\
+15\
),b
49 169:[ ]+fd
66 5d[ ]+ld h
,\
(iy\
+93\
)
50 16c
:[ ]+49 11 34 12[ ]+ld\
.lis
de,0x1234
51 170:[ ]+49 21 78 56[ ]+ld\
.lis hl
,0x5678
52 174:[ ]+49 11 68 24[ ]+ld\
.lis
de,0x2468
53 178:[ ]+49 21 f0 ac
[ ]+ld\
.lis hl
,0xacf0
54 17c
:[ ]+16 12[ ]+ld d
,0x12
55 17e
:[ ]+1e
34[ ]+ld e
,0x34
56 180:[ ]+26 56[ ]+ld h
,0x56
57 182:[ ]+2e
78[ ]+ld l
,0x78
58 184:[ ]+16 24[ ]+ld d
,0x24
59 186:[ ]+1e
68[ ]+ld e
,0x68
60 188:[ ]+26 ac
[ ]+ld h
,0xac
61 18a
:[ ]+2e f0
[ ]+ld l
,0xf0