forked from rileym65/RcAsm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path8080.def
266 lines (266 loc) · 1.96 KB
/
8080.def
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
8080 -> Native
OPTION LITTLE
CLASS regs
B=0,C=1,D=2,E=3,H=4,L=5,M=6,A=7
CLASS rsts
0H=0,8H=1,10H=2,18H=3,20H=4,28H=5,30H=6,38H=7
*
ACI \b
CE \1
ADC \{regs}
88|1
ADC M
8E
ADCI \b
CE \1
ADD \{regs}
80|1
ADD M
86
ADI \b
C6 \1
ANA \{regs}
A0|1
ANA M
A6
ANI \b
E6 \1
CALL \w
CD lo(1) hi(1)
CC \w
DC lo(1) hi(1)
CM \w
FC lo(1) hi(1)
CMA
2F
CMC
3F
CMP \{regs}
B8|1
CMP M
BE
CNC \w
D4 lo(1) hi(1)
CNZ \w
C4 lo(1) hi(1)
CP \w
F4 lo(1) hi(1)
CPE \w
EC lo(1) hi(1)
CPI \b
FE \1
CPO \w
E4 lo(1) hi(1)
CZ \w
CC lo(1) hi(1)
DAA
27
DAD B
09
DAD D
19
DAD H
29
DAD SP
39
DCR \{regs}
05|1<3
DCR M
35
DCX B
0B
DCX D
1B
DCX H
2B
DCX SP
3B
DI
F3
EI
FB
HLT
76
IN \b
DB \1
INR \{regs}
04|1<3
INR M
3C
INX B
03
INX D
13
INX H
23
INX SP
33
JMP \w
C3 lo(1) hi(1)
JC \w
DA lo(1) hi(1)
JM \w
FA lo(1) hi(1)
JNC \w
D2 lo(1) hi(1)
JNZ \w
C2 lo(1) hi(1)
JP \w
F2 lo(1) hi(1)
JPE \w
EA lo(1) hi(1)
JPO \w
E2 lo(1) hi(1)
JZ \w
CA lo(1) hi(1)
LDA \w
3A lo(1) hi(1)
LDAX B
0A
LDAX D
1A
LHLD \w
2A lo(1) hi(1)
LXI B,\w
01 lo(1) hi(1)
LXI B, \w
01 lo(1) hi(1)
LXI D,\w
11 lo(1) hi(1)
LXI D, \w
11 lo(1) hi(1)
LXI H,\w
21 lo(1) hi(1)
LXI H, \w
21 lo(1) hi(1)
LXI SP,\w
31 lo(1) hi(1)
LXI SP, \w
31 lo(1) hi(1)
MOV \{regs},\{regs}
40|1<3|2
MOV \{regs}, \{regs}
40|1<3|2
MOV M,\{regs}
70|1
MOV M, \{regs}
70|1
MOV \{regs},M
46|1<3
MOV \{regs}, M
46|1<3
MVI \{regs},\b
06|1<3 \2
MVI \{regs}, \b
06|1<3 \2
MVI M,\b
36 \1
MVI M, \b
36 \1
NOP
00
ORA \{regs}
B0|1
ORA M
B6
ORI \b
F6 \1
OUT \b
D3 \1
PCHL
E9
POP B
C1
POP D
D1
POP H
E1
POP PSW
F1
PUSH B
C5
PUSH D
D5
PUSH H
E5
PUSH PSW
F5
RAL
17
RAR
1F
RET
C9
RC
D8
RM
F8
RNC
D0
RNZ
C0
RP
F0
RPE
E8
RPO
E0
RZ
C8
RLC
07
RRC
0F
RST \{rsts}
C7|1<3
SBB \{regs}
98|1
SBB M
9E
SBI \b
DE \1
SHLD \w
22 lo(1) hi(1)
SPHL
F9
STA \w
32 lo(1) hi(1)
STAX B
02
STAX D
12
STC
37
SUB \{regs}
90|1
SUI \b
D6 \1
XCHG
EB
XRA \{regs}
A8|1
XRA M
AE
XRI \b
EE \1
XTHL
E3
ORG \W
\O1
END \W
\S1
DB HIGH \W
hi(1)
DB \L
\1
DW \W
lo(1) hi(1)
DW \M
\1
DS \W
\B1
EQU \{regs}
\E1
EQU \W
\E1
*