aboutsummaryrefslogtreecommitdiffstats
path: root/capstone/arch/M680X/m6801.inc
diff options
context:
space:
mode:
authorAngelos Mouzakitis <a.mouzakitis@virtualopensystems.com>2023-10-10 14:33:42 +0000
committerAngelos Mouzakitis <a.mouzakitis@virtualopensystems.com>2023-10-10 14:33:42 +0000
commitaf1a266670d040d2f4083ff309d732d648afba2a (patch)
tree2fc46203448ddcc6f81546d379abfaeb323575e9 /capstone/arch/M680X/m6801.inc
parente02cda008591317b1625707ff8e115a4841aa889 (diff)
Add submodule dependency filesHEADmaster
Change-Id: Iaf8d18082d3991dec7c0ebbea540f092188eb4ec
Diffstat (limited to 'capstone/arch/M680X/m6801.inc')
-rw-r--r--capstone/arch/M680X/m6801.inc39
1 files changed, 39 insertions, 0 deletions
diff --git a/capstone/arch/M680X/m6801.inc b/capstone/arch/M680X/m6801.inc
new file mode 100644
index 000000000..0fe4592ca
--- /dev/null
+++ b/capstone/arch/M680X/m6801.inc
@@ -0,0 +1,39 @@
+
+// Additional instructions only supported on M6801/3
+static const inst_pageX g_m6801_inst_overlay_table[] = {
+ // 0x0x, inherent instructions
+ { 0x04, M680X_INS_LSRD, inh_hid, inh_hid },
+ { 0x05, M680X_INS_ASLD, inh_hid, inh_hid },
+ // 0x2x, relative branch instructions
+ { 0x21, M680X_INS_BRN, rel8_hid, inh_hid },
+ // 0x3x, inherent instructions
+ { 0x38, M680X_INS_PULX, inh_hid, inh_hid },
+ { 0x3A, M680X_INS_ABX, inh_hid, inh_hid },
+ { 0x3C, M680X_INS_PSHX, inh_hid, inh_hid },
+ { 0x3D, M680X_INS_MUL, inh_hid, inh_hid },
+ // 0x8x, immediate instructions with Register D
+ { 0x83, M680X_INS_SUBD, imm16_hid, inh_hid },
+ // 0x9x, direct instructions with register D
+ { 0x93, M680X_INS_SUBD, dir_hid, inh_hid },
+ { 0x9D, M680X_INS_JSR, dir_hid, inh_hid },
+ // 0xAx, indexed instructions with Register D
+ { 0xA3, M680X_INS_SUBD, idxX_hid, inh_hid },
+ // 0xBx, extended instructions with register D
+ { 0xB3, M680X_INS_SUBD, ext_hid, inh_hid },
+ // 0xCx, immediate instructions with register D
+ { 0xC3, M680X_INS_ADDD, imm16_hid, inh_hid },
+ { 0xCC, M680X_INS_LDD, imm16_hid, inh_hid },
+ // 0xDx direct instructions with register D
+ { 0xD3, M680X_INS_ADDD, dir_hid, inh_hid },
+ { 0xDC, M680X_INS_LDD, dir_hid, inh_hid },
+ { 0xDD, M680X_INS_STD, dir_hid, inh_hid },
+ // 0xEx, indexed instruction with register D
+ { 0xE3, M680X_INS_ADDD, idxX_hid, inh_hid },
+ { 0xEC, M680X_INS_LDD, idxX_hid, inh_hid },
+ { 0xED, M680X_INS_STD, idxX_hid, inh_hid },
+ // 0xFx, extended instructions with register D
+ { 0xF3, M680X_INS_ADDD, ext_hid, inh_hid },
+ { 0xFC, M680X_INS_LDD, ext_hid, inh_hid },
+ { 0xFD, M680X_INS_STD, ext_hid, inh_hid },
+};
+