Rizin
unix-like reverse engineering framework and cli tools
m6801.inc
Go to the documentation of this file.
1 
2 // Additional instructions only supported on M6801/3
3 static const inst_pageX g_m6801_inst_overlay_table[] = {
4  // 0x0x, inherent instructions
5  { 0x04, M680X_INS_LSRD, inh_hid, inh_hid },
6  { 0x05, M680X_INS_ASLD, inh_hid, inh_hid },
7  // 0x2x, relative branch instructions
8  { 0x21, M680X_INS_BRN, rel8_hid, inh_hid },
9  // 0x3x, inherent instructions
10  { 0x38, M680X_INS_PULX, inh_hid, inh_hid },
11  { 0x3A, M680X_INS_ABX, inh_hid, inh_hid },
12  { 0x3C, M680X_INS_PSHX, inh_hid, inh_hid },
13  { 0x3D, M680X_INS_MUL, inh_hid, inh_hid },
14  // 0x8x, immediate instructions with Register D
15  { 0x83, M680X_INS_SUBD, imm16_hid, inh_hid },
16  // 0x9x, direct instructions with register D
17  { 0x93, M680X_INS_SUBD, dir_hid, inh_hid },
18  { 0x9D, M680X_INS_JSR, dir_hid, inh_hid },
19  // 0xAx, indexed instructions with Register D
20  { 0xA3, M680X_INS_SUBD, idxX_hid, inh_hid },
21  // 0xBx, extended instructions with register D
22  { 0xB3, M680X_INS_SUBD, ext_hid, inh_hid },
23  // 0xCx, immediate instructions with register D
24  { 0xC3, M680X_INS_ADDD, imm16_hid, inh_hid },
25  { 0xCC, M680X_INS_LDD, imm16_hid, inh_hid },
26  // 0xDx direct instructions with register D
27  { 0xD3, M680X_INS_ADDD, dir_hid, inh_hid },
28  { 0xDC, M680X_INS_LDD, dir_hid, inh_hid },
29  { 0xDD, M680X_INS_STD, dir_hid, inh_hid },
30  // 0xEx, indexed instruction with register D
31  { 0xE3, M680X_INS_ADDD, idxX_hid, inh_hid },
32  { 0xEC, M680X_INS_LDD, idxX_hid, inh_hid },
33  { 0xED, M680X_INS_STD, idxX_hid, inh_hid },
34  // 0xFx, extended instructions with register D
35  { 0xF3, M680X_INS_ADDD, ext_hid, inh_hid },
36  { 0xFC, M680X_INS_LDD, ext_hid, inh_hid },
37  { 0xFD, M680X_INS_STD, ext_hid, inh_hid },
38 };
39 
@ M680X_INS_ABX
Definition: m680x.h:175
@ M680X_INS_PSHX
M6800/1/2/3.
Definition: m680x.h:428
@ M680X_INS_SUBD
Definition: m680x.h:490
@ M680X_INS_BRN
Definition: m680x.h:242
@ M680X_INS_LDD
Definition: m680x.h:368
@ M680X_INS_MUL
Definition: m680x.h:402
@ M680X_INS_ADDD
Definition: m680x.h:185
@ M680X_INS_STD
Definition: m680x.h:476
@ M680X_INS_ASLD
or LSLD
Definition: m680x.h:202
@ M680X_INS_LSRD
or ASRD
Definition: m680x.h:391
@ M680X_INS_JSR
Definition: m680x.h:345
@ M680X_INS_PULX
M6800/1/2/3.
Definition: m680x.h:439