hexcore-capstone 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (332) hide show
  1. package/LICENSE +26 -0
  2. package/README.md +191 -0
  3. package/binding.gyp +168 -0
  4. package/deps/capstone/LEB128.h +38 -0
  5. package/deps/capstone/MCDisassembler.h +14 -0
  6. package/deps/capstone/MCFixedLenDisassembler.h +32 -0
  7. package/deps/capstone/MCInst.c +270 -0
  8. package/deps/capstone/MCInst.h +165 -0
  9. package/deps/capstone/MCInstrDesc.c +41 -0
  10. package/deps/capstone/MCInstrDesc.h +167 -0
  11. package/deps/capstone/MCRegisterInfo.c +151 -0
  12. package/deps/capstone/MCRegisterInfo.h +116 -0
  13. package/deps/capstone/Mapping.c +254 -0
  14. package/deps/capstone/Mapping.h +174 -0
  15. package/deps/capstone/MathExtras.h +442 -0
  16. package/deps/capstone/SStream.c +181 -0
  17. package/deps/capstone/SStream.h +40 -0
  18. package/deps/capstone/arch/AArch64/AArch64AddressingModes.h +945 -0
  19. package/deps/capstone/arch/AArch64/AArch64BaseInfo.c +77 -0
  20. package/deps/capstone/arch/AArch64/AArch64BaseInfo.h +585 -0
  21. package/deps/capstone/arch/AArch64/AArch64Disassembler.c +2280 -0
  22. package/deps/capstone/arch/AArch64/AArch64Disassembler.h +18 -0
  23. package/deps/capstone/arch/AArch64/AArch64GenAsmWriter.inc +26589 -0
  24. package/deps/capstone/arch/AArch64/AArch64GenDisassemblerTables.inc +27322 -0
  25. package/deps/capstone/arch/AArch64/AArch64GenInstrInfo.inc +13194 -0
  26. package/deps/capstone/arch/AArch64/AArch64GenRegisterInfo.inc +3814 -0
  27. package/deps/capstone/arch/AArch64/AArch64GenRegisterName.inc +714 -0
  28. package/deps/capstone/arch/AArch64/AArch64GenRegisterV.inc +673 -0
  29. package/deps/capstone/arch/AArch64/AArch64GenSubtargetInfo.inc +229 -0
  30. package/deps/capstone/arch/AArch64/AArch64GenSystemOperands.inc +2863 -0
  31. package/deps/capstone/arch/AArch64/AArch64GenSystemOperands_enum.inc +21 -0
  32. package/deps/capstone/arch/AArch64/AArch64InstPrinter.c +3029 -0
  33. package/deps/capstone/arch/AArch64/AArch64InstPrinter.h +28 -0
  34. package/deps/capstone/arch/AArch64/AArch64Mapping.c +883 -0
  35. package/deps/capstone/arch/AArch64/AArch64Mapping.h +43 -0
  36. package/deps/capstone/arch/AArch64/AArch64MappingInsn.inc +37790 -0
  37. package/deps/capstone/arch/AArch64/AArch64MappingInsnName.inc +1282 -0
  38. package/deps/capstone/arch/AArch64/AArch64MappingInsnOp.inc +26994 -0
  39. package/deps/capstone/arch/AArch64/AArch64Module.c +44 -0
  40. package/deps/capstone/arch/AArch64/AArch64Module.h +12 -0
  41. package/deps/capstone/arch/ARM/ARMAddressingModes.h +698 -0
  42. package/deps/capstone/arch/ARM/ARMBaseInfo.h +486 -0
  43. package/deps/capstone/arch/ARM/ARMDisassembler.c +5763 -0
  44. package/deps/capstone/arch/ARM/ARMDisassembler.h +18 -0
  45. package/deps/capstone/arch/ARM/ARMGenAsmWriter.inc +9545 -0
  46. package/deps/capstone/arch/ARM/ARMGenDisassemblerTables.inc +15185 -0
  47. package/deps/capstone/arch/ARM/ARMGenInstrInfo.inc +6632 -0
  48. package/deps/capstone/arch/ARM/ARMGenRegisterInfo.inc +2102 -0
  49. package/deps/capstone/arch/ARM/ARMGenRegisterName.inc +231 -0
  50. package/deps/capstone/arch/ARM/ARMGenRegisterName_digit.inc +231 -0
  51. package/deps/capstone/arch/ARM/ARMGenSubtargetInfo.inc +162 -0
  52. package/deps/capstone/arch/ARM/ARMGenSystemRegister.inc +270 -0
  53. package/deps/capstone/arch/ARM/ARMInstPrinter.c +3364 -0
  54. package/deps/capstone/arch/ARM/ARMInstPrinter.h +43 -0
  55. package/deps/capstone/arch/ARM/ARMMapping.c +551 -0
  56. package/deps/capstone/arch/ARM/ARMMapping.h +40 -0
  57. package/deps/capstone/arch/ARM/ARMMappingInsn.inc +18772 -0
  58. package/deps/capstone/arch/ARM/ARMMappingInsnName.inc +475 -0
  59. package/deps/capstone/arch/ARM/ARMMappingInsnOp.inc +10729 -0
  60. package/deps/capstone/arch/ARM/ARMModule.c +63 -0
  61. package/deps/capstone/arch/ARM/ARMModule.h +12 -0
  62. package/deps/capstone/arch/BPF/BPFConstants.h +88 -0
  63. package/deps/capstone/arch/BPF/BPFDisassembler.c +464 -0
  64. package/deps/capstone/arch/BPF/BPFDisassembler.h +27 -0
  65. package/deps/capstone/arch/BPF/BPFInstPrinter.c +285 -0
  66. package/deps/capstone/arch/BPF/BPFInstPrinter.h +16 -0
  67. package/deps/capstone/arch/BPF/BPFMapping.c +513 -0
  68. package/deps/capstone/arch/BPF/BPFMapping.h +21 -0
  69. package/deps/capstone/arch/BPF/BPFModule.c +34 -0
  70. package/deps/capstone/arch/BPF/BPFModule.h +12 -0
  71. package/deps/capstone/arch/EVM/EVMDisassembler.c +379 -0
  72. package/deps/capstone/arch/EVM/EVMDisassembler.h +12 -0
  73. package/deps/capstone/arch/EVM/EVMInstPrinter.c +20 -0
  74. package/deps/capstone/arch/EVM/EVMInstPrinter.h +17 -0
  75. package/deps/capstone/arch/EVM/EVMMapping.c +344 -0
  76. package/deps/capstone/arch/EVM/EVMMapping.h +8 -0
  77. package/deps/capstone/arch/EVM/EVMMappingInsn.inc +259 -0
  78. package/deps/capstone/arch/EVM/EVMModule.c +33 -0
  79. package/deps/capstone/arch/EVM/EVMModule.h +12 -0
  80. package/deps/capstone/arch/M680X/M680XDisassembler.c +2307 -0
  81. package/deps/capstone/arch/M680X/M680XDisassembler.h +17 -0
  82. package/deps/capstone/arch/M680X/M680XDisassemblerInternals.h +57 -0
  83. package/deps/capstone/arch/M680X/M680XInstPrinter.c +360 -0
  84. package/deps/capstone/arch/M680X/M680XInstPrinter.h +25 -0
  85. package/deps/capstone/arch/M680X/M680XModule.c +77 -0
  86. package/deps/capstone/arch/M680X/M680XModule.h +12 -0
  87. package/deps/capstone/arch/M680X/cpu12.inc +335 -0
  88. package/deps/capstone/arch/M680X/hcs08.inc +60 -0
  89. package/deps/capstone/arch/M680X/hd6301.inc +15 -0
  90. package/deps/capstone/arch/M680X/hd6309.inc +259 -0
  91. package/deps/capstone/arch/M680X/insn_props.inc +367 -0
  92. package/deps/capstone/arch/M680X/m6800.inc +277 -0
  93. package/deps/capstone/arch/M680X/m6801.inc +39 -0
  94. package/deps/capstone/arch/M680X/m6805.inc +277 -0
  95. package/deps/capstone/arch/M680X/m6808.inc +91 -0
  96. package/deps/capstone/arch/M680X/m6809.inc +352 -0
  97. package/deps/capstone/arch/M680X/m6811.inc +105 -0
  98. package/deps/capstone/arch/M68K/M68KDisassembler.c +3668 -0
  99. package/deps/capstone/arch/M68K/M68KDisassembler.h +30 -0
  100. package/deps/capstone/arch/M68K/M68KInstPrinter.c +387 -0
  101. package/deps/capstone/arch/M68K/M68KInstPrinter.h +21 -0
  102. package/deps/capstone/arch/M68K/M68KInstructionTable.inc +65540 -0
  103. package/deps/capstone/arch/M68K/M68KModule.c +42 -0
  104. package/deps/capstone/arch/M68K/M68KModule.h +12 -0
  105. package/deps/capstone/arch/MOS65XX/MOS65XXDisassembler.c +544 -0
  106. package/deps/capstone/arch/MOS65XX/MOS65XXDisassembler.h +22 -0
  107. package/deps/capstone/arch/MOS65XX/MOS65XXDisassemblerInternals.h +23 -0
  108. package/deps/capstone/arch/MOS65XX/MOS65XXModule.c +79 -0
  109. package/deps/capstone/arch/MOS65XX/MOS65XXModule.h +12 -0
  110. package/deps/capstone/arch/MOS65XX/instruction_info.inc +106 -0
  111. package/deps/capstone/arch/MOS65XX/m6502.inc +256 -0
  112. package/deps/capstone/arch/MOS65XX/m65816.inc +256 -0
  113. package/deps/capstone/arch/MOS65XX/m65c02.inc +256 -0
  114. package/deps/capstone/arch/MOS65XX/mw65c02.inc +256 -0
  115. package/deps/capstone/arch/Mips/MipsDisassembler.c +1794 -0
  116. package/deps/capstone/arch/Mips/MipsDisassembler.h +16 -0
  117. package/deps/capstone/arch/Mips/MipsGenAsmWriter.inc +5725 -0
  118. package/deps/capstone/arch/Mips/MipsGenDisassemblerTables.inc +6942 -0
  119. package/deps/capstone/arch/Mips/MipsGenInstrInfo.inc +1805 -0
  120. package/deps/capstone/arch/Mips/MipsGenRegisterInfo.inc +1679 -0
  121. package/deps/capstone/arch/Mips/MipsGenSubtargetInfo.inc +52 -0
  122. package/deps/capstone/arch/Mips/MipsInstPrinter.c +424 -0
  123. package/deps/capstone/arch/Mips/MipsInstPrinter.h +25 -0
  124. package/deps/capstone/arch/Mips/MipsMapping.c +1070 -0
  125. package/deps/capstone/arch/Mips/MipsMapping.h +25 -0
  126. package/deps/capstone/arch/Mips/MipsMappingInsn.inc +9315 -0
  127. package/deps/capstone/arch/Mips/MipsModule.c +52 -0
  128. package/deps/capstone/arch/Mips/MipsModule.h +12 -0
  129. package/deps/capstone/arch/PowerPC/PPCDisassembler.c +627 -0
  130. package/deps/capstone/arch/PowerPC/PPCDisassembler.h +17 -0
  131. package/deps/capstone/arch/PowerPC/PPCGenAsmWriter.inc +11451 -0
  132. package/deps/capstone/arch/PowerPC/PPCGenDisassemblerTables.inc +6886 -0
  133. package/deps/capstone/arch/PowerPC/PPCGenInstrInfo.inc +4772 -0
  134. package/deps/capstone/arch/PowerPC/PPCGenRegisterInfo.inc +1122 -0
  135. package/deps/capstone/arch/PowerPC/PPCGenRegisterName.inc +278 -0
  136. package/deps/capstone/arch/PowerPC/PPCGenSubtargetInfo.inc +90 -0
  137. package/deps/capstone/arch/PowerPC/PPCInstPrinter.c +1238 -0
  138. package/deps/capstone/arch/PowerPC/PPCInstPrinter.h +15 -0
  139. package/deps/capstone/arch/PowerPC/PPCMapping.c +570 -0
  140. package/deps/capstone/arch/PowerPC/PPCMapping.h +40 -0
  141. package/deps/capstone/arch/PowerPC/PPCMappingInsn.inc +13220 -0
  142. package/deps/capstone/arch/PowerPC/PPCMappingInsnName.inc +1731 -0
  143. package/deps/capstone/arch/PowerPC/PPCModule.c +45 -0
  144. package/deps/capstone/arch/PowerPC/PPCModule.h +12 -0
  145. package/deps/capstone/arch/PowerPC/PPCPredicates.h +62 -0
  146. package/deps/capstone/arch/RISCV/RISCVBaseInfo.h +106 -0
  147. package/deps/capstone/arch/RISCV/RISCVDisassembler.c +433 -0
  148. package/deps/capstone/arch/RISCV/RISCVDisassembler.h +18 -0
  149. package/deps/capstone/arch/RISCV/RISCVGenAsmWriter.inc +2651 -0
  150. package/deps/capstone/arch/RISCV/RISCVGenDisassemblerTables.inc +1776 -0
  151. package/deps/capstone/arch/RISCV/RISCVGenInsnNameMaps.inc +275 -0
  152. package/deps/capstone/arch/RISCV/RISCVGenInstrInfo.inc +470 -0
  153. package/deps/capstone/arch/RISCV/RISCVGenRegisterInfo.inc +426 -0
  154. package/deps/capstone/arch/RISCV/RISCVGenSubtargetInfo.inc +33 -0
  155. package/deps/capstone/arch/RISCV/RISCVInstPrinter.c +447 -0
  156. package/deps/capstone/arch/RISCV/RISCVInstPrinter.h +24 -0
  157. package/deps/capstone/arch/RISCV/RISCVMapping.c +366 -0
  158. package/deps/capstone/arch/RISCV/RISCVMapping.h +22 -0
  159. package/deps/capstone/arch/RISCV/RISCVMappingInsn.inc +1635 -0
  160. package/deps/capstone/arch/RISCV/RISCVModule.c +42 -0
  161. package/deps/capstone/arch/RISCV/RISCVModule.h +12 -0
  162. package/deps/capstone/arch/SH/SHDisassembler.c +2221 -0
  163. package/deps/capstone/arch/SH/SHDisassembler.h +19 -0
  164. package/deps/capstone/arch/SH/SHInsnTable.inc +66 -0
  165. package/deps/capstone/arch/SH/SHInstPrinter.c +438 -0
  166. package/deps/capstone/arch/SH/SHInstPrinter.h +23 -0
  167. package/deps/capstone/arch/SH/SHModule.c +39 -0
  168. package/deps/capstone/arch/SH/SHModule.h +12 -0
  169. package/deps/capstone/arch/SH/mktable.rb +390 -0
  170. package/deps/capstone/arch/Sparc/Sparc.h +63 -0
  171. package/deps/capstone/arch/Sparc/SparcDisassembler.c +500 -0
  172. package/deps/capstone/arch/Sparc/SparcDisassembler.h +17 -0
  173. package/deps/capstone/arch/Sparc/SparcGenAsmWriter.inc +5709 -0
  174. package/deps/capstone/arch/Sparc/SparcGenDisassemblerTables.inc +2028 -0
  175. package/deps/capstone/arch/Sparc/SparcGenInstrInfo.inc +514 -0
  176. package/deps/capstone/arch/Sparc/SparcGenRegisterInfo.inc +451 -0
  177. package/deps/capstone/arch/Sparc/SparcGenSubtargetInfo.inc +27 -0
  178. package/deps/capstone/arch/Sparc/SparcInstPrinter.c +446 -0
  179. package/deps/capstone/arch/Sparc/SparcInstPrinter.h +17 -0
  180. package/deps/capstone/arch/Sparc/SparcMapping.c +665 -0
  181. package/deps/capstone/arch/Sparc/SparcMapping.h +34 -0
  182. package/deps/capstone/arch/Sparc/SparcMappingInsn.inc +2643 -0
  183. package/deps/capstone/arch/Sparc/SparcModule.c +45 -0
  184. package/deps/capstone/arch/Sparc/SparcModule.h +12 -0
  185. package/deps/capstone/arch/SystemZ/SystemZDisassembler.c +484 -0
  186. package/deps/capstone/arch/SystemZ/SystemZDisassembler.h +17 -0
  187. package/deps/capstone/arch/SystemZ/SystemZGenAsmWriter.inc +11575 -0
  188. package/deps/capstone/arch/SystemZ/SystemZGenDisassemblerTables.inc +10262 -0
  189. package/deps/capstone/arch/SystemZ/SystemZGenInsnNameMaps.inc +2348 -0
  190. package/deps/capstone/arch/SystemZ/SystemZGenInstrInfo.inc +2820 -0
  191. package/deps/capstone/arch/SystemZ/SystemZGenRegisterInfo.inc +741 -0
  192. package/deps/capstone/arch/SystemZ/SystemZGenSubtargetInfo.inc +49 -0
  193. package/deps/capstone/arch/SystemZ/SystemZInstPrinter.c +433 -0
  194. package/deps/capstone/arch/SystemZ/SystemZInstPrinter.h +15 -0
  195. package/deps/capstone/arch/SystemZ/SystemZMCTargetDesc.c +195 -0
  196. package/deps/capstone/arch/SystemZ/SystemZMCTargetDesc.h +51 -0
  197. package/deps/capstone/arch/SystemZ/SystemZMapping.c +479 -0
  198. package/deps/capstone/arch/SystemZ/SystemZMapping.h +23 -0
  199. package/deps/capstone/arch/SystemZ/SystemZMappingInsn.inc +14175 -0
  200. package/deps/capstone/arch/SystemZ/SystemZModule.c +44 -0
  201. package/deps/capstone/arch/SystemZ/SystemZModule.h +12 -0
  202. package/deps/capstone/arch/TMS320C64x/TMS320C64xDisassembler.c +628 -0
  203. package/deps/capstone/arch/TMS320C64x/TMS320C64xDisassembler.h +19 -0
  204. package/deps/capstone/arch/TMS320C64x/TMS320C64xGenAsmWriter.inc +684 -0
  205. package/deps/capstone/arch/TMS320C64x/TMS320C64xGenDisassemblerTables.inc +1352 -0
  206. package/deps/capstone/arch/TMS320C64x/TMS320C64xGenInstrInfo.inc +298 -0
  207. package/deps/capstone/arch/TMS320C64x/TMS320C64xGenRegisterInfo.inc +277 -0
  208. package/deps/capstone/arch/TMS320C64x/TMS320C64xInstPrinter.c +572 -0
  209. package/deps/capstone/arch/TMS320C64x/TMS320C64xInstPrinter.h +15 -0
  210. package/deps/capstone/arch/TMS320C64x/TMS320C64xMapping.c +1926 -0
  211. package/deps/capstone/arch/TMS320C64x/TMS320C64xMapping.h +26 -0
  212. package/deps/capstone/arch/TMS320C64x/TMS320C64xModule.c +39 -0
  213. package/deps/capstone/arch/TMS320C64x/TMS320C64xModule.h +12 -0
  214. package/deps/capstone/arch/TriCore/TriCore.td +134 -0
  215. package/deps/capstone/arch/TriCore/TriCoreCallingConv.td +61 -0
  216. package/deps/capstone/arch/TriCore/TriCoreDisassembler.c +1655 -0
  217. package/deps/capstone/arch/TriCore/TriCoreDisassembler.h +18 -0
  218. package/deps/capstone/arch/TriCore/TriCoreGenAsmWriter.inc +3691 -0
  219. package/deps/capstone/arch/TriCore/TriCoreGenCSFeatureName.inc +22 -0
  220. package/deps/capstone/arch/TriCore/TriCoreGenCSMappingInsn.inc +8938 -0
  221. package/deps/capstone/arch/TriCore/TriCoreGenCSMappingInsnName.inc +404 -0
  222. package/deps/capstone/arch/TriCore/TriCoreGenCSMappingInsnOp.inc +7994 -0
  223. package/deps/capstone/arch/TriCore/TriCoreGenCSOpGroup.inc +32 -0
  224. package/deps/capstone/arch/TriCore/TriCoreGenDisassemblerTables.inc +4044 -0
  225. package/deps/capstone/arch/TriCore/TriCoreGenInstrInfo.inc +2693 -0
  226. package/deps/capstone/arch/TriCore/TriCoreGenRegisterInfo.inc +295 -0
  227. package/deps/capstone/arch/TriCore/TriCoreGenSubtargetInfo.inc +40 -0
  228. package/deps/capstone/arch/TriCore/TriCoreInstPrinter.c +488 -0
  229. package/deps/capstone/arch/TriCore/TriCoreInstrFormats.td +773 -0
  230. package/deps/capstone/arch/TriCore/TriCoreInstrInfo.td +1873 -0
  231. package/deps/capstone/arch/TriCore/TriCoreLinkage.h +21 -0
  232. package/deps/capstone/arch/TriCore/TriCoreMapping.c +241 -0
  233. package/deps/capstone/arch/TriCore/TriCoreMapping.h +32 -0
  234. package/deps/capstone/arch/TriCore/TriCoreModule.c +44 -0
  235. package/deps/capstone/arch/TriCore/TriCoreModule.h +11 -0
  236. package/deps/capstone/arch/TriCore/TriCoreRegisterInfo.td +153 -0
  237. package/deps/capstone/arch/WASM/WASMDisassembler.c +1009 -0
  238. package/deps/capstone/arch/WASM/WASMDisassembler.h +12 -0
  239. package/deps/capstone/arch/WASM/WASMInstPrinter.c +47 -0
  240. package/deps/capstone/arch/WASM/WASMInstPrinter.h +18 -0
  241. package/deps/capstone/arch/WASM/WASMMapping.c +333 -0
  242. package/deps/capstone/arch/WASM/WASMMapping.h +9 -0
  243. package/deps/capstone/arch/WASM/WASMModule.c +33 -0
  244. package/deps/capstone/arch/WASM/WASMModule.h +12 -0
  245. package/deps/capstone/arch/X86/X86ATTInstPrinter.c +997 -0
  246. package/deps/capstone/arch/X86/X86BaseInfo.h +50 -0
  247. package/deps/capstone/arch/X86/X86Disassembler.c +1033 -0
  248. package/deps/capstone/arch/X86/X86Disassembler.h +28 -0
  249. package/deps/capstone/arch/X86/X86DisassemblerDecoder.c +2358 -0
  250. package/deps/capstone/arch/X86/X86DisassemblerDecoder.h +725 -0
  251. package/deps/capstone/arch/X86/X86DisassemblerDecoderCommon.h +483 -0
  252. package/deps/capstone/arch/X86/X86GenAsmWriter.inc +49199 -0
  253. package/deps/capstone/arch/X86/X86GenAsmWriter1.inc +33196 -0
  254. package/deps/capstone/arch/X86/X86GenAsmWriter1_reduce.inc +2531 -0
  255. package/deps/capstone/arch/X86/X86GenAsmWriter_reduce.inc +2855 -0
  256. package/deps/capstone/arch/X86/X86GenDisassemblerTables.inc +112961 -0
  257. package/deps/capstone/arch/X86/X86GenDisassemblerTables2.inc +102151 -0
  258. package/deps/capstone/arch/X86/X86GenDisassemblerTables_reduce.inc +28047 -0
  259. package/deps/capstone/arch/X86/X86GenDisassemblerTables_reduce2.inc +18827 -0
  260. package/deps/capstone/arch/X86/X86GenInstrInfo.inc +15158 -0
  261. package/deps/capstone/arch/X86/X86GenInstrInfo_reduce.inc +1564 -0
  262. package/deps/capstone/arch/X86/X86GenRegisterInfo.inc +1549 -0
  263. package/deps/capstone/arch/X86/X86GenRegisterName.inc +292 -0
  264. package/deps/capstone/arch/X86/X86GenRegisterName1.inc +291 -0
  265. package/deps/capstone/arch/X86/X86ImmSize.inc +335 -0
  266. package/deps/capstone/arch/X86/X86InstPrinter.h +26 -0
  267. package/deps/capstone/arch/X86/X86InstPrinterCommon.c +116 -0
  268. package/deps/capstone/arch/X86/X86InstPrinterCommon.h +16 -0
  269. package/deps/capstone/arch/X86/X86IntelInstPrinter.c +1061 -0
  270. package/deps/capstone/arch/X86/X86Lookup16.inc +16874 -0
  271. package/deps/capstone/arch/X86/X86Lookup16_reduce.inc +2308 -0
  272. package/deps/capstone/arch/X86/X86Mapping.c +2266 -0
  273. package/deps/capstone/arch/X86/X86Mapping.h +96 -0
  274. package/deps/capstone/arch/X86/X86MappingInsn.inc +105977 -0
  275. package/deps/capstone/arch/X86/X86MappingInsnName.inc +1527 -0
  276. package/deps/capstone/arch/X86/X86MappingInsnName_reduce.inc +348 -0
  277. package/deps/capstone/arch/X86/X86MappingInsnOp.inc +75700 -0
  278. package/deps/capstone/arch/X86/X86MappingInsnOp_reduce.inc +7729 -0
  279. package/deps/capstone/arch/X86/X86MappingInsn_reduce.inc +10819 -0
  280. package/deps/capstone/arch/X86/X86MappingReg.inc +280 -0
  281. package/deps/capstone/arch/X86/X86Module.c +94 -0
  282. package/deps/capstone/arch/X86/X86Module.h +12 -0
  283. package/deps/capstone/arch/XCore/XCoreDisassembler.c +794 -0
  284. package/deps/capstone/arch/XCore/XCoreDisassembler.h +17 -0
  285. package/deps/capstone/arch/XCore/XCoreGenAsmWriter.inc +772 -0
  286. package/deps/capstone/arch/XCore/XCoreGenDisassemblerTables.inc +853 -0
  287. package/deps/capstone/arch/XCore/XCoreGenInstrInfo.inc +267 -0
  288. package/deps/capstone/arch/XCore/XCoreGenRegisterInfo.inc +110 -0
  289. package/deps/capstone/arch/XCore/XCoreInstPrinter.c +250 -0
  290. package/deps/capstone/arch/XCore/XCoreInstPrinter.h +18 -0
  291. package/deps/capstone/arch/XCore/XCoreMapping.c +297 -0
  292. package/deps/capstone/arch/XCore/XCoreMapping.h +26 -0
  293. package/deps/capstone/arch/XCore/XCoreMappingInsn.inc +1287 -0
  294. package/deps/capstone/arch/XCore/XCoreModule.c +41 -0
  295. package/deps/capstone/arch/XCore/XCoreModule.h +12 -0
  296. package/deps/capstone/cs.c +1664 -0
  297. package/deps/capstone/cs_priv.h +101 -0
  298. package/deps/capstone/cs_simple_types.h +886 -0
  299. package/deps/capstone/include/capstone/arm.h +991 -0
  300. package/deps/capstone/include/capstone/arm64.h +3159 -0
  301. package/deps/capstone/include/capstone/bpf.h +209 -0
  302. package/deps/capstone/include/capstone/capstone.h +875 -0
  303. package/deps/capstone/include/capstone/evm.h +188 -0
  304. package/deps/capstone/include/capstone/m680x.h +537 -0
  305. package/deps/capstone/include/capstone/m68k.h +613 -0
  306. package/deps/capstone/include/capstone/mips.h +956 -0
  307. package/deps/capstone/include/capstone/mos65xx.h +204 -0
  308. package/deps/capstone/include/capstone/platform.h +122 -0
  309. package/deps/capstone/include/capstone/ppc.h +2108 -0
  310. package/deps/capstone/include/capstone/riscv.h +531 -0
  311. package/deps/capstone/include/capstone/sh.h +465 -0
  312. package/deps/capstone/include/capstone/sparc.h +520 -0
  313. package/deps/capstone/include/capstone/systemz.h +2601 -0
  314. package/deps/capstone/include/capstone/tms320c64x.h +359 -0
  315. package/deps/capstone/include/capstone/tricore.h +567 -0
  316. package/deps/capstone/include/capstone/wasm.h +250 -0
  317. package/deps/capstone/include/capstone/x86.h +1986 -0
  318. package/deps/capstone/include/capstone/xcore.h +235 -0
  319. package/deps/capstone/include/platform.h +110 -0
  320. package/deps/capstone/include/windowsce/intrin.h +12 -0
  321. package/deps/capstone/include/windowsce/stdint.h +133 -0
  322. package/deps/capstone/utils.c +140 -0
  323. package/deps/capstone/utils.h +54 -0
  324. package/index.d.ts +448 -0
  325. package/index.js +64 -0
  326. package/index.mjs +25 -0
  327. package/package.json +82 -0
  328. package/prebuilds/win32-x64/hexcore-capstone.node +0 -0
  329. package/src/capstone_wrapper.cpp +910 -0
  330. package/src/capstone_wrapper.h +147 -0
  331. package/src/disasm_async_worker.h +215 -0
  332. package/src/main.cpp +145 -0
@@ -0,0 +1,367 @@
1
+
2
+ // These temporary defines keep the following table short and handy.
3
+ #define NOG M680X_GRP_INVALID
4
+ #define NOR M680X_REG_INVALID
5
+
6
+ static const insn_props g_insn_props[] = {
7
+ { NOG, uuuu, NOR, NOR, false, false }, // INVLD
8
+ { NOG, rmmm, M680X_REG_B, M680X_REG_A, true, false }, // ABA
9
+ { NOG, rmmm, M680X_REG_B, M680X_REG_X, false, false }, // ABX
10
+ { NOG, rmmm, M680X_REG_B, M680X_REG_Y, false, false }, // ABY
11
+ { NOG, mrrr, M680X_REG_A, NOR, true, false }, // ADC
12
+ { NOG, mrrr, M680X_REG_A, NOR, true, false }, // ADCA
13
+ { NOG, mrrr, M680X_REG_B, NOR, true, false }, // ADCB
14
+ { NOG, mrrr, M680X_REG_D, NOR, true, false }, // ADCD
15
+ { NOG, rmmm, NOR, NOR, true, false }, // ADCR
16
+ { NOG, mrrr, M680X_REG_A, NOR, true, false }, // ADD
17
+ { NOG, mrrr, M680X_REG_A, NOR, true, false }, // ADDA
18
+ { NOG, mrrr, M680X_REG_B, NOR, true, false }, // ADDB
19
+ { NOG, mrrr, M680X_REG_D, NOR, true, false }, // ADDD
20
+ { NOG, mrrr, M680X_REG_E, NOR, true, false }, // ADDE
21
+ { NOG, mrrr, M680X_REG_F, NOR, true, false }, // ADDF
22
+ { NOG, rmmm, NOR, NOR, true, false }, // ADDR
23
+ { NOG, mrrr, M680X_REG_W, NOR, true, false }, // ADDW
24
+ { NOG, rmmm, NOR, NOR, true, false }, // AIM
25
+ { NOG, mrrr, M680X_REG_S, NOR, false, false }, // AIS
26
+ { NOG, mrrr, M680X_REG_HX, NOR, false, false }, // AIX
27
+ { NOG, mrrr, M680X_REG_A, NOR, true, false }, // AND
28
+ { NOG, mrrr, M680X_REG_A, NOR, true, false }, // ANDA
29
+ { NOG, mrrr, M680X_REG_B, NOR, true, false }, // ANDB
30
+ { NOG, mrrr, M680X_REG_CC, NOR, true, false }, // ANDCC
31
+ { NOG, mrrr, M680X_REG_D, NOR, true, false }, // ANDD
32
+ { NOG, rmmm, NOR, NOR, true, false }, // ANDR
33
+ { NOG, mrrr, NOR, NOR, true, false }, // ASL
34
+ { NOG, mrrr, M680X_REG_A, NOR, true, false }, // ASLA
35
+ { NOG, mrrr, M680X_REG_B, NOR, true, false }, // ASLB
36
+ { NOG, mrrr, M680X_REG_D, NOR, true, false }, // ASLD
37
+ { NOG, mrrr, NOR, NOR, true, false }, // ASR
38
+ { NOG, mrrr, M680X_REG_A, NOR, true, false }, // ASRA
39
+ { NOG, mrrr, M680X_REG_B, NOR, true, false }, // ASRB
40
+ { NOG, mrrr, M680X_REG_D, NOR, true, false }, // ASRD
41
+ { NOG, mrrr, M680X_REG_X, NOR, true, false }, // ASRX
42
+ { NOG, mrrr, NOR, NOR, false, false }, // BAND
43
+ { M680X_GRP_JUMP, uuuu, NOR, NOR, false, false }, // BCC
44
+ { NOG, mrrr, NOR, NOR, true, false }, // BCLR
45
+ { M680X_GRP_JUMP, uuuu, NOR, NOR, false, false }, // BCS
46
+ { NOG, mrrr, NOR, NOR, false, false }, // BEOR
47
+ { M680X_GRP_JUMP, uuuu, NOR, NOR, false, false }, // BEQ
48
+ { M680X_GRP_JUMP, uuuu, NOR, NOR, false, false }, // BGE
49
+ { NOG, uuuu, NOR, NOR, false, false }, // BGND
50
+ { M680X_GRP_JUMP, uuuu, NOR, NOR, false, false }, // BGT
51
+ { M680X_GRP_JUMP, uuuu, NOR, NOR, false, false }, // BHCC
52
+ { M680X_GRP_JUMP, uuuu, NOR, NOR, false, false }, // BHCS
53
+ { M680X_GRP_JUMP, uuuu, NOR, NOR, false, false }, // BHI
54
+ { NOG, mrrr, NOR, NOR, false, false }, // BIAND
55
+ { NOG, mrrr, NOR, NOR, false, false }, // BIEOR
56
+ { M680X_GRP_JUMP, uuuu, NOR, NOR, false, false }, // BIH
57
+ { M680X_GRP_JUMP, uuuu, NOR, NOR, false, false }, // BIL
58
+ { NOG, mrrr, NOR, NOR, false, false }, // BIOR
59
+ { NOG, rrrr, M680X_REG_A, NOR, true, false }, // BIT
60
+ { NOG, rrrr, M680X_REG_A, NOR, true, false }, // BITA
61
+ { NOG, rrrr, M680X_REG_B, NOR, true, false }, // BITB
62
+ { NOG, rrrr, M680X_REG_D, NOR, true, false }, // BITD
63
+ { NOG, rrrr, M680X_REG_MD, NOR, true, false }, // BITMD
64
+ { M680X_GRP_JUMP, uuuu, NOR, NOR, false, false }, // BLE
65
+ { M680X_GRP_JUMP, uuuu, NOR, NOR, false, false }, // BLS
66
+ { M680X_GRP_JUMP, uuuu, NOR, NOR, false, false }, // BLT
67
+ { M680X_GRP_JUMP, uuuu, NOR, NOR, false, false }, // BMC
68
+ { M680X_GRP_JUMP, uuuu, NOR, NOR, false, false }, // BMI
69
+ { M680X_GRP_JUMP, uuuu, NOR, NOR, false, false }, // BMS
70
+ { M680X_GRP_JUMP, uuuu, NOR, NOR, false, false }, // BNE
71
+ { NOG, mrrr, NOR, NOR, false, false }, // BOR
72
+ { M680X_GRP_JUMP, uuuu, NOR, NOR, false, false }, // BPL
73
+ { M680X_GRP_JUMP, rruu, NOR, NOR, false, false }, // BRCLR
74
+ { M680X_GRP_JUMP, rruu, NOR, NOR, false, false }, // BRSET
75
+ { M680X_GRP_JUMP, uuuu, NOR, NOR, false, false }, // BRA
76
+ { M680X_GRP_JUMP, uuuu, NOR, NOR, false, false }, // BRN never branches
77
+ { NOG, mrrr, NOR, NOR, true, false }, // BSET
78
+ { M680X_GRP_CALL, uuuu, NOR, NOR, false, true }, // BSR
79
+ { M680X_GRP_JUMP, uuuu, NOR, NOR, false, false }, // BVC
80
+ { M680X_GRP_JUMP, uuuu, NOR, NOR, false, false }, // BVS
81
+ { M680X_GRP_CALL, uuuu, NOR, NOR, false, true }, // CALL
82
+ { NOG, rrrr, M680X_REG_B, M680X_REG_A, true, false }, // CBA
83
+ { M680X_GRP_JUMP, rruu, M680X_REG_A, NOR, false, false }, // CBEQ
84
+ { M680X_GRP_JUMP, rruu, M680X_REG_A, NOR, false, false }, // CBEQA
85
+ { M680X_GRP_JUMP, rruu, M680X_REG_X, NOR, false, false }, // CBEQX
86
+ { NOG, uuuu, NOR, NOR, true, false }, // CLC
87
+ { NOG, uuuu, NOR, NOR, true, false }, // CLI
88
+ { NOG, wrrr, NOR, NOR, true, false }, // CLR
89
+ { NOG, wrrr, M680X_REG_A, NOR, true, false }, // CLRA
90
+ { NOG, wrrr, M680X_REG_B, NOR, true, false }, // CLRB
91
+ { NOG, wrrr, M680X_REG_D, NOR, true, false }, // CLRD
92
+ { NOG, wrrr, M680X_REG_E, NOR, true, false }, // CLRE
93
+ { NOG, wrrr, M680X_REG_F, NOR, true, false }, // CLRF
94
+ { NOG, wrrr, M680X_REG_H, NOR, true, false }, // CLRH
95
+ { NOG, wrrr, M680X_REG_W, NOR, true, false }, // CLRW
96
+ { NOG, wrrr, M680X_REG_X, NOR, true, false }, // CLRX
97
+ { NOG, uuuu, NOR, NOR, true, false }, // CLV
98
+ { NOG, rrrr, M680X_REG_A, NOR, true, false }, // CMP
99
+ { NOG, rrrr, M680X_REG_A, NOR, true, false }, // CMPA
100
+ { NOG, rrrr, M680X_REG_B, NOR, true, false }, // CMPB
101
+ { NOG, rrrr, M680X_REG_D, NOR, true, false }, // CMPD
102
+ { NOG, rrrr, M680X_REG_E, NOR, true, false }, // CMPE
103
+ { NOG, rrrr, M680X_REG_F, NOR, true, false }, // CMPF
104
+ { NOG, rrrr, NOR, NOR, true, false }, // CMPR
105
+ { NOG, rrrr, M680X_REG_S, NOR, true, false }, // CMPS
106
+ { NOG, rrrr, M680X_REG_U, NOR, true, false }, // CMPU
107
+ { NOG, rrrr, M680X_REG_W, NOR, true, false }, // CMPW
108
+ { NOG, rrrr, M680X_REG_X, NOR, true, false }, // CMPX
109
+ { NOG, rrrr, M680X_REG_Y, NOR, true, false }, // CMPY
110
+ { NOG, mrrr, NOR, NOR, true, false }, // COM
111
+ { NOG, mrrr, M680X_REG_A, NOR, true, false }, // COMA
112
+ { NOG, mrrr, M680X_REG_B, NOR, true, false }, // COMB
113
+ { NOG, mrrr, M680X_REG_D, NOR, true, false }, // COMD
114
+ { NOG, mrrr, M680X_REG_E, NOR, true, false }, // COME
115
+ { NOG, mrrr, M680X_REG_F, NOR, true, false }, // COMF
116
+ { NOG, mrrr, M680X_REG_W, NOR, true, false }, // COMW
117
+ { NOG, mrrr, M680X_REG_X, NOR, true, false }, // COMX
118
+ { NOG, rrrr, M680X_REG_D, NOR, true, false }, // CPD
119
+ { NOG, rrrr, M680X_REG_HX, NOR, true, false }, // CPHX
120
+ { NOG, rrrr, M680X_REG_S, NOR, true, false }, // CPS
121
+ { NOG, rrrr, M680X_REG_X, NOR, true, false }, // CPX
122
+ { NOG, rrrr, M680X_REG_Y, NOR, true, false }, // CPY
123
+ { NOG, mrrr, NOR, NOR, true, true }, // CWAI
124
+ { NOG, mrrr, NOR, NOR, true, true }, // DAA
125
+ { M680X_GRP_JUMP, muuu, NOR, NOR, false, false }, // DBEQ
126
+ { M680X_GRP_JUMP, muuu, NOR, NOR, false, false }, // DBNE
127
+ { M680X_GRP_JUMP, muuu, NOR, NOR, false, false }, // DBNZ
128
+ { M680X_GRP_JUMP, muuu, M680X_REG_A, NOR, false, false }, // DBNZA
129
+ { M680X_GRP_JUMP, muuu, M680X_REG_X, NOR, false, false }, // DBNZX
130
+ { NOG, mrrr, NOR, NOR, true, false }, // DEC
131
+ { NOG, mrrr, M680X_REG_A, NOR, true, false }, // DECA
132
+ { NOG, mrrr, M680X_REG_B, NOR, true, false }, // DECB
133
+ { NOG, mrrr, M680X_REG_D, NOR, true, false }, // DECD
134
+ { NOG, mrrr, M680X_REG_E, NOR, true, false }, // DECE
135
+ { NOG, mrrr, M680X_REG_F, NOR, true, false }, // DECF
136
+ { NOG, mrrr, M680X_REG_W, NOR, true, false }, // DECW
137
+ { NOG, mrrr, M680X_REG_X, NOR, true, false }, // DECX
138
+ { NOG, mrrr, M680X_REG_S, NOR, false, false }, // DES
139
+ { NOG, mrrr, M680X_REG_X, NOR, true, false }, // DEX
140
+ { NOG, mrrr, M680X_REG_Y, NOR, true, false }, // DEY
141
+ { NOG, mmrr, NOR, NOR, true, true }, // DIV
142
+ { NOG, mrrr, M680X_REG_D, NOR, true, false }, // DIVD
143
+ { NOG, mrrr, M680X_REG_Q, NOR, true, false }, // DIVQ
144
+ { NOG, mmrr, NOR, NOR, true, true }, // EDIV
145
+ { NOG, mmrr, NOR, NOR, true, true }, // EDIVS
146
+ { NOG, rmmm, NOR, NOR, true, false }, // EIM
147
+ { NOG, mrrr, NOR, NOR, true, true }, // EMACS
148
+ { NOG, mrrr, M680X_REG_D, NOR, true, false }, // EMAXD
149
+ { NOG, mrrr, NOR, NOR, true, true }, // EMAXM
150
+ { NOG, mrrr, M680X_REG_D, NOR, true, false }, // EMIND
151
+ { NOG, mrrr, NOR, NOR, true, true }, // EMINM
152
+ { NOG, mmrr, NOR, NOR, true, true }, // EMUL
153
+ { NOG, mmrr, NOR, NOR, true, true }, // EMULS
154
+ { NOG, mrrr, M680X_REG_A, NOR, true, false }, // EOR
155
+ { NOG, mrrr, M680X_REG_A, NOR, true, false }, // EORA
156
+ { NOG, mrrr, M680X_REG_B, NOR, true, false }, // EORB
157
+ { NOG, mrrr, M680X_REG_D, NOR, true, false }, // EORD
158
+ { NOG, rmmm, NOR, NOR, true, false }, // EORR
159
+ { NOG, rmmm, NOR, NOR, true, true }, // ETBL
160
+ { NOG, mmmm, NOR, NOR, false, false }, // EXG
161
+ { NOG, mmmm, NOR, NOR, true, true }, // FDIV
162
+ { M680X_GRP_JUMP, muuu, NOR, NOR, false, false }, // IBEQ
163
+ { M680X_GRP_JUMP, muuu, NOR, NOR, false, false }, // IBNE
164
+ { NOG, mmmm, NOR, NOR, true, true }, // IDIV
165
+ { NOG, mmmm, NOR, NOR, true, true }, // IDIVS
166
+ { NOG, uuuu, NOR, NOR, false, false }, // ILLGL
167
+ { NOG, mrrr, NOR, NOR, true, false }, // INC
168
+ { NOG, mrrr, M680X_REG_A, NOR, true, false }, // INCA
169
+ { NOG, mrrr, M680X_REG_B, NOR, true, false }, // INCB
170
+ { NOG, mrrr, M680X_REG_D, NOR, true, false }, // INCD
171
+ { NOG, mrrr, M680X_REG_E, NOR, true, false }, // INCE
172
+ { NOG, mrrr, M680X_REG_F, NOR, true, false }, // INCF
173
+ { NOG, mrrr, M680X_REG_W, NOR, true, false }, // INCW
174
+ { NOG, mrrr, M680X_REG_X, NOR, true, false }, // INCX
175
+ { NOG, mrrr, M680X_REG_S, NOR, false, false }, // INS
176
+ { NOG, mrrr, M680X_REG_X, NOR, true, false }, // INX
177
+ { NOG, mrrr, M680X_REG_Y, NOR, true, false }, // INY
178
+ { M680X_GRP_JUMP, uuuu, NOR, NOR, false, false }, // JMP
179
+ { M680X_GRP_CALL, uuuu, NOR, NOR, false, true }, // JSR
180
+ { M680X_GRP_JUMP, uuuu, NOR, NOR, false, false }, // LBCC
181
+ { M680X_GRP_JUMP, uuuu, NOR, NOR, false, false }, // LBCS
182
+ { M680X_GRP_JUMP, uuuu, NOR, NOR, false, false }, // LBEQ
183
+ { M680X_GRP_JUMP, uuuu, NOR, NOR, false, false }, // LBGE
184
+ { M680X_GRP_JUMP, uuuu, NOR, NOR, false, false }, // LBGT
185
+ { M680X_GRP_JUMP, uuuu, NOR, NOR, false, false }, // LBHI
186
+ { M680X_GRP_JUMP, uuuu, NOR, NOR, false, false }, // LBLE
187
+ { M680X_GRP_JUMP, uuuu, NOR, NOR, false, false }, // LBLS
188
+ { M680X_GRP_JUMP, uuuu, NOR, NOR, false, false }, // LBLT
189
+ { M680X_GRP_JUMP, uuuu, NOR, NOR, false, false }, // LBMI
190
+ { M680X_GRP_JUMP, uuuu, NOR, NOR, false, false }, // LBNE
191
+ { M680X_GRP_JUMP, uuuu, NOR, NOR, false, false }, // LBPL
192
+ { M680X_GRP_JUMP, uuuu, NOR, NOR, false, false }, // LBRA
193
+ { M680X_GRP_JUMP, uuuu, NOR, NOR, false, false }, // LBRN never branches
194
+ { M680X_GRP_CALL, uuuu, NOR, NOR, false, true }, // LBSR
195
+ { M680X_GRP_JUMP, uuuu, NOR, NOR, false, false }, // LBVC
196
+ { M680X_GRP_JUMP, uuuu, NOR, NOR, false, false }, // LBVS
197
+ { NOG, wrrr, M680X_REG_A, NOR, true, false }, // LDA
198
+ { NOG, wrrr, M680X_REG_A, NOR, true, false }, // LDAA
199
+ { NOG, wrrr, M680X_REG_B, NOR, true, false }, // LDAB
200
+ { NOG, wrrr, M680X_REG_B, NOR, true, false }, // LDB
201
+ { NOG, mrrr, NOR, NOR, false, false }, // LDBT
202
+ { NOG, wrrr, M680X_REG_D, NOR, true, false }, // LDD
203
+ { NOG, wrrr, M680X_REG_E, NOR, true, false }, // LDE
204
+ { NOG, wrrr, M680X_REG_F, NOR, true, false }, // LDF
205
+ { NOG, wrrr, M680X_REG_HX, NOR, true, false }, // LDHX
206
+ { NOG, mrrr, M680X_REG_MD, NOR, false, false }, // LDMD
207
+ { NOG, wrrr, M680X_REG_Q, NOR, true, false }, // LDQ
208
+ { NOG, wrrr, M680X_REG_S, NOR, true, false }, // LDS
209
+ { NOG, wrrr, M680X_REG_U, NOR, true, false }, // LDU
210
+ { NOG, wrrr, M680X_REG_W, NOR, true, false }, // LDW
211
+ { NOG, wrrr, M680X_REG_X, NOR, true, false }, // LDX
212
+ { NOG, wrrr, M680X_REG_Y, NOR, true, false }, // LDY
213
+ { NOG, wrrr, M680X_REG_S, NOR, false, false }, // LEAS
214
+ { NOG, wrrr, M680X_REG_U, NOR, false, false }, // LEAU
215
+ { NOG, wrrr, M680X_REG_X, NOR, false, false }, // LEAX
216
+ { NOG, wrrr, M680X_REG_Y, NOR, false, false }, // LEAY
217
+ { NOG, mrrr, NOR, NOR, true, false }, // LSL
218
+ { NOG, mrrr, M680X_REG_A, NOR, true, false }, // LSLA
219
+ { NOG, mrrr, M680X_REG_B, NOR, true, false }, // LSLB
220
+ { NOG, mrrr, M680X_REG_D, NOR, true, false }, // LSLD
221
+ { NOG, mrrr, M680X_REG_X, NOR, true, false }, // LSLX
222
+ { NOG, mrrr, NOR, NOR, true, false }, // LSR
223
+ { NOG, mrrr, M680X_REG_A, NOR, true, false }, // LSRA
224
+ { NOG, mrrr, M680X_REG_B, NOR, true, false }, // LSRB
225
+ { NOG, mrrr, M680X_REG_D, NOR, true, false }, // LSRD
226
+ { NOG, mrrr, M680X_REG_W, NOR, true, false }, // LSRW
227
+ { NOG, mrrr, M680X_REG_X, NOR, true, false }, // LSRX
228
+ { NOG, mrrr, M680X_REG_A, NOR, true, false }, // MAXA
229
+ { NOG, mrrr, NOR, NOR, true, true }, // MAXM
230
+ { NOG, mmrr, NOR, NOR, true, true }, // MEM
231
+ { NOG, mrrr, M680X_REG_A, NOR, true, false }, // MINA
232
+ { NOG, mrrr, NOR, NOR, true, true }, // MINM
233
+ { NOG, rwww, NOR, NOR, true, false }, // MOV
234
+ { NOG, rwww, NOR, NOR, false, false }, // MOVB
235
+ { NOG, rwww, NOR, NOR, false, false }, // MOVW
236
+ { NOG, mmmm, NOR, NOR, true, true }, // MUL
237
+ { NOG, mwrr, M680X_REG_D, NOR, true, true }, // MULD
238
+ { NOG, mrrr, NOR, NOR, true, false }, // NEG
239
+ { NOG, mrrr, M680X_REG_A, NOR, true, false }, // NEGA
240
+ { NOG, mrrr, M680X_REG_B, NOR, true, false }, // NEGB
241
+ { NOG, mrrr, M680X_REG_D, NOR, true, false }, // NEGD
242
+ { NOG, mrrr, M680X_REG_X, NOR, true, false }, // NEGX
243
+ { NOG, uuuu, NOR, NOR, false, false }, // NOP
244
+ { NOG, mrrr, M680X_REG_A, NOR, true, false }, // NSA
245
+ { NOG, rmmm, NOR, NOR, true, false }, // OIM
246
+ { NOG, mrrr, M680X_REG_A, NOR, true, false }, // ORA
247
+ { NOG, mrrr, M680X_REG_A, NOR, true, false }, // ORAA
248
+ { NOG, mrrr, M680X_REG_B, NOR, true, false }, // ORAB
249
+ { NOG, mrrr, M680X_REG_B, NOR, true, false }, // ORB
250
+ { NOG, mrrr, M680X_REG_CC, NOR, true, false }, // ORCC
251
+ { NOG, mrrr, M680X_REG_D, NOR, true, false }, // ORD
252
+ { NOG, rmmm, NOR, NOR, true, false }, // ORR
253
+ { NOG, rmmm, M680X_REG_A, NOR, false, true }, // PSHA
254
+ { NOG, rmmm, M680X_REG_B, NOR, false, true }, // PSHB
255
+ { NOG, rmmm, M680X_REG_CC, NOR, false, true }, // PSHC
256
+ { NOG, rmmm, M680X_REG_D, NOR, false, true }, // PSHD
257
+ { NOG, rmmm, M680X_REG_H, NOR, false, true }, // PSHH
258
+ { NOG, mrrr, M680X_REG_S, NOR, false, false }, // PSHS
259
+ { NOG, mrrr, M680X_REG_S, M680X_REG_W, false, false }, // PSHSW
260
+ { NOG, mrrr, M680X_REG_U, NOR, false, false }, // PSHU
261
+ { NOG, mrrr, M680X_REG_U, M680X_REG_W, false, false }, // PSHUW
262
+ { NOG, rmmm, M680X_REG_X, NOR, false, true }, // PSHX
263
+ { NOG, rmmm, M680X_REG_Y, NOR, false, true }, // PSHY
264
+ { NOG, wmmm, M680X_REG_A, NOR, false, true }, // PULA
265
+ { NOG, wmmm, M680X_REG_B, NOR, false, true }, // PULB
266
+ { NOG, wmmm, M680X_REG_CC, NOR, false, true }, // PULC
267
+ { NOG, wmmm, M680X_REG_D, NOR, false, true }, // PULD
268
+ { NOG, wmmm, M680X_REG_H, NOR, false, true }, // PULH
269
+ { NOG, mwww, M680X_REG_S, NOR, false, false }, // PULS
270
+ { NOG, mwww, M680X_REG_S, M680X_REG_W, false, false }, // PULSW
271
+ { NOG, mwww, M680X_REG_U, NOR, false, false }, // PULU
272
+ { NOG, mwww, M680X_REG_U, M680X_REG_W, false, false }, // PULUW
273
+ { NOG, wmmm, M680X_REG_X, NOR, false, true }, // PULX
274
+ { NOG, wmmm, M680X_REG_Y, NOR, false, true }, // PULY
275
+ { NOG, mmrr, NOR, NOR, true, true }, // REV
276
+ { NOG, mmmm, NOR, NOR, true, true }, // REVW
277
+ { NOG, mrrr, NOR, NOR, true, false }, // ROL
278
+ { NOG, mrrr, M680X_REG_A, NOR, true, false }, // ROLA
279
+ { NOG, mrrr, M680X_REG_B, NOR, true, false }, // ROLB
280
+ { NOG, mrrr, M680X_REG_D, NOR, true, false }, // ROLD
281
+ { NOG, mrrr, M680X_REG_W, NOR, true, false }, // ROLW
282
+ { NOG, mrrr, M680X_REG_X, NOR, true, false }, // ROLX
283
+ { NOG, mrrr, NOR, NOR, true, false }, // ROR
284
+ { NOG, mrrr, M680X_REG_A, NOR, true, false }, // RORA
285
+ { NOG, mrrr, M680X_REG_B, NOR, true, false }, // RORB
286
+ { NOG, mrrr, M680X_REG_D, NOR, true, false }, // RORD
287
+ { NOG, mrrr, M680X_REG_W, NOR, true, false }, // RORW
288
+ { NOG, mrrr, M680X_REG_X, NOR, true, false }, // RORX
289
+ { NOG, wrrr, M680X_REG_S, NOR, false, false }, // RSP
290
+ { M680X_GRP_RET, mwww, NOR, NOR, false, true }, // RTC
291
+ { M680X_GRP_IRET, mwww, NOR, NOR, false, true }, // RTI
292
+ { M680X_GRP_RET, mwww, NOR, NOR, false, true }, // RTS
293
+ { NOG, rmmm, M680X_REG_B, M680X_REG_A, true, false }, // SBA
294
+ { NOG, mrrr, M680X_REG_A, NOR, true, false }, // SBC
295
+ { NOG, mrrr, M680X_REG_A, NOR, true, false }, // SBCA
296
+ { NOG, mrrr, M680X_REG_B, NOR, true, false }, // SBCB
297
+ { NOG, mrrr, M680X_REG_D, NOR, true, false }, // SBCD
298
+ { NOG, rmmm, NOR, NOR, true, false }, // SBCR
299
+ { NOG, uuuu, NOR, NOR, true, false }, // SEC
300
+ { NOG, uuuu, NOR, NOR, true, false }, // SEI
301
+ { NOG, uuuu, NOR, NOR, true, false }, // SEV
302
+ { NOG, wrrr, NOR, NOR, true, true }, // SEX
303
+ { NOG, rwww, M680X_REG_W, NOR, true, true }, // SEXW
304
+ { NOG, uuuu, NOR, NOR, false, false }, // SLP
305
+ { NOG, rwww, M680X_REG_A, NOR, true, false }, // STA
306
+ { NOG, rwww, M680X_REG_A, NOR, true, false }, // STAA
307
+ { NOG, rwww, M680X_REG_B, NOR, true, false }, // STAB
308
+ { NOG, rwww, M680X_REG_B, NOR, true, false }, // STB
309
+ { NOG, rrrm, NOR, NOR, false, false }, // STBT
310
+ { NOG, rwww, M680X_REG_D, NOR, true, false }, // STD
311
+ { NOG, rwww, M680X_REG_E, NOR, true, false }, // STE
312
+ { NOG, rwww, M680X_REG_F, NOR, true, false }, // STF
313
+ { NOG, uuuu, NOR, NOR, false, false }, // STOP
314
+ { NOG, rwww, M680X_REG_HX, NOR, true, false }, // STHX
315
+ { NOG, rwww, M680X_REG_Q, NOR, true, false }, // STQ
316
+ { NOG, rwww, M680X_REG_S, NOR, true, false }, // STS
317
+ { NOG, rwww, M680X_REG_U, NOR, true, false }, // STU
318
+ { NOG, rwww, M680X_REG_W, NOR, true, false }, // STW
319
+ { NOG, rwww, M680X_REG_X, NOR, true, false }, // STX
320
+ { NOG, rwww, M680X_REG_Y, NOR, true, false }, // STY
321
+ { NOG, mrrr, M680X_REG_A, NOR, true, false }, // SUB
322
+ { NOG, mrrr, M680X_REG_A, NOR, true, false }, // SUBA
323
+ { NOG, mrrr, M680X_REG_B, NOR, true, false }, // SUBB
324
+ { NOG, mrrr, M680X_REG_D, NOR, true, false }, // SUBD
325
+ { NOG, mrrr, M680X_REG_E, NOR, true, false }, // SUBE
326
+ { NOG, mrrr, M680X_REG_F, NOR, true, false }, // SUBF
327
+ { NOG, rmmm, NOR, NOR, true, false }, // SUBR
328
+ { NOG, mrrr, M680X_REG_W, NOR, true, false }, // SUBW
329
+ { M680X_GRP_INT, mmrr, NOR, NOR, true, true }, // SWI
330
+ { M680X_GRP_INT, mmrr, NOR, NOR, true, true }, // SWI2
331
+ { M680X_GRP_INT, mmrr, NOR, NOR, true, true }, // SWI3
332
+ { NOG, uuuu, NOR, NOR, false, false }, // SYNC
333
+ { NOG, rwww, M680X_REG_A, M680X_REG_B, true, false }, // TAB
334
+ { NOG, rwww, M680X_REG_A, M680X_REG_CC, false, false }, // TAP
335
+ { NOG, rwww, M680X_REG_A, M680X_REG_X, false, false }, // TAX
336
+ { NOG, rwww, M680X_REG_B, M680X_REG_A, true, false }, // TBA
337
+ { M680X_GRP_JUMP, muuu, NOR, NOR, false, false }, // TBEQ
338
+ { NOG, rmmm, NOR, NOR, true, true }, // TBL
339
+ { M680X_GRP_JUMP, muuu, NOR, NOR, false, false }, // TBNE
340
+ { NOG, uuuu, NOR, NOR, false, false }, // TEST
341
+ { NOG, rwww, NOR, NOR, false, false }, // TFM
342
+ { NOG, rwww, NOR, NOR, false, false }, // TFR
343
+ { NOG, rrrr, NOR, NOR, true, false }, // TIM
344
+ { NOG, rwww, M680X_REG_CC, M680X_REG_A, false, false }, // TPA
345
+ { NOG, rrrr, NOR, NOR, true, false }, // TST
346
+ { NOG, rrrr, M680X_REG_A, NOR, true, false }, // TSTA
347
+ { NOG, rrrr, M680X_REG_B, NOR, true, false }, // TSTB
348
+ { NOG, rrrr, M680X_REG_D, NOR, true, false }, // TSTD
349
+ { NOG, rrrr, M680X_REG_E, NOR, true, false }, // TSTE
350
+ { NOG, rrrr, M680X_REG_F, NOR, true, false }, // TSTF
351
+ { NOG, rrrr, M680X_REG_W, NOR, true, false }, // TSTW
352
+ { NOG, rrrr, M680X_REG_X, NOR, true, false }, // TSTX
353
+ { NOG, rwww, M680X_REG_S, M680X_REG_HX, false, false }, // TSX
354
+ { NOG, rwww, M680X_REG_S, M680X_REG_Y, false, false }, // TSY
355
+ { NOG, rwww, M680X_REG_X, M680X_REG_A, false, false }, // TXA
356
+ { NOG, rwww, M680X_REG_HX, M680X_REG_S, false, false }, // TXS
357
+ { NOG, rwww, M680X_REG_Y, M680X_REG_S, false, false }, // TYS
358
+ { NOG, mrrr, NOR, NOR, true, true }, // WAI
359
+ { NOG, uuuu, NOR, NOR, true, false }, // WAIT
360
+ { NOG, uuuu, NOR, NOR, true, true }, // WAV
361
+ { NOG, uuuu, NOR, NOR, true, true }, // WAVR
362
+ { NOG, mmmm, M680X_REG_D, M680X_REG_X, false, false }, // XGDX
363
+ { NOG, mmmm, M680X_REG_D, M680X_REG_Y, false, false }, // XGDY
364
+ };
365
+ #undef NOR
366
+ #undef NOG
367
+
@@ -0,0 +1,277 @@
1
+
2
+ // M6800/2 instructions
3
+ static const inst_page1 g_m6800_inst_page1_table[256] = {
4
+ // 0x0x, inherent instructions
5
+ { M680X_INS_ILLGL, illgl_hid, inh_hid },
6
+ { M680X_INS_NOP, inh_hid, inh_hid },
7
+ { M680X_INS_ILLGL, illgl_hid, inh_hid },
8
+ { M680X_INS_ILLGL, illgl_hid, inh_hid },
9
+ { M680X_INS_ILLGL, illgl_hid, inh_hid },
10
+ { M680X_INS_ILLGL, illgl_hid, inh_hid },
11
+ { M680X_INS_TAP, inh_hid, inh_hid },
12
+ { M680X_INS_TPA, inh_hid, inh_hid },
13
+ { M680X_INS_INX, inh_hid, inh_hid },
14
+ { M680X_INS_DEX, inh_hid, inh_hid },
15
+ { M680X_INS_CLV, inh_hid, inh_hid },
16
+ { M680X_INS_SEV, inh_hid, inh_hid },
17
+ { M680X_INS_CLC, inh_hid, inh_hid },
18
+ { M680X_INS_SEC, inh_hid, inh_hid },
19
+ { M680X_INS_CLI, inh_hid, inh_hid },
20
+ { M680X_INS_SEI, inh_hid, inh_hid },
21
+ // 0x1x, inherent instructions
22
+ { M680X_INS_SBA, inh_hid, inh_hid },
23
+ { M680X_INS_CBA, inh_hid, inh_hid },
24
+ { M680X_INS_ILLGL, illgl_hid, inh_hid },
25
+ { M680X_INS_ILLGL, illgl_hid, inh_hid },
26
+ { M680X_INS_ILLGL, illgl_hid, inh_hid },
27
+ { M680X_INS_ILLGL, illgl_hid, inh_hid },
28
+ { M680X_INS_TAB, inh_hid, inh_hid },
29
+ { M680X_INS_TBA, inh_hid, inh_hid },
30
+ { M680X_INS_ILLGL, illgl_hid, inh_hid },
31
+ { M680X_INS_DAA, inh_hid, inh_hid },
32
+ { M680X_INS_ILLGL, illgl_hid, inh_hid },
33
+ { M680X_INS_ABA, inh_hid, inh_hid },
34
+ { M680X_INS_ILLGL, illgl_hid, inh_hid },
35
+ { M680X_INS_ILLGL, illgl_hid, inh_hid },
36
+ { M680X_INS_ILLGL, illgl_hid, inh_hid },
37
+ { M680X_INS_ILLGL, illgl_hid, inh_hid },
38
+ // 0x2x, relative branch instructions
39
+ { M680X_INS_BRA, rel8_hid, inh_hid },
40
+ { M680X_INS_ILLGL, illgl_hid, inh_hid },
41
+ { M680X_INS_BHI, rel8_hid, inh_hid },
42
+ { M680X_INS_BLS, rel8_hid, inh_hid },
43
+ { M680X_INS_BCC, rel8_hid, inh_hid },
44
+ { M680X_INS_BCS, rel8_hid, inh_hid },
45
+ { M680X_INS_BNE, rel8_hid, inh_hid },
46
+ { M680X_INS_BEQ, rel8_hid, inh_hid },
47
+ { M680X_INS_BVC, rel8_hid, inh_hid },
48
+ { M680X_INS_BVS, rel8_hid, inh_hid },
49
+ { M680X_INS_BPL, rel8_hid, inh_hid },
50
+ { M680X_INS_BMI, rel8_hid, inh_hid },
51
+ { M680X_INS_BGE, rel8_hid, inh_hid },
52
+ { M680X_INS_BLT, rel8_hid, inh_hid },
53
+ { M680X_INS_BGT, rel8_hid, inh_hid },
54
+ { M680X_INS_BLE, rel8_hid, inh_hid },
55
+ // 0x3x, inherent instructions
56
+ { M680X_INS_TSX, inh_hid, inh_hid },
57
+ { M680X_INS_INS, inh_hid, inh_hid },
58
+ { M680X_INS_PULA, inh_hid, inh_hid },
59
+ { M680X_INS_PULB, inh_hid, inh_hid },
60
+ { M680X_INS_DES, inh_hid, inh_hid },
61
+ { M680X_INS_TXS, inh_hid, inh_hid },
62
+ { M680X_INS_PSHA, inh_hid, inh_hid },
63
+ { M680X_INS_PSHB, inh_hid, inh_hid },
64
+ { M680X_INS_ILLGL, illgl_hid, inh_hid },
65
+ { M680X_INS_RTS, inh_hid, inh_hid },
66
+ { M680X_INS_ILLGL, illgl_hid, inh_hid },
67
+ { M680X_INS_RTI, inh_hid, inh_hid },
68
+ { M680X_INS_ILLGL, illgl_hid, inh_hid },
69
+ { M680X_INS_ILLGL, illgl_hid, inh_hid },
70
+ { M680X_INS_WAI, inh_hid, inh_hid },
71
+ { M680X_INS_SWI, inh_hid, inh_hid },
72
+ // 0x4x, Register A instructions
73
+ { M680X_INS_NEGA, inh_hid, inh_hid },
74
+ { M680X_INS_ILLGL, illgl_hid, inh_hid },
75
+ { M680X_INS_ILLGL, illgl_hid, inh_hid },
76
+ { M680X_INS_COMA, inh_hid, inh_hid },
77
+ { M680X_INS_LSRA, inh_hid, inh_hid },
78
+ { M680X_INS_ILLGL, illgl_hid, inh_hid },
79
+ { M680X_INS_RORA, inh_hid, inh_hid },
80
+ { M680X_INS_ASRA, inh_hid, inh_hid },
81
+ { M680X_INS_ASLA, inh_hid, inh_hid },
82
+ { M680X_INS_ROLA, inh_hid, inh_hid },
83
+ { M680X_INS_DECA, inh_hid, inh_hid },
84
+ { M680X_INS_ILLGL, illgl_hid, inh_hid },
85
+ { M680X_INS_INCA, inh_hid, inh_hid },
86
+ { M680X_INS_TSTA, inh_hid, inh_hid },
87
+ { M680X_INS_ILLGL, illgl_hid, inh_hid },
88
+ { M680X_INS_CLRA, inh_hid, inh_hid },
89
+ // 0x5x, Register B instructions
90
+ { M680X_INS_NEGB, inh_hid, inh_hid },
91
+ { M680X_INS_ILLGL, illgl_hid, inh_hid },
92
+ { M680X_INS_ILLGL, illgl_hid, inh_hid },
93
+ { M680X_INS_COMB, inh_hid, inh_hid },
94
+ { M680X_INS_LSRB, inh_hid, inh_hid },
95
+ { M680X_INS_ILLGL, illgl_hid, inh_hid },
96
+ { M680X_INS_RORB, inh_hid, inh_hid },
97
+ { M680X_INS_ASRB, inh_hid, inh_hid },
98
+ { M680X_INS_ASLB, inh_hid, inh_hid },
99
+ { M680X_INS_ROLB, inh_hid, inh_hid },
100
+ { M680X_INS_DECB, inh_hid, inh_hid },
101
+ { M680X_INS_ILLGL, illgl_hid, inh_hid },
102
+ { M680X_INS_INCB, inh_hid, inh_hid },
103
+ { M680X_INS_TSTB, inh_hid, inh_hid },
104
+ { M680X_INS_ILLGL, illgl_hid, inh_hid },
105
+ { M680X_INS_CLRB, inh_hid, inh_hid },
106
+ // 0x6x, indexed instructions
107
+ { M680X_INS_NEG, idxX_hid, inh_hid },
108
+ { M680X_INS_ILLGL, illgl_hid, inh_hid },
109
+ { M680X_INS_ILLGL, illgl_hid, inh_hid },
110
+ { M680X_INS_COM, idxX_hid, inh_hid },
111
+ { M680X_INS_LSR, idxX_hid, inh_hid },
112
+ { M680X_INS_ILLGL, illgl_hid, inh_hid },
113
+ { M680X_INS_ROR, idxX_hid, inh_hid },
114
+ { M680X_INS_ASR, idxX_hid, inh_hid },
115
+ { M680X_INS_ASL, idxX_hid, inh_hid },
116
+ { M680X_INS_ROL, idxX_hid, inh_hid },
117
+ { M680X_INS_DEC, idxX_hid, inh_hid },
118
+ { M680X_INS_ILLGL, illgl_hid, inh_hid },
119
+ { M680X_INS_INC, idxX_hid, inh_hid },
120
+ { M680X_INS_TST, idxX_hid, inh_hid },
121
+ { M680X_INS_JMP, idxX_hid, inh_hid },
122
+ { M680X_INS_CLR, idxX_hid, inh_hid },
123
+ // 0x7x, extended instructions
124
+ { M680X_INS_NEG, ext_hid, inh_hid },
125
+ { M680X_INS_ILLGL, illgl_hid, inh_hid },
126
+ { M680X_INS_ILLGL, illgl_hid, inh_hid },
127
+ { M680X_INS_COM, ext_hid, inh_hid },
128
+ { M680X_INS_LSR, ext_hid, inh_hid },
129
+ { M680X_INS_ILLGL, illgl_hid, inh_hid },
130
+ { M680X_INS_ROR, ext_hid, inh_hid },
131
+ { M680X_INS_ASR, ext_hid, inh_hid },
132
+ { M680X_INS_ASL, ext_hid, inh_hid },
133
+ { M680X_INS_ROL, ext_hid, inh_hid },
134
+ { M680X_INS_DEC, ext_hid, inh_hid },
135
+ { M680X_INS_ILLGL, illgl_hid, inh_hid },
136
+ { M680X_INS_INC, ext_hid, inh_hid },
137
+ { M680X_INS_TST, ext_hid, inh_hid },
138
+ { M680X_INS_JMP, ext_hid, inh_hid },
139
+ { M680X_INS_CLR, ext_hid, inh_hid },
140
+ // 0x8x, immediate instructions with Register A,X,S
141
+ { M680X_INS_SUBA, imm8_hid, inh_hid },
142
+ { M680X_INS_CMPA, imm8_hid, inh_hid },
143
+ { M680X_INS_SBCA, imm8_hid, inh_hid },
144
+ { M680X_INS_ILLGL, illgl_hid, inh_hid },
145
+ { M680X_INS_ANDA, imm8_hid, inh_hid },
146
+ { M680X_INS_BITA, imm8_hid, inh_hid },
147
+ { M680X_INS_LDAA, imm8_hid, inh_hid },
148
+ { M680X_INS_ILLGL, illgl_hid, inh_hid },
149
+ { M680X_INS_EORA, imm8_hid, inh_hid },
150
+ { M680X_INS_ADCA, imm8_hid, inh_hid },
151
+ { M680X_INS_ORAA, imm8_hid, inh_hid },
152
+ { M680X_INS_ADDA, imm8_hid, inh_hid },
153
+ { M680X_INS_CPX, imm16_hid, inh_hid },
154
+ { M680X_INS_BSR, rel8_hid, inh_hid },
155
+ { M680X_INS_LDS, imm16_hid, inh_hid },
156
+ { M680X_INS_ILLGL, illgl_hid, inh_hid },
157
+ // 0x9x, direct instructions with register A,X,S
158
+ { M680X_INS_SUBA, dir_hid, inh_hid },
159
+ { M680X_INS_CMPA, dir_hid, inh_hid },
160
+ { M680X_INS_SBCA, dir_hid, inh_hid },
161
+ { M680X_INS_ILLGL, illgl_hid, inh_hid },
162
+ { M680X_INS_ANDA, dir_hid, inh_hid },
163
+ { M680X_INS_BITA, dir_hid, inh_hid },
164
+ { M680X_INS_LDAA, dir_hid, inh_hid },
165
+ { M680X_INS_STAA, dir_hid, inh_hid },
166
+ { M680X_INS_EORA, dir_hid, inh_hid },
167
+ { M680X_INS_ADCA, dir_hid, inh_hid },
168
+ { M680X_INS_ORAA, dir_hid, inh_hid },
169
+ { M680X_INS_ADDA, dir_hid, inh_hid },
170
+ { M680X_INS_CPX, dir_hid, inh_hid },
171
+ { M680X_INS_ILLGL, illgl_hid, inh_hid },
172
+ { M680X_INS_LDS, dir_hid, inh_hid },
173
+ { M680X_INS_STS, dir_hid, inh_hid },
174
+ // 0xAx, indexed instructions with Register A,X
175
+ { M680X_INS_SUBA, idxX_hid, inh_hid },
176
+ { M680X_INS_CMPA, idxX_hid, inh_hid },
177
+ { M680X_INS_SBCA, idxX_hid, inh_hid },
178
+ { M680X_INS_ILLGL, illgl_hid, inh_hid },
179
+ { M680X_INS_ANDA, idxX_hid, inh_hid },
180
+ { M680X_INS_BITA, idxX_hid, inh_hid },
181
+ { M680X_INS_LDAA, idxX_hid, inh_hid },
182
+ { M680X_INS_STAA, idxX_hid, inh_hid },
183
+ { M680X_INS_EORA, idxX_hid, inh_hid },
184
+ { M680X_INS_ADCA, idxX_hid, inh_hid },
185
+ { M680X_INS_ORAA, idxX_hid, inh_hid },
186
+ { M680X_INS_ADDA, idxX_hid, inh_hid },
187
+ { M680X_INS_CPX, idxX_hid, inh_hid },
188
+ { M680X_INS_JSR, idxX_hid, inh_hid },
189
+ { M680X_INS_LDS, idxX_hid, inh_hid },
190
+ { M680X_INS_STS, idxX_hid, inh_hid },
191
+ // 0xBx, extended instructions with register A,X,S
192
+ { M680X_INS_SUBA, ext_hid, inh_hid },
193
+ { M680X_INS_CMPA, ext_hid, inh_hid },
194
+ { M680X_INS_SBCA, ext_hid, inh_hid },
195
+ { M680X_INS_ILLGL, illgl_hid, inh_hid },
196
+ { M680X_INS_ANDA, ext_hid, inh_hid },
197
+ { M680X_INS_BITA, ext_hid, inh_hid },
198
+ { M680X_INS_LDAA, ext_hid, inh_hid },
199
+ { M680X_INS_STAA, ext_hid, inh_hid },
200
+ { M680X_INS_EORA, ext_hid, inh_hid },
201
+ { M680X_INS_ADCA, ext_hid, inh_hid },
202
+ { M680X_INS_ORAA, ext_hid, inh_hid },
203
+ { M680X_INS_ADDA, ext_hid, inh_hid },
204
+ { M680X_INS_CPX, ext_hid, inh_hid },
205
+ { M680X_INS_JSR, ext_hid, inh_hid },
206
+ { M680X_INS_LDS, ext_hid, inh_hid },
207
+ { M680X_INS_STS, ext_hid, inh_hid },
208
+ // 0xCx, immediate instructions with register B,X
209
+ { M680X_INS_SUBB, imm8_hid, inh_hid },
210
+ { M680X_INS_CMPB, imm8_hid, inh_hid },
211
+ { M680X_INS_SBCB, imm8_hid, inh_hid },
212
+ { M680X_INS_ILLGL, illgl_hid, inh_hid },
213
+ { M680X_INS_ANDB, imm8_hid, inh_hid },
214
+ { M680X_INS_BITB, imm8_hid, inh_hid },
215
+ { M680X_INS_LDAB, imm8_hid, inh_hid },
216
+ { M680X_INS_ILLGL, illgl_hid, inh_hid },
217
+ { M680X_INS_EORB, imm8_hid, inh_hid },
218
+ { M680X_INS_ADCB, imm8_hid, inh_hid },
219
+ { M680X_INS_ORAB, imm8_hid, inh_hid },
220
+ { M680X_INS_ADDB, imm8_hid, inh_hid },
221
+ { M680X_INS_ILLGL, illgl_hid, inh_hid },
222
+ { M680X_INS_ILLGL, illgl_hid, inh_hid },
223
+ { M680X_INS_LDX, imm16_hid, inh_hid },
224
+ { M680X_INS_ILLGL, illgl_hid, inh_hid },
225
+ // 0xDx direct instructions with register B,X
226
+ { M680X_INS_SUBB, dir_hid, inh_hid },
227
+ { M680X_INS_CMPB, dir_hid, inh_hid },
228
+ { M680X_INS_SBCB, dir_hid, inh_hid },
229
+ { M680X_INS_ILLGL, illgl_hid, inh_hid },
230
+ { M680X_INS_ANDB, dir_hid, inh_hid },
231
+ { M680X_INS_BITB, dir_hid, inh_hid },
232
+ { M680X_INS_LDAB, dir_hid, inh_hid },
233
+ { M680X_INS_STAB, dir_hid, inh_hid },
234
+ { M680X_INS_EORB, dir_hid, inh_hid },
235
+ { M680X_INS_ADCB, dir_hid, inh_hid },
236
+ { M680X_INS_ORAB, dir_hid, inh_hid },
237
+ { M680X_INS_ADDB, dir_hid, inh_hid },
238
+ { M680X_INS_ILLGL, illgl_hid, inh_hid },
239
+ { M680X_INS_ILLGL, illgl_hid, inh_hid },
240
+ { M680X_INS_LDX, dir_hid, inh_hid },
241
+ { M680X_INS_STX, dir_hid, inh_hid },
242
+ // 0xEx, indexed instruction with register B,X
243
+ { M680X_INS_SUBB, idxX_hid, inh_hid },
244
+ { M680X_INS_CMPB, idxX_hid, inh_hid },
245
+ { M680X_INS_SBCB, idxX_hid, inh_hid },
246
+ { M680X_INS_ILLGL, illgl_hid, inh_hid },
247
+ { M680X_INS_ANDB, idxX_hid, inh_hid },
248
+ { M680X_INS_BITB, idxX_hid, inh_hid },
249
+ { M680X_INS_LDAB, idxX_hid, inh_hid },
250
+ { M680X_INS_STAB, idxX_hid, inh_hid },
251
+ { M680X_INS_EORB, idxX_hid, inh_hid },
252
+ { M680X_INS_ADCB, idxX_hid, inh_hid },
253
+ { M680X_INS_ORAB, idxX_hid, inh_hid },
254
+ { M680X_INS_ADDB, idxX_hid, inh_hid },
255
+ { M680X_INS_ILLGL, illgl_hid, inh_hid },
256
+ { M680X_INS_ILLGL, illgl_hid, inh_hid },
257
+ { M680X_INS_LDX, idxX_hid, inh_hid },
258
+ { M680X_INS_STX, idxX_hid, inh_hid },
259
+ // 0xFx, extended instructions with register B,U
260
+ { M680X_INS_SUBB, ext_hid, inh_hid },
261
+ { M680X_INS_CMPB, ext_hid, inh_hid },
262
+ { M680X_INS_SBCB, ext_hid, inh_hid },
263
+ { M680X_INS_ILLGL, illgl_hid, inh_hid },
264
+ { M680X_INS_ANDB, ext_hid, inh_hid },
265
+ { M680X_INS_BITB, ext_hid, inh_hid },
266
+ { M680X_INS_LDAB, ext_hid, inh_hid },
267
+ { M680X_INS_STAB, ext_hid, inh_hid },
268
+ { M680X_INS_EORB, ext_hid, inh_hid },
269
+ { M680X_INS_ADCB, ext_hid, inh_hid },
270
+ { M680X_INS_ORAB, ext_hid, inh_hid },
271
+ { M680X_INS_ADDB, ext_hid, inh_hid },
272
+ { M680X_INS_ILLGL, illgl_hid, inh_hid },
273
+ { M680X_INS_ILLGL, illgl_hid, inh_hid },
274
+ { M680X_INS_LDX, ext_hid, inh_hid },
275
+ { M680X_INS_STX, ext_hid, inh_hid },
276
+ };
277
+