Rizin
unix-like reverse engineering framework and cli tools
hcs08.inc
Go to the documentation of this file.
1 
2 // Additional instructions only supported on HCS08
3 static const inst_pageX g_hcs08_inst_overlay_table[] = {
4  { 0x32, M680X_INS_LDHX, ext_hid, inh_hid },
5  { 0x3e, M680X_INS_CPHX, ext_hid, inh_hid },
6  { 0x82, M680X_INS_BGND, inh_hid, inh_hid },
7  { 0x96, M680X_INS_STHX, ext_hid, inh_hid },
8 };
9 
10 // HCS08 PAGE2 instructions (prefix 0x9E)
11 static const inst_pageX g_hcs08_inst_page2_table[] = {
12  { 0x60, M680X_INS_NEG, idxS_hid, inh_hid },
13  { 0x61, M680X_INS_CBEQ, idxS_hid,rel8_hid },
14  { 0x63, M680X_INS_COM, idxS_hid, inh_hid },
15  { 0x64, M680X_INS_LSR, idxS_hid, inh_hid },
16  { 0x66, M680X_INS_ROR, idxS_hid, inh_hid },
17  { 0x67, M680X_INS_ASR, idxS_hid, inh_hid },
18  { 0x68, M680X_INS_LSL, idxS_hid, inh_hid },
19  { 0x69, M680X_INS_ROL, idxS_hid, inh_hid },
20  { 0x6a, M680X_INS_DEC, idxS_hid, inh_hid },
21  { 0x6b, M680X_INS_DBNZ, idxS_hid,rel8_hid },
22  { 0x6c, M680X_INS_INC, idxS_hid, inh_hid },
23  { 0x6d, M680X_INS_TST, idxS_hid, inh_hid },
24  { 0x6f, M680X_INS_CLR, idxS_hid, inh_hid },
25  { 0xae, M680X_INS_LDHX, idxX0_hid, inh_hid },
26  { 0xbe, M680X_INS_LDHX, idxX16_hid, inh_hid },
27  { 0xce, M680X_INS_LDHX, idxX_hid, inh_hid },
28  { 0xd0, M680X_INS_SUB, idxS16_hid, inh_hid },
29  { 0xd1, M680X_INS_CMP, idxS16_hid, inh_hid },
30  { 0xd2, M680X_INS_SBC, idxS16_hid, inh_hid },
31  { 0xd3, M680X_INS_CPX, idxS16_hid, inh_hid },
32  { 0xd4, M680X_INS_AND, idxS16_hid, inh_hid },
33  { 0xd5, M680X_INS_BIT, idxS16_hid, inh_hid },
34  { 0xd6, M680X_INS_LDA, idxS16_hid, inh_hid },
35  { 0xd7, M680X_INS_STA, idxS16_hid, inh_hid },
36  { 0xd8, M680X_INS_EOR, idxS16_hid, inh_hid },
37  { 0xd9, M680X_INS_ADC, idxS16_hid, inh_hid },
38  { 0xda, M680X_INS_ORA, idxS16_hid, inh_hid },
39  { 0xdb, M680X_INS_ADD, idxS16_hid, inh_hid },
40  { 0xde, M680X_INS_LDX, idxS16_hid, inh_hid },
41  { 0xdf, M680X_INS_STX, idxS16_hid, inh_hid },
42  { 0xe0, M680X_INS_SUB, idxS_hid, inh_hid },
43  { 0xe1, M680X_INS_CMP, idxS_hid, inh_hid },
44  { 0xe2, M680X_INS_SBC, idxS_hid, inh_hid },
45  { 0xe3, M680X_INS_CPX, idxS_hid, inh_hid },
46  { 0xe4, M680X_INS_AND, idxS_hid, inh_hid },
47  { 0xe5, M680X_INS_BIT, idxS_hid, inh_hid },
48  { 0xe6, M680X_INS_LDA, idxS_hid, inh_hid },
49  { 0xe7, M680X_INS_STA, idxS_hid, inh_hid },
50  { 0xe8, M680X_INS_EOR, idxS_hid, inh_hid },
51  { 0xe9, M680X_INS_ADC, idxS_hid, inh_hid },
52  { 0xea, M680X_INS_ORA, idxS_hid, inh_hid },
53  { 0xeb, M680X_INS_ADD, idxS_hid, inh_hid },
54  { 0xee, M680X_INS_LDX, idxS_hid, inh_hid },
55  { 0xef, M680X_INS_STX, idxS_hid, inh_hid },
56  { 0xf3, M680X_INS_CPHX, idxS_hid, inh_hid },
57  { 0xfe, M680X_INS_LDHX, idxS_hid, inh_hid },
58  { 0xff, M680X_INS_STHX, idxS_hid, inh_hid },
59 };
60 
@ M680X_INS_ADD
Definition: m680x.h:182
@ M680X_INS_ASR
Definition: m680x.h:203
@ M680X_INS_CMP
Definition: m680x.h:264
@ M680X_INS_AND
Definition: m680x.h:193
@ M680X_INS_INC
Definition: m680x.h:333
@ M680X_INS_DBNZ
Definition: m680x.h:293
@ M680X_INS_NEG
Definition: m680x.h:404
@ M680X_INS_BIT
Definition: m680x.h:225
@ M680X_INS_LDX
Definition: m680x.h:377
@ M680X_INS_BGND
Definition: m680x.h:215
@ M680X_INS_CLR
Definition: m680x.h:254
@ M680X_INS_CPHX
Definition: m680x.h:285
@ M680X_INS_COM
Definition: m680x.h:276
@ M680X_INS_ROR
Definition: m680x.h:449
@ M680X_INS_LSR
Definition: m680x.h:388
@ M680X_INS_STHX
Definition: m680x.h:480
@ M680X_INS_TST
Definition: m680x.h:511
@ M680X_INS_SUB
Definition: m680x.h:487
@ M680X_INS_EOR
Definition: m680x.h:320
@ M680X_INS_ADC
Definition: m680x.h:177
@ M680X_INS_ROL
Definition: m680x.h:443
@ M680X_INS_CBEQ
Definition: m680x.h:249
@ M680X_INS_DEC
Definition: m680x.h:296
@ M680X_INS_STA
Definition: m680x.h:471
@ M680X_INS_SBC
Definition: m680x.h:460
@ M680X_INS_LDA
Definition: m680x.h:363
@ M680X_INS_LDHX
Definition: m680x.h:371
@ M680X_INS_LSL
Definition: m680x.h:383
@ M680X_INS_ORA
Definition: m680x.h:412
@ M680X_INS_STX
Definition: m680x.h:485
@ M680X_INS_CPX
M6800/1/2/3.
Definition: m680x.h:287