-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathOpCodeMap.pending
356 lines (344 loc) · 33.4 KB
/
OpCodeMap.pending
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
Z80 Opcode Map
==============
File: Docs.Comp.Z80.OpCodeMap - Update: 0.10
Author: J.G.Harston - Date: 09-09-1997
Main Table
----------
0/8 1/9 2/A 3/B 4/C 5/D 6/E 7/F
+---------+---------+----------+----------+-----------+---------+----------+---------+
00 | | | | | | | | |
+---------+---------+----------+----------+-----------+---------+----------+---------+
08 | | | | | | | | |
+---------+---------+----------+----------+-----------+---------+----------+---------+
10 | | | | | | | | |
+---------+---------+----------+----------+-----------+---------+----------+---------+
18 | | | | | | | | |
+---------+---------+----------+----------+-----------+---------+----------+---------+
20 | | | | | | | | |
+---------+---------+----------+----------+-----------+---------+----------+---------+
28 | | | | | | | | |
+---------+---------+----------+----------+-----------+---------+----------+---------+
30 | | | | | | | | |
+---------+---------+----------+----------+-----------+---------+----------+---------+
38 | | | | | | | | |
+---------+---------+----------+----------+-----------+---------+----------+---------+
40 | |
+---------+---------+----------+----------+-----------+---------+----------+---------+
48 | |
+---------+---------+----------+----------+-----------+---------+----------+---------+
50 | |
+---------+---------+----------+----------+-----------+---------+----------+---------+
58 | |
+---------+---------+----------+----------+-----------+---------+----------+---------+
60 | |
+---------+---------+----------+----------+-----------+---------+----------+---------+
68 | |
+---------+---------+----------+----------+-----------+---------+----------+---------+
70 | | | |
+---------+---------+----------+----------+-----------+---------+----------+---------+
78 | |
+---------+---------+----------+----------+-----------+---------+----------+---------+
80 | |
+---------+---------+----------+----------+-----------+---------+----------+---------+
88 | |
+---------+---------+----------+----------+-----------+---------+----------+---------+
90 | |
+---------+---------+----------+----------+-----------+---------+----------+---------+
98 | |
+---------+---------+----------+----------+-----------+---------+----------+---------+
A0 | |
+---------+---------+----------+----------+-----------+---------+----------+---------+
A8 | |
+---------+---------+----------+----------+-----------+---------+----------+---------+
B0 | |
+---------+---------+----------+----------+-----------+---------+----------+---------+
B8 | |
+---------+---------+----------+----------+-----------+---------+----------+---------+
C0 | | | | | | | | |
+---------+---------+----------+----------+-----------+---------+----------+---------+
C8 | | | | | | | | |
+---------+---------+----------+----------+-----------+---------+----------+---------+
D0 | | | | | | | | |
+---------+---------+----------+----------+-----------+---------+----------+---------+
D8 | | | | | | | | |
+---------+---------+----------+----------+-----------+---------+----------+---------+
E0 | | | | | | | | |
+---------+---------+----------+----------+-----------+---------+----------+---------+
E8 | | | | | | | | |
+---------+---------+----------+----------+-----------+---------+----------+---------+
F0 | | | | | | | | |
+---------+---------+----------+----------+-----------+---------+----------+---------+
F8 | | | | | | | | |
+---------+---------+----------+----------+-----------+---------+----------+---------+
CB Table
---------
0/8 1/9 2/A 3/B 4/C 5/D 6/E 7/F
+---------+---------+----------+----------+-----------+---------+----------+---------+
00 | |
+---------+---------+----------+----------+-----------+---------+----------+---------+
08 | |
+---------+---------+----------+----------+-----------+---------+----------+---------+
10 | |
+---------+---------+----------+----------+-----------+---------+----------+---------+
18 | |
+---------+---------+----------+----------+-----------+---------+----------+---------+
20 | |
+---------+---------+----------+----------+-----------+---------+----------+---------+
28 | |
+---------+---------+----------+----------+-----------+---------+----------+---------+
30 | |
+---------+---------+----------+----------+-----------+---------+----------+---------+
38 | |
+---------+---------+----------+----------+-----------+---------+----------+---------+
40 | |
+---------+---------+----------+----------+-----------+---------+----------+---------+
48 | |
+---------+---------+----------+----------+-----------+---------+----------+---------+
50 | |
+---------+---------+----------+----------+-----------+---------+----------+---------+
58 | |
+---------+---------+----------+----------+-----------+---------+----------+---------+
60 | |
+---------+---------+----------+----------+-----------+---------+----------+---------+
68 | |
+---------+---------+----------+----------+-----------+---------+----------+---------+
70 | |
+---------+---------+----------+----------+-----------+---------+----------+---------+
78 | |
+---------+---------+----------+----------+-----------+---------+----------+---------+
80 | |
+---------+---------+----------+----------+-----------+---------+----------+---------+
88 | |
+---------+---------+----------+----------+-----------+---------+----------+---------+
90 | |
+---------+---------+----------+----------+-----------+---------+----------+---------+
98 | |
+---------+---------+----------+----------+-----------+---------+----------+---------+
A0 | |
+---------+---------+----------+----------+-----------+---------+----------+---------+
A8 | |
+---------+---------+----------+----------+-----------+---------+----------+---------+
B0 | |
+---------+---------+----------+----------+-----------+---------+----------+---------+
B8 | |
+---------+---------+----------+----------+-----------+---------+----------+---------+
C0 | |
+---------+---------+----------+----------+-----------+---------+----------+---------+
C8 | |
+---------+---------+----------+----------+-----------+---------+----------+---------+
D0 | |
+---------+---------+----------+----------+-----------+---------+----------+---------+
D8 | |
+---------+---------+----------+----------+-----------+---------+----------+---------+
E0 | |
+---------+---------+----------+----------+-----------+---------+----------+---------+
E8 | |
+---------+---------+----------+----------+-----------+---------+----------+---------+
F0 | |
+---------+---------+----------+----------+-----------+---------+----------+---------+
F8 | |
+---------+---------+----------+----------+-----------+---------+----------+---------+
DD/FD Table
-----------
0/8 1/9 2/A 3/B 4/C 5/D 6/E 7/F
+-----------+-----------+------------+------------+-----------+------------+------------+-----------+
00 | | | | | | | | |
+-----------+-----------+------------+------------+-----------+------------+------------+-----------+
08 | | | | | | | | |
+-----------+-----------+------------+------------+-----------+------------+------------+-----------+
10 | | | | | | | | |
+-----------+-----------+------------+------------+-----------+------------+------------+-----------+
18 | | | | | | | | |
+-----------+-----------+------------+------------+-----------+------------+------------+-----------+
20 | | | | | | | | |
+-----------+-----------+------------+------------+-----------+------------+------------+-----------+
28 | | | | | | | | |
+-----------+-----------+------------+------------+-----------+------------+------------+-----------+
30 | | | | | | | | |
+-----------+-----------+------------+------------+-----------+------------+------------+-----------+
38 | | | | | | | | |
+-----------+-----------+------------+------------+-----------+------------+------------+-----------+
40 | |
+-----------+-----------+------------+------------+-----------+------------+------------+-----------+
48 | |
+-----------+-----------+------------+------------+-----------+------------+------------+-----------+
50 | |
+-----------+-----------+------------+------------+-----------+------------+------------+-----------+
58 | |
+-----------+-----------+------------+------------+-----------+------------+------------+-----------+
60 | |
+-----------+-----------+------------+------------+-----------+------------+------------+-----------+
68 | |
+-----------+-----------+------------+------------+-----------+------------+------------+-----------+
70 | |
+-----------+-----------+------------+------------+-----------+------------+------------+-----------+
78 | |
+-----------+-----------+------------+------------+-----------+------------+------------+-----------+
80 | |
+-----------+-----------+------------+------------+-----------+------------+------------+-----------+
88 | | |
+-----------+-----------+------------+------------+-----------+------------+------------+-----------+
90 | | |
+-----------+-----------+------------+------------+-----------+------------+------------+-----------+
98 | | |
+-----------+-----------+------------+------------+-----------+------------+------------+-----------+
A0 | | |
+-----------+-----------+------------+------------+-----------+------------+------------+-----------+
A8 | | |
+-----------+-----------+------------+------------+-----------+------------+------------+-----------+
B0 | | |
+-----------+-----------+------------+------------+-----------+------------+------------+-----------+
B8 | | |
+-----------+-----------+------------+------------+-----------+------------+------------+-----------+
C0 | | | | | | | | |
+-----------+-----------+------------+------------+-----------+------------+------------+-----------+
C8 | | | | | | | | |
+-----------+-----------+------------+------------+-----------+------------+------------+-----------+
D0 | | | | | | | | |
+-----------+-----------+------------+------------+-----------+------------+------------+-----------+
D8 | | | | | | | | |
+-----------+-----------+------------+------------+-----------+------------+------------+-----------+
E0 | | | | | | | | |
+-----------+-----------+------------+------------+-----------+------------+------------+-----------+
E8 | | | | | | | | |
+-----------+-----------+------------+------------+-----------+------------+------------+-----------+
F0 | | | | | | | | |
+-----------+-----------+------------+------------+-----------+------------+------------+-----------+
F8 | | | | | | | | |
+-----------+-----------+------------+------------+-----------+------------+------------+-----------+
DD/FD, CB Table
---------------
0/8 1/9 2/A 3/B 4/C 5/D 6/E 7/F
+--------------+--------------+--------------+--------------+-----------+-----------+------------+--------------+
00 |rlc (ix+n),b |rlc (ix+n),c |rlc (ix+n),d |rlc (ix+n),e |RLC IXH |RLC IXL |RLC (IX+n) |rlc (ix+n,a) |
+--------------+--------------+--------------+--------------+-----------+-----------+------------+--------------+
08 |rrc (ix+n),b |rrc (ix+n),c |rrc (ix+n),d |rrc (ix+n),e |RRC IXH |RRC IXL |RRC (IX+n) |rrc (ix+n),a |
+--------------+--------------+--------------+--------------+-----------+-----------+------------+--------------+
10 |rl (ix+n),b |rl (ix+n),c |rl (ix+n),d |rl (rc+n),e |RL IXH |RL IXL |RL (IX+n) |rl (ix+n),a |
+--------------+--------------+--------------+--------------+-----------+-----------+------------+--------------+
18 |rr (ix+n),b |rr (ix+n),c |rr (ix+n),d |rr (ix+n),e |RR IXH |RR IXL |RR (IX+n) |rr (ix+n),a |
+--------------+--------------+--------------+--------------+-----------+-----------+------------+--------------+
20 |sla (ix+n),b |sla (ix+n),c |sla (ix+n),d |sla (ix+n),e |SLA IXH |SLA IXL |SLA (IX+n) |sla (ix+n),a |
+--------------+--------------+--------------+--------------+-----------+-----------+------------+--------------+
28 |sra (ix+n),b |sra (ix+n),c |sra (ix+n),d |sra (ix+n),e |SRA IXH |SRA IXL |SRA (IX+n) |sra (ix+n),a |
+--------------+--------------+--------------+--------------+-----------+-----------+------------+--------------+
30 |sls (ix+n),b |sls (ix+n),c |sls (ix+n),d |sls (ix+n),e |sls ixh |sls ixl |sls (ix+n) |sls (ix+n),a |
+--------------+--------------+--------------+--------------+-----------+-----------+------------+--------------+
38 |srl (ix+n),b |srl (ix+n),c |srl (ix+n),d |srl (ix+n),e |SRL IXH |SRL IXL |SRL (IX+n) |srl (ix+n),a |
+--------------+--------------+--------------+--------------+-----------+-----------+------------+--------------+
40 |bit 0,(ix+n) |bit 0,(ix+n) |bit 0,(ix+n) |bit 0,(ix+n) |BIT 0,IXH |BIT 0,IXL |BIT 0,(IX+n)|bit 0,(ix+n) |
+--------------+--------------+--------------+--------------+-----------+-----------+------------+--------------+
48 |bit 1,(ix+n) |bit 1,(ix+n) |bit 1,(ix+n) |bit 1,(ix+n) |BIT 1,IXH |BIT 1,IXL |BIT 1,(IX+n)|bit 1,(ix+n) |
+--------------+--------------+--------------+--------------+-----------+-----------+------------+--------------+
50 |bit 2,(ix+n) |bit 2,(ix+n) |bit 2,(ix+n) |bit 2,(ix+n) |BIT 2,IXH |BIT 2,IXL |BIT 2,(IX+n)|bit 2,(ix+n) |
+--------------+--------------+--------------+--------------+-----------+-----------+------------+--------------+
58 |bit 3,(ix+n) |bit 3,(ix+n) |bit 3,(ix+n) |bit 3,(ix+n) |BIT 3,IXH |BIT 3,IXL |BIT 3,(IX+n)|bit 3,(ix+n) |
+--------------+--------------+--------------+--------------+-----------+-----------+------------+--------------+
60 |bit 4,(ix+n) |bit 4,(ix+n) |bit 4,(ix+n) |bit 4,(ix+n) |BIT 4,IXH |BIT 4,IXL |BIT 4,(IX+n)|bit 4,(ix+n) |
+--------------+--------------+--------------+--------------+-----------+-----------+------------+--------------+
68 |bit 5,(ix+n) |bit 5,(ix+n) |bit 5,(ix+n) |bit 5,(ix+n) |BIT 5,IXH |BIT 5,IXL |BIT 5,(IX+n)|bit 5,(ix+n) |
+--------------+--------------+--------------+--------------+-----------+-----------+------------+--------------+
70 |bit 6,(ix+n) |bit 6,(ix+n) |bit 6,(ix+n) |bit 6,(ix+n) |BIT 6,IXH |BIT 6,IXL |BIT 6,(IX+n)|bit 6,(ix+n) |
+--------------+--------------+--------------+--------------+-----------+-----------+------------+--------------+
78 |bit 7,(ix+n) |bit 7,(ix+n) |bit 7,(ix+n) |bit 7,(ix+n) |BIT 7,IXH |BIT 7,IXL |BIT 7,(IX+n)|bit 7,(ix+n) |
+--------------+--------------+--------------+--------------+-----------+-----------+------------+--------------+
80 |res 0,(ix+n),b|res 0,(ix+n),c|res 0,(ix+n),d|res 0,(ix+n),e|RES 0,IXH |RES 0,IXL |RES 0,(IX+n)|res 0,(ix+n),a|
+--------------+--------------+--------------+--------------+-----------+-----------+------------+--------------+
88 |res 1,(ix+n),b|res 1,(ix+n),c|res 1,(ix+n),d|res 1,(ix+n),e|RES 1,IXH |RES 1,IXL |RES 1,(IX+n)|res 1,(ix+n),a|
+--------------+--------------+--------------+--------------+-----------+-----------+------------+--------------+
90 |res 2,(ix+n),b|res 2,(ix+n),c|res 2,(ix+n),d|res 2,(ix+n),e|RES 2,IXH |RES 2,IXL |RES 2,(IX+n)|res 2,(ix+n),a|
+--------------+--------------+--------------+--------------+-----------+-----------+------------+--------------+
98 |res 3,(ix+n),b|res 3,(ix+n),c|res 3,(ix+n),d|res 3,(ix+n),e|RES 3,IXH |RES 3,IXL |RES 3,(IX+n)|res 3,(ix+n),a|
+--------------+--------------+--------------+--------------+-----------+-----------+------------+--------------+
A0 |res 4,(ix+n),b|res 4,(ix+n),c|res 4,(ix+n),d|res 4,(ix+n),e|RES 4,IXH |RES 4,IXL |RES 4,(IX+n)|res 4,(ix+n),a|
+--------------+--------------+--------------+--------------+-----------+-----------+------------+--------------+
A8 |res 5,(ix+n),b|res 5,(ix+n),c|res 5,(ix+n),d|res 5,(ix+n),e|RES 5,IXH |RES 5,IXL |RES 5,(IX+n)|res 5,(ix+n),a|
+--------------+--------------+--------------+--------------+-----------+-----------+------------+--------------+
B0 |res 6,(ix+n),b|res 6,(ix+n),c|res 6,(ix+n),d|res 6,(ix+n),e|RES 6,IXH |RES 6,IXL |RES 6,(IX+n)|res 6,(ix+n),a|
+--------------+--------------+--------------+--------------+-----------+-----------+------------+--------------+
B8 |res 7,(ix+n),b|res 7,(ix+n),c|res 7,(ix+n),d|res 7,(ix+n),e|RES 7,IXH |RES 7,IXL |RES 7,(IX+n)|res 7,(ix+n),a|
+--------------+--------------+--------------+--------------+-----------+-----------+------------+--------------+
C0 |set 0,(ix+n),b|set 0,(ix+n),c|set 0,(ix+n),d|set 0,(ix+n),e|SET 0,IXH |SET 0,IXL |SET 0,(IX+n)|set 0,(ix+n),a|
+--------------+--------------+--------------+--------------+-----------+-----------+------------+--------------+
C8 |set 1,(ix+n),b|set 1,(ix+n),c|set 1,(ix+n),d|set 1,(ix+n),e|SET 1,IXH |SET 1,IXL |SET 1,(IX+n)|set 1,(ix+n),a|
+--------------+--------------+--------------+--------------+-----------+-----------+------------+--------------+
D0 |set 2,(ix+n),b|set 2,(ix+n),c|set 2,(ix+n),d|set 2,(ix+n),e|SET 2,IXH |SET 2,IXL |SET 2,(IX+n)|set 2,(ix+n),a|
+--------------+--------------+--------------+--------------+-----------+-----------+------------+--------------+
D8 |set 3,(ix+n),b|set 3,(ix+n),c|set 3,(ix+n),d|set 3,(ix+n),e|SET 3,IXH |SET 3,IXL |SET 3,(IX+n)|set 3,(ix+n),a|
+--------------+--------------+--------------+--------------+-----------+-----------+------------+--------------+
E0 |set 4,(ix+n),b|set 4,(ix+n),c|set 4,(ix+n),d|set 4,(ix+n),e|SET 4,IXH |SET 4,IXL |SET 4,(IX+n)|set 4,(ix+n),a|
+--------------+--------------+--------------+--------------+-----------+-----------+------------+--------------+
E8 |set 5,(ix+n),b|set 5,(ix+n),c|set 5,(ix+n),d|set 5,(ix+n),e|SET 5,IXH |SET 5,IXL |SET 5,(IX+n)|set 5,(ix+n),a|
+--------------+--------------+--------------+--------------+-----------+-----------+------------+--------------+
F0 |set 6,(ix+n),b|set 6,(ix+n),c|set 6,(ix+n),d|set 6,(ix+n),e|SET 6,IXH |SET 6,IXL |SET 6,(IX+n)|set 6,(ix+n),a|
+--------------+--------------+--------------+--------------+-----------+-----------+------------+--------------+
F8 |set 7,(ix+n),b|set 7,(ix+n),c|set 7,(ix+n),d|set 7,(ix+n),e|SET 7,IXH |SET 7,IXL |SET 7,(IX+n)|set 7,(ix+n),a|
+--------------+--------------+--------------+--------------+-----------+-----------+------------+--------------+
ED Table
--------
0/8 1/9 2/A 3/B 4/C 5/D 6/E 7/F
+-----------+-----------+------------+------------+-----------+------------+------------+-----------+
00 | | | | | | | | |
+-----------+-----------+------------+------------+-----------+------------+------------+-----------+
08 | | | | | | | | |
+-----------+-----------+------------+------------+-----------+------------+------------+-----------+
10 | | | | | | | | |
+-----------+-----------+------------+------------+-----------+------------+------------+-----------+
18 | | | | | | | | |
+-----------+-----------+------------+------------+-----------+------------+------------+-----------+
20 | | | | | | | | |
+-----------+-----------+------------+------------+-----------+------------+------------+-----------+
28 | | | | | | | | |
+-----------+-----------+------------+------------+-----------+------------+------------+-----------+
30 | | | | | | | | |
+-----------+-----------+------------+------------+-----------+------------+------------+-----------+
38 | | | | | | | | |
+-----------+-----------+------------+------------+-----------+------------+------------+-----------+
40 | | | | | | | |
+-----------+-----------+------------+------------+-----------+------------+------------+-----------+
48 | | |neg | |im 0 | |
+-----------+-----------+------------+------------+-----------+------------+------------+-----------+
50 | | | |neg |retn | | |
+-----------+-----------+------------+------------+-----------+------------+------------+-----------+
58 | | | |neg |retn | | |
+-----------+-----------+------------+------------+-----------+------------+------------+-----------+
60 | | | |neg |retn |im 0 | |
+-----------+-----------+------------+------------+-----------+------------+------------+-----------+
68 | | | |neg |retn |im 0 | |
+-----------+-----------+------------+------------+-----------+------------+------------+-----------+
70 | | | |neg |retn |im 1 |ld i,i |
+-----------+-----------+------------+------------+-----------+------------+------------+-----------+
78 | | | | |neg |retn |im 2 |ld r,r |
+-----------+-----------+------------+------------+-----------+------------+------------+-----------+
80 | | | | | | | | |
+-----------+-----------+------------+------------+-----------+------------+------------+-----------+
88 | | | | | | | | |
+-----------+-----------+------------+------------+-----------+------------+------------+-----------+
90 | | | | | | | | |
+-----------+-----------+------------+------------+-----------+------------+------------+-----------+
98 | | | | | | | | |
+-----------+-----------+------------+------------+-----------+------------+------------+-----------+
A0 | | | | | | | | |
+-----------+-----------+------------+------------+-----------+------------+------------+-----------+
A8 | | | | | | | | |
+-----------+-----------+------------+------------+-----------+------------+------------+-----------+
B0 | | | | | | | | |
+-----------+-----------+------------+------------+-----------+------------+------------+-----------+
B8 | | | | | | | | |
+-----------+-----------+------------+------------+-----------+------------+------------+-----------+
C0 | | | | | | | | |
+-----------+-----------+------------+------------+-----------+------------+------------+-----------+
C8 | | | | | | | | |
+-----------+-----------+------------+------------+-----------+------------+------------+-----------+
D0 | | | | | | | | |
+-----------+-----------+------------+------------+-----------+------------+------------+-----------+
D8 | | | | | | | | |
+-----------+-----------+------------+------------+-----------+------------+------------+-----------+
E0 | | | | | | | | |
+-----------+-----------+------------+------------+-----------+------------+------------+-----------+
E8 | | | | | | | | |
+-----------+-----------+------------+------------+-----------+------------+------------+-----------+
F0 | | | | | | | | |
+-----------+-----------+------------+------------+-----------+------------+------------+-----------+
F8 | | | | | | | | |
+-----------+-----------+------------+------------+-----------+------------+------------+-----------+