-
Notifications
You must be signed in to change notification settings - Fork 0
/
instructions.txt
256 lines (256 loc) · 2.74 KB
/
instructions.txt
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
00: NOP
01: LXI B, word
02: STAX B
03: INX B
04: INR B
05: DCR B
06: MVI B, byte
07: RLC
08: XTHL
09: DAD B
0A: LDAX B
0B: DCX B
0C: INR C
0D: DCR C
0E: MVI C, byte
0F: RRC
10: PCHL
11: LXI D, word
12: STAX D
13: INX D
14: INR D
15: DCR D
16: MVI D, byte
17: RAL
18: PCHL
19: DAD D
1A: LDAX D
1B: DCX D
1C: INR E
1D: DCR E
1E: MVI E, byte
1F: RAR
20: PCHL
21: LXI H, word
22: SHLD word
23: INX H
24: INR H
25: DCR H
26: MVI H, byte
27: DAA
28: PCHL
29: DAD H
2A: LHLD word
2B: DCX H
2C: INR L
2D: DCR L
2E: MVI L, byte
2F: CMA
30: PCHL
31: LXI SP, word
32: STA word
33: INX SP
34: INR M
35: DCR M
36: MVI M, word
37: STC
38: PCHL
39: DAD SP
3A: LDA word
3B: DCX SP
3C: INR A
3D: DCR A
3E: MVI A, byte
3F: CMC
40: MOV B, B
41: MOV B, C
42: MOV B, D
43: MOV B, E
44: MOV B, H
45: MOV B, L
46: MOV B, M
47: MOV B, A
48: MOV C, B
49: MOV C, C
4A: MOV C, D
4B: MOV C, E
4C: MOV C, H
4D: MOV C, L
4E: MOV C, M
4F: MOV C, A
50: MOV D, B
51: MOV D, C
52: MOV D, D
53: MOV D, E
54: MOV D, H
55: MOV D, L
56: MOV D, M
57: MOV D, A
58: MOV E, B
59: MOV E, C
5A: MOV E, D
5B: MOV E, E
5C: MOV E, H
5D: MOV E, L
5E: MOV E, M
5F: MOV E, A
60: MOV H, B
61: MOV H, C
62: MOV H, D
63: MOV H, E
64: MOV H, H
65: MOV H, L
66: MOV H, M
67: MOV H, A
68: MOV L, B
69: MOV L, C
6A: MOV L, D
6B: MOV L, E
6C: MOV L, H
6D: MOV L, L
6E: MOV L, M
6F: MOV L, A
70: MOV M, B
71: MOV M, C
72: MOV M, D
73: MOV M, E
74: MOV M, H
75: MOV M, L
76: HLT
77: MOV M, A
78: MOV A, B
79: MOV A, C
7A: MOV A, D
7B: MOV A, E
7C: MOV A, H
7D: MOV A, L
7E: MOV A, M
7F: MOV A, A
80: ADD B
81: ADD C
82: ADD D
83: ADD E
84: ADD H
85: ADD L
86: ADD M
87: ADD A
88: ADC B
89: ADC C
8A: ADC D
8B: ADC E
8C: ADC H
8D: ADC L
8E: ADC M
8F: ADC A
90: SUB B
91: SUB C
92: SUB D
93: SUB E
94: SUB H
95: SUB L
96: SUB M
97: SUB A
98: SBB B
99: SBB C
9A: SBB D
9B: SBB E
9C: SBB H
9D: SBB L
9E: SBB M
9F: SBB A
A0: ANA B
A1: ANA C
A2: ANA D
A3: ANA E
A4: ANA H
A5: ANA L
A6: ANA M
A7: ANA A
A8: XRA B
A9: XRA C
AA: XRA D
AB: XRA E
AC: XRA H
AD: XRA L
AE: XRA M
AF: XRA A
B0: ORA B
B1: ORA C
B2: ORA D
B3: ORA E
B4: ORA H
B5: ORA L
B6: ORA M
B7: ORA A
B8: CMP B
B9: CMP C
BA: CMP D
BB: CMP E
BC: CMP H
BD: CMP L
BE: CMP M
BF: CMP A
C0: RNZ
C1: POP B
C2: JNZ addr
C3: JMP addr
C4: CNZ addr
C5: PUSH B
C6: ADI byte
C7: RST 0
C8: RZ
C9: RET
CA: JZ addr
CB:
CC: CZ addr
CD: CALL addr
CE: ACI byte
CF: RST 1
D0: RNC
D1: POP D
D2: JNC addr
D3:
D4: CNC addr
D5: PUSH D
D6: SUI byte
D7: RST 2
D8: RC
D9:
DA:
DB: IN byte
DC:
DD:
DE: SBI byte
DF: RST 3
E0: RPO
E1: POP H
E2: JPO addr
E3: XTHL
E4: CPO addr
E5: PUSH H
E6: ANI byte
E7: RST 4
E8: RPE
E9: PCHL
EA: JPE addr
EB: XCHG
EC: CPE addr
ED:
EE: XRI byte
EF: RST 5
F0: RP
F1: POP PSW
F2: JP addr
F3:
F4: CP addr
F5: PUSH PSW
F6: ORI byte
F7: RST 6
F8: RM
F9: SPHL
FA: JM addr
FB:
FC: CM addr
FD:
FE: CPI byte
FF: RST 7