-
Notifications
You must be signed in to change notification settings - Fork 14
/
opcodes.toml
624 lines (622 loc) · 27.5 KB
/
opcodes.toml
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
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
opcodes = [
{ mnemonic = "NOP", category = "NOP" },
{ mnemonic = "LD BC,nn", category = "LD_rr_nn" },
{ mnemonic = "LD (BC),A", category = "LD_bc_a" },
{ mnemonic = "INC BC", category = "INC_rr" },
{ mnemonic = "INC B", category = "INC_r" },
{ mnemonic = "DEC B", category = "DEC_r" },
{ mnemonic = "LD B,n", category = "LD_r_n" },
{ mnemonic = "RLCA", category = "RLCA" },
{ mnemonic = "LD (nn),SP", category = "LD_nn_sp" },
{ mnemonic = "ADD HL,BC", category = "ADD_hl_rr" },
{ mnemonic = "LD A,(BC)", category = "LD_a_bc" },
{ mnemonic = "DEC BC", category = "DEC_rr" },
{ mnemonic = "INC C", category = "INC_r" },
{ mnemonic = "DEC C", category = "DEC_r" },
{ mnemonic = "LD C,n", category = "LD_r_n" },
{ mnemonic = "RRCA", category = "RRCA" },
{ mnemonic = "STOP", category = "STOP" },
{ mnemonic = "LD DE,nn", category = "LD_rr_nn" },
{ mnemonic = "LD (DE),A", category = "LD_de_a" },
{ mnemonic = "INC DE", category = "INC_rr" },
{ mnemonic = "INC D", category = "INC_r" },
{ mnemonic = "DEC D", category = "DEC_r" },
{ mnemonic = "LD D,n", category = "LD_r_n" },
{ mnemonic = "RLA", category = "RLA" },
{ mnemonic = "JR e", category = "JR" },
{ mnemonic = "ADD HL,DE", category = "ADD_hl_rr" },
{ mnemonic = "LD A,(DE)", category = "LD_a_de" },
{ mnemonic = "DEC DE", category = "DEC_rr" },
{ mnemonic = "INC E", category = "INC_r" },
{ mnemonic = "DEC E", category = "DEC_r" },
{ mnemonic = "LD E,n", category = "LD_r_n" },
{ mnemonic = "RRA", category = "RRA" },
{ mnemonic = "JR NZ,e", category = "JR_cc" },
{ mnemonic = "LD HL,nn", category = "LD_rr_nn" },
{ mnemonic = "LD (HL+),A", category = "LD_hli_a" },
{ mnemonic = "INC HL", category = "INC_rr" },
{ mnemonic = "INC H", category = "INC_r" },
{ mnemonic = "DEC H", category = "DEC_r" },
{ mnemonic = "LD H,n", category = "LD_r_n" },
{ mnemonic = "DAA", category = "DAA" },
{ mnemonic = "JR Z,e", category = "JR_cc" },
{ mnemonic = "ADD HL,HL", category = "ADD_hl_rr" },
{ mnemonic = "LD A,(HL+)", category = "LD_a_hli" },
{ mnemonic = "DEC HL", category = "DEC_rr" },
{ mnemonic = "INC L", category = "INC_r" },
{ mnemonic = "DEC L", category = "DEC_r" },
{ mnemonic = "LD L,n", category = "LD_r_n" },
{ mnemonic = "CPL", category = "CPL" },
{ mnemonic = "JR NC,e", category = "JR_cc" },
{ mnemonic = "LD SP,nn", category = "LD_rr_nn" },
{ mnemonic = "LD (HL-),A", category = "LD_hld_a" },
{ mnemonic = "INC SP", category = "INC_rr" },
{ mnemonic = "INC (HL)", category = "INC_hl" },
{ mnemonic = "DEC (HL)", category = "DEC_hl" },
{ mnemonic = "LD (HL),n", category = "LD_hl_n" },
{ mnemonic = "SCF", category = "SCF" },
{ mnemonic = "JR C,e", category = "JR_cc" },
{ mnemonic = "ADD HL,SP", category = "ADD_hl_rr" },
{ mnemonic = "LD A,(HL-)", category = "LD_a_hld" },
{ mnemonic = "DEC SP", category = "DEC_rr" },
{ mnemonic = "INC A", category = "INC_r" },
{ mnemonic = "DEC A", category = "DEC_r" },
{ mnemonic = "LD A,n", category = "LD_r_n" },
{ mnemonic = "CCF", category = "CCF" },
{ mnemonic = "LD B,B", category = "LD_r_r" },
{ mnemonic = "LD B,C", category = "LD_r_r" },
{ mnemonic = "LD B,D", category = "LD_r_r" },
{ mnemonic = "LD B,E", category = "LD_r_r" },
{ mnemonic = "LD B,H", category = "LD_r_r" },
{ mnemonic = "LD B,L", category = "LD_r_r" },
{ mnemonic = "LD B,(HL)", category = "LD_r_hl" },
{ mnemonic = "LD B,A", category = "LD_r_r" },
{ mnemonic = "LD C,B", category = "LD_r_r" },
{ mnemonic = "LD C,C", category = "LD_r_r" },
{ mnemonic = "LD C,D", category = "LD_r_r" },
{ mnemonic = "LD C,E", category = "LD_r_r" },
{ mnemonic = "LD C,H", category = "LD_r_r" },
{ mnemonic = "LD C,L", category = "LD_r_r" },
{ mnemonic = "LD C,(HL)", category = "LD_r_hl" },
{ mnemonic = "LD C,A", category = "LD_r_r" },
{ mnemonic = "LD D,B", category = "LD_r_r" },
{ mnemonic = "LD D,C", category = "LD_r_r" },
{ mnemonic = "LD D,D", category = "LD_r_r" },
{ mnemonic = "LD D,E", category = "LD_r_r" },
{ mnemonic = "LD D,H", category = "LD_r_r" },
{ mnemonic = "LD D,L", category = "LD_r_r" },
{ mnemonic = "LD D,(HL)", category = "LD_r_hl" },
{ mnemonic = "LD D,A", category = "LD_r_r" },
{ mnemonic = "LD E,B", category = "LD_r_r" },
{ mnemonic = "LD E,C", category = "LD_r_r" },
{ mnemonic = "LD E,D", category = "LD_r_r" },
{ mnemonic = "LD E,E", category = "LD_r_r" },
{ mnemonic = "LD E,H", category = "LD_r_r" },
{ mnemonic = "LD E,L", category = "LD_r_r" },
{ mnemonic = "LD E,(HL)", category = "LD_r_hl" },
{ mnemonic = "LD E,A", category = "LD_r_r" },
{ mnemonic = "LD H,B", category = "LD_r_r" },
{ mnemonic = "LD H,C", category = "LD_r_r" },
{ mnemonic = "LD H,D", category = "LD_r_r" },
{ mnemonic = "LD H,E", category = "LD_r_r" },
{ mnemonic = "LD H,H", category = "LD_r_r" },
{ mnemonic = "LD H,L", category = "LD_r_r" },
{ mnemonic = "LD H,(HL)", category = "LD_r_hl" },
{ mnemonic = "LD H,A", category = "LD_r_r" },
{ mnemonic = "LD L,B", category = "LD_r_r" },
{ mnemonic = "LD L,C", category = "LD_r_r" },
{ mnemonic = "LD L,D", category = "LD_r_r" },
{ mnemonic = "LD L,E", category = "LD_r_r" },
{ mnemonic = "LD L,H", category = "LD_r_r" },
{ mnemonic = "LD L,L", category = "LD_r_r" },
{ mnemonic = "LD L,(HL)", category = "LD_r_hl" },
{ mnemonic = "LD L,A", category = "LD_r_r" },
{ mnemonic = "LD (HL),B", category = "LD_hl_r" },
{ mnemonic = "LD (HL),C", category = "LD_hl_r" },
{ mnemonic = "LD (HL),D", category = "LD_hl_r" },
{ mnemonic = "LD (HL),E", category = "LD_hl_r" },
{ mnemonic = "LD (HL),H", category = "LD_hl_r" },
{ mnemonic = "LD (HL),L", category = "LD_hl_r" },
{ mnemonic = "HALT", category = "HALT" },
{ mnemonic = "LD (HL),A", category = "LD_hl_r" },
{ mnemonic = "LD A,B", category = "LD_r_r" },
{ mnemonic = "LD A,C", category = "LD_r_r" },
{ mnemonic = "LD A,D", category = "LD_r_r" },
{ mnemonic = "LD A,E", category = "LD_r_r" },
{ mnemonic = "LD A,H", category = "LD_r_r" },
{ mnemonic = "LD A,L", category = "LD_r_r" },
{ mnemonic = "LD A,(HL)", category = "LD_r_hl" },
{ mnemonic = "LD A,A", category = "LD_r_r" },
{ mnemonic = "ADD B", category = "ADD_r" },
{ mnemonic = "ADD C", category = "ADD_r" },
{ mnemonic = "ADD D", category = "ADD_r" },
{ mnemonic = "ADD E", category = "ADD_r" },
{ mnemonic = "ADD H", category = "ADD_r" },
{ mnemonic = "ADD L", category = "ADD_r" },
{ mnemonic = "ADD (HL)", category = "ADD_hl" },
{ mnemonic = "ADD A", category = "ADD_r" },
{ mnemonic = "ADC B", category = "ADC_r" },
{ mnemonic = "ADC C", category = "ADC_r" },
{ mnemonic = "ADC D", category = "ADC_r" },
{ mnemonic = "ADC E", category = "ADC_r" },
{ mnemonic = "ADC H", category = "ADC_r" },
{ mnemonic = "ADC L", category = "ADC_r" },
{ mnemonic = "ADC (HL)", category = "ADC_hl" },
{ mnemonic = "ADC A", category = "ADC_r" },
{ mnemonic = "SUB B", category = "SUB_r" },
{ mnemonic = "SUB C", category = "SUB_r" },
{ mnemonic = "SUB D", category = "SUB_r" },
{ mnemonic = "SUB E", category = "SUB_r" },
{ mnemonic = "SUB H", category = "SUB_r" },
{ mnemonic = "SUB L", category = "SUB_r" },
{ mnemonic = "SUB (HL)", category = "SUB_hl" },
{ mnemonic = "SUB A", category = "SUB_r" },
{ mnemonic = "SBC B", category = "SBC_r" },
{ mnemonic = "SBC C", category = "SBC_r" },
{ mnemonic = "SBC D", category = "SBC_r" },
{ mnemonic = "SBC E", category = "SBC_r" },
{ mnemonic = "SBC H", category = "SBC_r" },
{ mnemonic = "SBC L", category = "SBC_r" },
{ mnemonic = "SBC (HL)", category = "SBC_hl" },
{ mnemonic = "SBC A", category = "SBC_r" },
{ mnemonic = "AND B", category = "AND_r" },
{ mnemonic = "AND C", category = "AND_r" },
{ mnemonic = "AND D", category = "AND_r" },
{ mnemonic = "AND E", category = "AND_r" },
{ mnemonic = "AND H", category = "AND_r" },
{ mnemonic = "AND L", category = "AND_r" },
{ mnemonic = "AND (HL)", category = "AND_hl" },
{ mnemonic = "AND A", category = "AND_r" },
{ mnemonic = "XOR B", category = "XOR_r" },
{ mnemonic = "XOR C", category = "XOR_r" },
{ mnemonic = "XOR D", category = "XOR_r" },
{ mnemonic = "XOR E", category = "XOR_r" },
{ mnemonic = "XOR H", category = "XOR_r" },
{ mnemonic = "XOR L", category = "XOR_r" },
{ mnemonic = "XOR (HL)", category = "XOR_hl" },
{ mnemonic = "XOR A", category = "XOR_r" },
{ mnemonic = "OR B", category = "OR_r" },
{ mnemonic = "OR C", category = "OR_r" },
{ mnemonic = "OR D", category = "OR_r" },
{ mnemonic = "OR E", category = "OR_r" },
{ mnemonic = "OR H", category = "OR_r" },
{ mnemonic = "OR L", category = "OR_r" },
{ mnemonic = "OR (HL)", category = "OR_hl" },
{ mnemonic = "OR A", category = "OR_r" },
{ mnemonic = "CP B", category = "CP_r" },
{ mnemonic = "CP C", category = "CP_r" },
{ mnemonic = "CP D", category = "CP_r" },
{ mnemonic = "CP E", category = "CP_r" },
{ mnemonic = "CP H", category = "CP_r" },
{ mnemonic = "CP L", category = "CP_r" },
{ mnemonic = "CP (HL)", category = "CP_hl" },
{ mnemonic = "CP A", category = "CP_r" },
{ mnemonic = "RET NZ", category = "RET_cc" },
{ mnemonic = "POP BC", category = "POP_rr" },
{ mnemonic = "JP NZ,nn", category = "JP_cc" },
{ mnemonic = "JP nn", category = "JP" },
{ mnemonic = "CALL NZ,nn", category = "CALL_cc" },
{ mnemonic = "PUSH BC", category = "PUSH_rr" },
{ mnemonic = "ADD n", category = "ADD_n" },
{ mnemonic = "RST 0x00", category = "RST" },
{ mnemonic = "RET Z", category = "RET_cc" },
{ mnemonic = "RET", category = "RET" },
{ mnemonic = "JP Z,nn", category = "JP_cc" },
{ mnemonic = "CB op", category = "CB" },
{ mnemonic = "CALL Z,nn", category = "CALL_cc" },
{ mnemonic = "CALL nn", category = "CALL" },
{ mnemonic = "ADC n", category = "ADC_n" },
{ mnemonic = "RST 0x08", category = "RST" },
{ mnemonic = "RET NC", category = "RET_cc" },
{ mnemonic = "POP DE", category = "POP_rr" },
{ mnemonic = "JP NC,nn", category = "JP_cc" },
{ mnemonic = "-", category = "undefined" },
{ mnemonic = "CALL NC,nn", category = "CALL_cc" },
{ mnemonic = "PUSH DE", category = "PUSH_rr" },
{ mnemonic = "SUB n", category = "SUB_n" },
{ mnemonic = "RST 0x10", category = "RST" },
{ mnemonic = "RET C", category = "RET_cc" },
{ mnemonic = "RETI", category = "RETI" },
{ mnemonic = "JP C,nn", category = "JP_cc" },
{ mnemonic = "-", category = "undefined" },
{ mnemonic = "CALL C,nn", category = "CALL_cc" },
{ mnemonic = "-", category = "undefined" },
{ mnemonic = "SBC n", category = "SBC_n" },
{ mnemonic = "RST 0x18", category = "RST" },
{ mnemonic = "LDH (n),A", category = "LDH_n_a" },
{ mnemonic = "POP HL", category = "POP_rr" },
{ mnemonic = "LDH (C),A", category = "LDH_c_a" },
{ mnemonic = "-", category = "undefined" },
{ mnemonic = "-", category = "undefined" },
{ mnemonic = "PUSH HL", category = "PUSH_rr" },
{ mnemonic = "AND n", category = "AND_n" },
{ mnemonic = "RST 0x20", category = "RST" },
{ mnemonic = "ADD SP,e", category = "ADD_sp_e" },
{ mnemonic = "JP HL", category = "JP_hl" },
{ mnemonic = "LD (nn),A", category = "LD_nn_a" },
{ mnemonic = "-", category = "undefined" },
{ mnemonic = "-", category = "undefined" },
{ mnemonic = "-", category = "undefined" },
{ mnemonic = "XOR n", category = "XOR_n" },
{ mnemonic = "RST 0x28", category = "RST" },
{ mnemonic = "LDH A,(n)", category = "LDH_a_n" },
{ mnemonic = "POP AF", category = "POP_rr" },
{ mnemonic = "LDH A,(C)", category = "LDH_a_c" },
{ mnemonic = "DI", category = "DI" },
{ mnemonic = "-", category = "undefined" },
{ mnemonic = "PUSH AF", category = "PUSH_rr" },
{ mnemonic = "OR n", category = "OR_n" },
{ mnemonic = "RST 0x30", category = "RST" },
{ mnemonic = "LD HL,SP+e", category = "LD_hl_sp_e" },
{ mnemonic = "LD SP,HL", category = "LD_sp_hl" },
{ mnemonic = "LD A,(nn)", category = "LD_a_nn" },
{ mnemonic = "EI", category = "EI" },
{ mnemonic = "-", category = "undefined" },
{ mnemonic = "-", category = "undefined" },
{ mnemonic = "CP n", category = "CP_n" },
{ mnemonic = "RST 0x38", category = "RST" },
]
cb_opcodes = [
{ mnemonic = "RLC B", category = "RLC_r" },
{ mnemonic = "RLC C", category = "RLC_r" },
{ mnemonic = "RLC D", category = "RLC_r" },
{ mnemonic = "RLC E", category = "RLC_r" },
{ mnemonic = "RLC H", category = "RLC_r" },
{ mnemonic = "RLC L", category = "RLC_r" },
{ mnemonic = "RLC (HL)", category = "RLC_hl" },
{ mnemonic = "RLC A", category = "RLC_r" },
{ mnemonic = "RRC B", category = "RRC_r" },
{ mnemonic = "RRC C", category = "RRC_r" },
{ mnemonic = "RRC D", category = "RRC_r" },
{ mnemonic = "RRC E", category = "RRC_r" },
{ mnemonic = "RRC H", category = "RRC_r" },
{ mnemonic = "RRC L", category = "RRC_r" },
{ mnemonic = "RRC (HL)", category = "RRC_hl" },
{ mnemonic = "RRC A", category = "RRC_r" },
{ mnemonic = "RL B", category = "RL_r" },
{ mnemonic = "RL C", category = "RL_r" },
{ mnemonic = "RL D", category = "RL_r" },
{ mnemonic = "RL E", category = "RL_r" },
{ mnemonic = "RL H", category = "RL_r" },
{ mnemonic = "RL L", category = "RL_r" },
{ mnemonic = "RL (HL)", category = "RL_hl" },
{ mnemonic = "RL A", category = "RL_r" },
{ mnemonic = "RR B", category = "RR_r" },
{ mnemonic = "RR C", category = "RR_r" },
{ mnemonic = "RR D", category = "RR_r" },
{ mnemonic = "RR E", category = "RR_r" },
{ mnemonic = "RR H", category = "RR_r" },
{ mnemonic = "RR L", category = "RR_r" },
{ mnemonic = "RR (HL)", category = "RR_hl" },
{ mnemonic = "RR A", category = "RR_r" },
{ mnemonic = "SLA B", category = "SLA_r" },
{ mnemonic = "SLA C", category = "SLA_r" },
{ mnemonic = "SLA D", category = "SLA_r" },
{ mnemonic = "SLA E", category = "SLA_r" },
{ mnemonic = "SLA H", category = "SLA_r" },
{ mnemonic = "SLA L", category = "SLA_r" },
{ mnemonic = "SLA (HL)", category = "SLA_hl" },
{ mnemonic = "SLA A", category = "SLA_r" },
{ mnemonic = "SRA B", category = "SRA_r" },
{ mnemonic = "SRA C", category = "SRA_r" },
{ mnemonic = "SRA D", category = "SRA_r" },
{ mnemonic = "SRA E", category = "SRA_r" },
{ mnemonic = "SRA H", category = "SRA_r" },
{ mnemonic = "SRA L", category = "SRA_r" },
{ mnemonic = "SRA (HL)", category = "SRA_hl" },
{ mnemonic = "SRA A", category = "SRA_r" },
{ mnemonic = "SWAP B", category = "SWAP_r" },
{ mnemonic = "SWAP C", category = "SWAP_r" },
{ mnemonic = "SWAP D", category = "SWAP_r" },
{ mnemonic = "SWAP E", category = "SWAP_r" },
{ mnemonic = "SWAP H", category = "SWAP_r" },
{ mnemonic = "SWAP L", category = "SWAP_r" },
{ mnemonic = "SWAP (HL)", category = "SWAP_hl" },
{ mnemonic = "SWAP A", category = "SWAP_r" },
{ mnemonic = "SRL B", category = "SRL_r" },
{ mnemonic = "SRL C", category = "SRL_r" },
{ mnemonic = "SRL D", category = "SRL_r" },
{ mnemonic = "SRL E", category = "SRL_r" },
{ mnemonic = "SRL H", category = "SRL_r" },
{ mnemonic = "SRL L", category = "SRL_r" },
{ mnemonic = "SRL (HL)", category = "SRL_hl" },
{ mnemonic = "SRL A", category = "SRL_r" },
{ mnemonic = "BIT 0,B", category = "BIT_b_r" },
{ mnemonic = "BIT 0,C", category = "BIT_b_r" },
{ mnemonic = "BIT 0,D", category = "BIT_b_r" },
{ mnemonic = "BIT 0,E", category = "BIT_b_r" },
{ mnemonic = "BIT 0,H", category = "BIT_b_r" },
{ mnemonic = "BIT 0,L", category = "BIT_b_r" },
{ mnemonic = "BIT 0,(HL)", category = "BIT_b_hl" },
{ mnemonic = "BIT 0,A", category = "BIT_b_r" },
{ mnemonic = "BIT 1,B", category = "BIT_b_r" },
{ mnemonic = "BIT 1,C", category = "BIT_b_r" },
{ mnemonic = "BIT 1,D", category = "BIT_b_r" },
{ mnemonic = "BIT 1,E", category = "BIT_b_r" },
{ mnemonic = "BIT 1,H", category = "BIT_b_r" },
{ mnemonic = "BIT 1,L", category = "BIT_b_r" },
{ mnemonic = "BIT 1,(HL)", category = "BIT_b_hl" },
{ mnemonic = "BIT 1,A", category = "BIT_b_r" },
{ mnemonic = "BIT 2,B", category = "BIT_b_r" },
{ mnemonic = "BIT 2,C", category = "BIT_b_r" },
{ mnemonic = "BIT 2,D", category = "BIT_b_r" },
{ mnemonic = "BIT 2,E", category = "BIT_b_r" },
{ mnemonic = "BIT 2,H", category = "BIT_b_r" },
{ mnemonic = "BIT 2,L", category = "BIT_b_r" },
{ mnemonic = "BIT 2,(HL)", category = "BIT_b_hl" },
{ mnemonic = "BIT 2,A", category = "BIT_b_r" },
{ mnemonic = "BIT 3,B", category = "BIT_b_r" },
{ mnemonic = "BIT 3,C", category = "BIT_b_r" },
{ mnemonic = "BIT 3,D", category = "BIT_b_r" },
{ mnemonic = "BIT 3,E", category = "BIT_b_r" },
{ mnemonic = "BIT 3,H", category = "BIT_b_r" },
{ mnemonic = "BIT 3,L", category = "BIT_b_r" },
{ mnemonic = "BIT 3,(HL)", category = "BIT_b_hl" },
{ mnemonic = "BIT 3,A", category = "BIT_b_r" },
{ mnemonic = "BIT 4,B", category = "BIT_b_r" },
{ mnemonic = "BIT 4,C", category = "BIT_b_r" },
{ mnemonic = "BIT 4,D", category = "BIT_b_r" },
{ mnemonic = "BIT 4,E", category = "BIT_b_r" },
{ mnemonic = "BIT 4,H", category = "BIT_b_r" },
{ mnemonic = "BIT 4,L", category = "BIT_b_r" },
{ mnemonic = "BIT 4,(HL)", category = "BIT_b_hl" },
{ mnemonic = "BIT 4,A", category = "BIT_b_r" },
{ mnemonic = "BIT 5,B", category = "BIT_b_r" },
{ mnemonic = "BIT 5,C", category = "BIT_b_r" },
{ mnemonic = "BIT 5,D", category = "BIT_b_r" },
{ mnemonic = "BIT 5,E", category = "BIT_b_r" },
{ mnemonic = "BIT 5,H", category = "BIT_b_r" },
{ mnemonic = "BIT 5,L", category = "BIT_b_r" },
{ mnemonic = "BIT 5,(HL)", category = "BIT_b_hl" },
{ mnemonic = "BIT 5,A", category = "BIT_b_r" },
{ mnemonic = "BIT 6,B", category = "BIT_b_r" },
{ mnemonic = "BIT 6,C", category = "BIT_b_r" },
{ mnemonic = "BIT 6,D", category = "BIT_b_r" },
{ mnemonic = "BIT 6,E", category = "BIT_b_r" },
{ mnemonic = "BIT 6,H", category = "BIT_b_r" },
{ mnemonic = "BIT 6,L", category = "BIT_b_r" },
{ mnemonic = "BIT 6,(HL)", category = "BIT_b_hl" },
{ mnemonic = "BIT 6,A", category = "BIT_b_r" },
{ mnemonic = "BIT 7,B", category = "BIT_b_r" },
{ mnemonic = "BIT 7,C", category = "BIT_b_r" },
{ mnemonic = "BIT 7,D", category = "BIT_b_r" },
{ mnemonic = "BIT 7,E", category = "BIT_b_r" },
{ mnemonic = "BIT 7,H", category = "BIT_b_r" },
{ mnemonic = "BIT 7,L", category = "BIT_b_r" },
{ mnemonic = "BIT 7,(HL)", category = "BIT_b_hl" },
{ mnemonic = "BIT 7,A", category = "BIT_b_r" },
{ mnemonic = "RES 0,B", category = "RES_b_r" },
{ mnemonic = "RES 0,C", category = "RES_b_r" },
{ mnemonic = "RES 0,D", category = "RES_b_r" },
{ mnemonic = "RES 0,E", category = "RES_b_r" },
{ mnemonic = "RES 0,H", category = "RES_b_r" },
{ mnemonic = "RES 0,L", category = "RES_b_r" },
{ mnemonic = "RES 0,(HL)", category = "RES_b_hl" },
{ mnemonic = "RES 0,A", category = "RES_b_r" },
{ mnemonic = "RES 1,B", category = "RES_b_r" },
{ mnemonic = "RES 1,C", category = "RES_b_r" },
{ mnemonic = "RES 1,D", category = "RES_b_r" },
{ mnemonic = "RES 1,E", category = "RES_b_r" },
{ mnemonic = "RES 1,H", category = "RES_b_r" },
{ mnemonic = "RES 1,L", category = "RES_b_r" },
{ mnemonic = "RES 1,(HL)", category = "RES_b_hl" },
{ mnemonic = "RES 1,A", category = "RES_b_r" },
{ mnemonic = "RES 2,B", category = "RES_b_r" },
{ mnemonic = "RES 2,C", category = "RES_b_r" },
{ mnemonic = "RES 2,D", category = "RES_b_r" },
{ mnemonic = "RES 2,E", category = "RES_b_r" },
{ mnemonic = "RES 2,H", category = "RES_b_r" },
{ mnemonic = "RES 2,L", category = "RES_b_r" },
{ mnemonic = "RES 2,(HL)", category = "RES_b_hl" },
{ mnemonic = "RES 2,A", category = "RES_b_r" },
{ mnemonic = "RES 3,B", category = "RES_b_r" },
{ mnemonic = "RES 3,C", category = "RES_b_r" },
{ mnemonic = "RES 3,D", category = "RES_b_r" },
{ mnemonic = "RES 3,E", category = "RES_b_r" },
{ mnemonic = "RES 3,H", category = "RES_b_r" },
{ mnemonic = "RES 3,L", category = "RES_b_r" },
{ mnemonic = "RES 3,(HL)", category = "RES_b_hl" },
{ mnemonic = "RES 3,A", category = "RES_b_r" },
{ mnemonic = "RES 4,B", category = "RES_b_r" },
{ mnemonic = "RES 4,C", category = "RES_b_r" },
{ mnemonic = "RES 4,D", category = "RES_b_r" },
{ mnemonic = "RES 4,E", category = "RES_b_r" },
{ mnemonic = "RES 4,H", category = "RES_b_r" },
{ mnemonic = "RES 4,L", category = "RES_b_r" },
{ mnemonic = "RES 4,(HL)", category = "RES_b_hl" },
{ mnemonic = "RES 4,A", category = "RES_b_r" },
{ mnemonic = "RES 5,B", category = "RES_b_r" },
{ mnemonic = "RES 5,C", category = "RES_b_r" },
{ mnemonic = "RES 5,D", category = "RES_b_r" },
{ mnemonic = "RES 5,E", category = "RES_b_r" },
{ mnemonic = "RES 5,H", category = "RES_b_r" },
{ mnemonic = "RES 5,L", category = "RES_b_r" },
{ mnemonic = "RES 5,(HL)", category = "RES_b_hl" },
{ mnemonic = "RES 5,A", category = "RES_b_r" },
{ mnemonic = "RES 6,B", category = "RES_b_r" },
{ mnemonic = "RES 6,C", category = "RES_b_r" },
{ mnemonic = "RES 6,D", category = "RES_b_r" },
{ mnemonic = "RES 6,E", category = "RES_b_r" },
{ mnemonic = "RES 6,H", category = "RES_b_r" },
{ mnemonic = "RES 6,L", category = "RES_b_r" },
{ mnemonic = "RES 6,(HL)", category = "RES_b_hl" },
{ mnemonic = "RES 6,A", category = "RES_b_r" },
{ mnemonic = "RES 7,B", category = "RES_b_r" },
{ mnemonic = "RES 7,C", category = "RES_b_r" },
{ mnemonic = "RES 7,D", category = "RES_b_r" },
{ mnemonic = "RES 7,E", category = "RES_b_r" },
{ mnemonic = "RES 7,H", category = "RES_b_r" },
{ mnemonic = "RES 7,L", category = "RES_b_r" },
{ mnemonic = "RES 7,(HL)", category = "RES_b_hl" },
{ mnemonic = "RES 7,A", category = "RES_b_r" },
{ mnemonic = "SET 0,B", category = "SET_b_r" },
{ mnemonic = "SET 0,C", category = "SET_b_r" },
{ mnemonic = "SET 0,D", category = "SET_b_r" },
{ mnemonic = "SET 0,E", category = "SET_b_r" },
{ mnemonic = "SET 0,H", category = "SET_b_r" },
{ mnemonic = "SET 0,L", category = "SET_b_r" },
{ mnemonic = "SET 0,(HL)", category = "SET_b_hl" },
{ mnemonic = "SET 0,A", category = "SET_b_r" },
{ mnemonic = "SET 1,B", category = "SET_b_r" },
{ mnemonic = "SET 1,C", category = "SET_b_r" },
{ mnemonic = "SET 1,D", category = "SET_b_r" },
{ mnemonic = "SET 1,E", category = "SET_b_r" },
{ mnemonic = "SET 1,H", category = "SET_b_r" },
{ mnemonic = "SET 1,L", category = "SET_b_r" },
{ mnemonic = "SET 1,(HL)", category = "SET_b_hl" },
{ mnemonic = "SET 1,A", category = "SET_b_r" },
{ mnemonic = "SET 2,B", category = "SET_b_r" },
{ mnemonic = "SET 2,C", category = "SET_b_r" },
{ mnemonic = "SET 2,D", category = "SET_b_r" },
{ mnemonic = "SET 2,E", category = "SET_b_r" },
{ mnemonic = "SET 2,H", category = "SET_b_r" },
{ mnemonic = "SET 2,L", category = "SET_b_r" },
{ mnemonic = "SET 2,(HL)", category = "SET_b_hl" },
{ mnemonic = "SET 2,A", category = "SET_b_r" },
{ mnemonic = "SET 3,B", category = "SET_b_r" },
{ mnemonic = "SET 3,C", category = "SET_b_r" },
{ mnemonic = "SET 3,D", category = "SET_b_r" },
{ mnemonic = "SET 3,E", category = "SET_b_r" },
{ mnemonic = "SET 3,H", category = "SET_b_r" },
{ mnemonic = "SET 3,L", category = "SET_b_r" },
{ mnemonic = "SET 3,(HL)", category = "SET_b_hl" },
{ mnemonic = "SET 3,A", category = "SET_b_r" },
{ mnemonic = "SET 4,B", category = "SET_b_r" },
{ mnemonic = "SET 4,C", category = "SET_b_r" },
{ mnemonic = "SET 4,D", category = "SET_b_r" },
{ mnemonic = "SET 4,E", category = "SET_b_r" },
{ mnemonic = "SET 4,H", category = "SET_b_r" },
{ mnemonic = "SET 4,L", category = "SET_b_r" },
{ mnemonic = "SET 4,(HL)", category = "SET_b_hl" },
{ mnemonic = "SET 4,A", category = "SET_b_r" },
{ mnemonic = "SET 5,B", category = "SET_b_r" },
{ mnemonic = "SET 5,C", category = "SET_b_r" },
{ mnemonic = "SET 5,D", category = "SET_b_r" },
{ mnemonic = "SET 5,E", category = "SET_b_r" },
{ mnemonic = "SET 5,H", category = "SET_b_r" },
{ mnemonic = "SET 5,L", category = "SET_b_r" },
{ mnemonic = "SET 5,(HL)", category = "SET_b_hl" },
{ mnemonic = "SET 5,A", category = "SET_b_r" },
{ mnemonic = "SET 6,B", category = "SET_b_r" },
{ mnemonic = "SET 6,C", category = "SET_b_r" },
{ mnemonic = "SET 6,D", category = "SET_b_r" },
{ mnemonic = "SET 6,E", category = "SET_b_r" },
{ mnemonic = "SET 6,H", category = "SET_b_r" },
{ mnemonic = "SET 6,L", category = "SET_b_r" },
{ mnemonic = "SET 6,(HL)", category = "SET_b_hl" },
{ mnemonic = "SET 6,A", category = "SET_b_r" },
{ mnemonic = "SET 7,B", category = "SET_b_r" },
{ mnemonic = "SET 7,C", category = "SET_b_r" },
{ mnemonic = "SET 7,D", category = "SET_b_r" },
{ mnemonic = "SET 7,E", category = "SET_b_r" },
{ mnemonic = "SET 7,H", category = "SET_b_r" },
{ mnemonic = "SET 7,L", category = "SET_b_r" },
{ mnemonic = "SET 7,(HL)", category = "SET_b_hl" },
{ mnemonic = "SET 7,A", category = "SET_b_r" },
]
[categories]
LD_r_r = { kind = "load_8b" }
LD_r_n = { kind = "load_8b" }
LD_r_hl = { kind = "load_8b" }
LD_hl_r = { kind = "load_8b" }
LD_hl_n = { kind = "load_8b" }
LD_a_bc = { kind = "load_8b" }
LD_a_de = { kind = "load_8b" }
LD_bc_a = { kind = "load_8b" }
LD_de_a = { kind = "load_8b" }
LD_a_nn = { kind = "load_8b" }
LD_nn_a = { kind = "load_8b" }
LDH_a_c = { kind = "load_8b" }
LDH_c_a = { kind = "load_8b" }
LDH_a_n = { kind = "load_8b" }
LDH_n_a = { kind = "load_8b" }
LD_a_hld = { kind = "load_8b" }
LD_hld_a = { kind = "load_8b" }
LD_a_hli = { kind = "load_8b" }
LD_hli_a = { kind = "load_8b" }
LD_rr_nn = { kind = "load_16b" }
LD_nn_sp = { kind = "load_16b" }
LD_sp_hl = { kind = "load_16b" }
LD_hl_sp_e = { kind = "load_16b" }
PUSH_rr = { kind = "load_16b" }
POP_rr = { kind = "load_16b" }
ADD_r = { kind = "alu_8b" }
ADD_hl = { kind = "alu_8b" }
ADD_n = { kind = "alu_8b" }
ADC_r = { kind = "alu_8b" }
ADC_hl = { kind = "alu_8b" }
ADC_n = { kind = "alu_8b" }
SUB_r = { kind = "alu_8b" }
SUB_hl = { kind = "alu_8b" }
SUB_n = { kind = "alu_8b" }
SBC_r = { kind = "alu_8b" }
SBC_hl = { kind = "alu_8b" }
SBC_n = { kind = "alu_8b" }
CP_r = { kind = "alu_8b" }
CP_hl = { kind = "alu_8b" }
CP_n = { kind = "alu_8b" }
INC_r = { kind = "alu_8b" }
INC_hl = { kind = "alu_8b" }
DEC_r = { kind = "alu_8b" }
DEC_hl = { kind = "alu_8b" }
AND_r = { kind = "alu_8b" }
AND_hl = { kind = "alu_8b" }
AND_n = { kind = "alu_8b" }
OR_r = { kind = "alu_8b" }
OR_hl = { kind = "alu_8b" }
OR_n = { kind = "alu_8b" }
XOR_r = { kind = "alu_8b" }
XOR_hl = { kind = "alu_8b" }
XOR_n = { kind = "alu_8b" }
CCF = { kind = "alu_8b" }
SCF = { kind = "alu_8b" }
DAA = { kind = "alu_8b" }
CPL = { kind = "alu_8b" }
INC_rr = { kind = "alu_16b" }
DEC_rr = { kind = "alu_16b" }
ADD_hl_rr = { kind = "alu_16b" }
ADD_sp_e = { kind = "alu_16b" }
CB = { kind = "rotate_shift_bit" }
RLCA = { kind = "rotate_shift_bit" }
RRCA = { kind = "rotate_shift_bit" }
RLA = { kind = "rotate_shift_bit" }
RRA = { kind = "rotate_shift_bit" }
RLC_r = { kind = "rotate_shift_bit" }
RLC_hl = { kind = "rotate_shift_bit" }
RRC_r = { kind = "rotate_shift_bit" }
RRC_hl = { kind = "rotate_shift_bit" }
RL_r = { kind = "rotate_shift_bit" }
RL_hl = { kind = "rotate_shift_bit" }
RR_r = { kind = "rotate_shift_bit" }
RR_hl = { kind = "rotate_shift_bit" }
SLA_r = { kind = "rotate_shift_bit" }
SLA_hl = { kind = "rotate_shift_bit" }
SRA_r = { kind = "rotate_shift_bit" }
SRA_hl = { kind = "rotate_shift_bit" }
SWAP_r = { kind = "rotate_shift_bit" }
SWAP_hl = { kind = "rotate_shift_bit" }
SRL_r = { kind = "rotate_shift_bit" }
SRL_hl = { kind = "rotate_shift_bit" }
BIT_b_r = { kind = "rotate_shift_bit" }
BIT_b_hl = { kind = "rotate_shift_bit" }
RES_b_r = { kind = "rotate_shift_bit" }
RES_b_hl = { kind = "rotate_shift_bit" }
SET_b_r = { kind = "rotate_shift_bit" }
SET_b_hl = { kind = "rotate_shift_bit" }
JP = { kind = "control" }
JP_hl = { kind = "control" }
JP_cc = { kind = "control" }
JR = { kind = "control" }
JR_cc = { kind = "control" }
CALL = { kind = "control" }
CALL_cc = { kind = "control" }
RET = { kind = "control" }
RET_cc = { kind = "control" }
RETI = { kind = "control" }
RST = { kind = "control" }
HALT = { kind = "misc" }
STOP = { kind = "misc" }
DI = { kind = "misc" }
EI = { kind = "misc" }
NOP = { kind = "misc" }
undefined = { kind = "undefined" }