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,188 @@
1
+ #ifndef CAPSTONE_EVM_H
2
+ #define CAPSTONE_EVM_H
3
+
4
+ /* Capstone Disassembly Engine */
5
+ /* By Nguyen Anh Quynh <aquynh@gmail.com>, 2013-2018 */
6
+
7
+ #ifdef __cplusplus
8
+ extern "C" {
9
+ #endif
10
+
11
+ #include "platform.h"
12
+
13
+ #ifdef _MSC_VER
14
+ #pragma warning(disable:4201)
15
+ #endif
16
+
17
+ /// Instruction structure
18
+ typedef struct cs_evm {
19
+ unsigned char pop; ///< number of items popped from the stack
20
+ unsigned char push; ///< number of items pushed into the stack
21
+ unsigned int fee; ///< gas fee for the instruction
22
+ } cs_evm;
23
+
24
+ /// EVM instruction
25
+ typedef enum evm_insn {
26
+ EVM_INS_STOP = 0,
27
+ EVM_INS_ADD = 1,
28
+ EVM_INS_MUL = 2,
29
+ EVM_INS_SUB = 3,
30
+ EVM_INS_DIV = 4,
31
+ EVM_INS_SDIV = 5,
32
+ EVM_INS_MOD = 6,
33
+ EVM_INS_SMOD = 7,
34
+ EVM_INS_ADDMOD = 8,
35
+ EVM_INS_MULMOD = 9,
36
+ EVM_INS_EXP = 10,
37
+ EVM_INS_SIGNEXTEND = 11,
38
+ EVM_INS_LT = 16,
39
+ EVM_INS_GT = 17,
40
+ EVM_INS_SLT = 18,
41
+ EVM_INS_SGT = 19,
42
+ EVM_INS_EQ = 20,
43
+ EVM_INS_ISZERO = 21,
44
+ EVM_INS_AND = 22,
45
+ EVM_INS_OR = 23,
46
+ EVM_INS_XOR = 24,
47
+ EVM_INS_NOT = 25,
48
+ EVM_INS_BYTE = 26,
49
+ EVM_INS_SHA3 = 32,
50
+ EVM_INS_ADDRESS = 48,
51
+ EVM_INS_BALANCE = 49,
52
+ EVM_INS_ORIGIN = 50,
53
+ EVM_INS_CALLER = 51,
54
+ EVM_INS_CALLVALUE = 52,
55
+ EVM_INS_CALLDATALOAD = 53,
56
+ EVM_INS_CALLDATASIZE = 54,
57
+ EVM_INS_CALLDATACOPY = 55,
58
+ EVM_INS_CODESIZE = 56,
59
+ EVM_INS_CODECOPY = 57,
60
+ EVM_INS_GASPRICE = 58,
61
+ EVM_INS_EXTCODESIZE = 59,
62
+ EVM_INS_EXTCODECOPY = 60,
63
+ EVM_INS_RETURNDATASIZE = 61,
64
+ EVM_INS_RETURNDATACOPY = 62,
65
+ EVM_INS_BLOCKHASH = 64,
66
+ EVM_INS_COINBASE = 65,
67
+ EVM_INS_TIMESTAMP = 66,
68
+ EVM_INS_NUMBER = 67,
69
+ EVM_INS_DIFFICULTY = 68,
70
+ EVM_INS_GASLIMIT = 69,
71
+ EVM_INS_POP = 80,
72
+ EVM_INS_MLOAD = 81,
73
+ EVM_INS_MSTORE = 82,
74
+ EVM_INS_MSTORE8 = 83,
75
+ EVM_INS_SLOAD = 84,
76
+ EVM_INS_SSTORE = 85,
77
+ EVM_INS_JUMP = 86,
78
+ EVM_INS_JUMPI = 87,
79
+ EVM_INS_PC = 88,
80
+ EVM_INS_MSIZE = 89,
81
+ EVM_INS_GAS = 90,
82
+ EVM_INS_JUMPDEST = 91,
83
+ EVM_INS_PUSH1 = 96,
84
+ EVM_INS_PUSH2 = 97,
85
+ EVM_INS_PUSH3 = 98,
86
+ EVM_INS_PUSH4 = 99,
87
+ EVM_INS_PUSH5 = 100,
88
+ EVM_INS_PUSH6 = 101,
89
+ EVM_INS_PUSH7 = 102,
90
+ EVM_INS_PUSH8 = 103,
91
+ EVM_INS_PUSH9 = 104,
92
+ EVM_INS_PUSH10 = 105,
93
+ EVM_INS_PUSH11 = 106,
94
+ EVM_INS_PUSH12 = 107,
95
+ EVM_INS_PUSH13 = 108,
96
+ EVM_INS_PUSH14 = 109,
97
+ EVM_INS_PUSH15 = 110,
98
+ EVM_INS_PUSH16 = 111,
99
+ EVM_INS_PUSH17 = 112,
100
+ EVM_INS_PUSH18 = 113,
101
+ EVM_INS_PUSH19 = 114,
102
+ EVM_INS_PUSH20 = 115,
103
+ EVM_INS_PUSH21 = 116,
104
+ EVM_INS_PUSH22 = 117,
105
+ EVM_INS_PUSH23 = 118,
106
+ EVM_INS_PUSH24 = 119,
107
+ EVM_INS_PUSH25 = 120,
108
+ EVM_INS_PUSH26 = 121,
109
+ EVM_INS_PUSH27 = 122,
110
+ EVM_INS_PUSH28 = 123,
111
+ EVM_INS_PUSH29 = 124,
112
+ EVM_INS_PUSH30 = 125,
113
+ EVM_INS_PUSH31 = 126,
114
+ EVM_INS_PUSH32 = 127,
115
+ EVM_INS_DUP1 = 128,
116
+ EVM_INS_DUP2 = 129,
117
+ EVM_INS_DUP3 = 130,
118
+ EVM_INS_DUP4 = 131,
119
+ EVM_INS_DUP5 = 132,
120
+ EVM_INS_DUP6 = 133,
121
+ EVM_INS_DUP7 = 134,
122
+ EVM_INS_DUP8 = 135,
123
+ EVM_INS_DUP9 = 136,
124
+ EVM_INS_DUP10 = 137,
125
+ EVM_INS_DUP11 = 138,
126
+ EVM_INS_DUP12 = 139,
127
+ EVM_INS_DUP13 = 140,
128
+ EVM_INS_DUP14 = 141,
129
+ EVM_INS_DUP15 = 142,
130
+ EVM_INS_DUP16 = 143,
131
+ EVM_INS_SWAP1 = 144,
132
+ EVM_INS_SWAP2 = 145,
133
+ EVM_INS_SWAP3 = 146,
134
+ EVM_INS_SWAP4 = 147,
135
+ EVM_INS_SWAP5 = 148,
136
+ EVM_INS_SWAP6 = 149,
137
+ EVM_INS_SWAP7 = 150,
138
+ EVM_INS_SWAP8 = 151,
139
+ EVM_INS_SWAP9 = 152,
140
+ EVM_INS_SWAP10 = 153,
141
+ EVM_INS_SWAP11 = 154,
142
+ EVM_INS_SWAP12 = 155,
143
+ EVM_INS_SWAP13 = 156,
144
+ EVM_INS_SWAP14 = 157,
145
+ EVM_INS_SWAP15 = 158,
146
+ EVM_INS_SWAP16 = 159,
147
+ EVM_INS_LOG0 = 160,
148
+ EVM_INS_LOG1 = 161,
149
+ EVM_INS_LOG2 = 162,
150
+ EVM_INS_LOG3 = 163,
151
+ EVM_INS_LOG4 = 164,
152
+ EVM_INS_CREATE = 240,
153
+ EVM_INS_CALL = 241,
154
+ EVM_INS_CALLCODE = 242,
155
+ EVM_INS_RETURN = 243,
156
+ EVM_INS_DELEGATECALL = 244,
157
+ EVM_INS_CALLBLACKBOX = 245,
158
+ EVM_INS_STATICCALL = 250,
159
+ EVM_INS_REVERT = 253,
160
+ EVM_INS_SUICIDE = 255,
161
+
162
+ EVM_INS_INVALID = 512,
163
+ EVM_INS_ENDING, // <-- mark the end of the list of instructions
164
+ } evm_insn;
165
+
166
+ /// Group of EVM instructions
167
+ typedef enum evm_insn_group {
168
+ EVM_GRP_INVALID = 0, ///< = CS_GRP_INVALID
169
+
170
+ EVM_GRP_JUMP, ///< all jump instructions
171
+
172
+ EVM_GRP_MATH = 8, ///< math instructions
173
+ EVM_GRP_STACK_WRITE, ///< instructions write to stack
174
+ EVM_GRP_STACK_READ, ///< instructions read from stack
175
+ EVM_GRP_MEM_WRITE, ///< instructions write to memory
176
+ EVM_GRP_MEM_READ, ///< instructions read from memory
177
+ EVM_GRP_STORE_WRITE, ///< instructions write to storage
178
+ EVM_GRP_STORE_READ, ///< instructions read from storage
179
+ EVM_GRP_HALT, ///< instructions halt execution
180
+
181
+ EVM_GRP_ENDING, ///< <-- mark the end of the list of groups
182
+ } evm_insn_group;
183
+
184
+ #ifdef __cplusplus
185
+ }
186
+ #endif
187
+
188
+ #endif
@@ -0,0 +1,537 @@
1
+ #ifndef CAPSTONE_M680X_H
2
+ #define CAPSTONE_M680X_H
3
+
4
+ /* Capstone Disassembly Engine */
5
+ /* M680X Backend by Wolfgang Schwotzer <wolfgang.schwotzer@gmx.net> 2017 */
6
+
7
+ #ifdef __cplusplus
8
+ extern "C" {
9
+ #endif
10
+
11
+ #include "platform.h"
12
+
13
+ #ifdef _MSC_VER
14
+ #pragma warning(disable:4201)
15
+ #endif
16
+
17
+ #define M680X_OPERAND_COUNT 9
18
+
19
+ /// M680X registers and special registers
20
+ typedef enum m680x_reg {
21
+ M680X_REG_INVALID = 0,
22
+
23
+ M680X_REG_A, ///< M6800/1/2/3/9, HD6301/9
24
+ M680X_REG_B, ///< M6800/1/2/3/9, HD6301/9
25
+ M680X_REG_E, ///< HD6309
26
+ M680X_REG_F, ///< HD6309
27
+ M680X_REG_0, ///< HD6309
28
+
29
+ M680X_REG_D, ///< M6801/3/9, HD6301/9
30
+ M680X_REG_W, ///< HD6309
31
+
32
+ M680X_REG_CC, ///< M6800/1/2/3/9, M6301/9
33
+ M680X_REG_DP, ///< M6809/M6309
34
+ M680X_REG_MD, ///< M6309
35
+
36
+ M680X_REG_HX, ///< M6808
37
+ M680X_REG_H, ///< M6808
38
+ M680X_REG_X, ///< M6800/1/2/3/9, M6301/9
39
+ M680X_REG_Y, ///< M6809/M6309
40
+ M680X_REG_S, ///< M6809/M6309
41
+ M680X_REG_U, ///< M6809/M6309
42
+ M680X_REG_V, ///< M6309
43
+
44
+ M680X_REG_Q, ///< M6309
45
+
46
+ M680X_REG_PC, ///< M6800/1/2/3/9, M6301/9
47
+
48
+ M680X_REG_TMP2, ///< CPU12
49
+ M680X_REG_TMP3, ///< CPU12
50
+
51
+ M680X_REG_ENDING, ///< <-- mark the end of the list of registers
52
+ } m680x_reg;
53
+
54
+ /// Operand type for instruction's operands
55
+ typedef enum m680x_op_type {
56
+ M680X_OP_INVALID = 0, ///< = CS_OP_INVALID (Uninitialized).
57
+ M680X_OP_REGISTER, ///< = Register operand.
58
+ M680X_OP_IMMEDIATE, ///< = Immediate operand.
59
+ M680X_OP_INDEXED, ///< = Indexed addressing operand.
60
+ M680X_OP_EXTENDED, ///< = Extended addressing operand.
61
+ M680X_OP_DIRECT, ///< = Direct addressing operand.
62
+ M680X_OP_RELATIVE, ///< = Relative addressing operand.
63
+ M680X_OP_CONSTANT, ///< = constant operand (Displayed as number only).
64
+ ///< Used e.g. for a bit index or page number.
65
+ } m680x_op_type;
66
+
67
+ // Supported bit values for mem.idx.offset_bits
68
+ #define M680X_OFFSET_NONE 0
69
+ #define M680X_OFFSET_BITS_5 5
70
+ #define M680X_OFFSET_BITS_8 8
71
+ #define M680X_OFFSET_BITS_9 9
72
+ #define M680X_OFFSET_BITS_16 16
73
+
74
+ // Supported bit flags for mem.idx.flags
75
+ // These flags can be combined
76
+ #define M680X_IDX_INDIRECT 1
77
+ #define M680X_IDX_NO_COMMA 2
78
+ #define M680X_IDX_POST_INC_DEC 4
79
+
80
+ /// Instruction's operand referring to indexed addressing
81
+ typedef struct m680x_op_idx {
82
+ m680x_reg base_reg; ///< base register (or M680X_REG_INVALID if
83
+ ///< irrelevant)
84
+ m680x_reg offset_reg; ///< offset register (or M680X_REG_INVALID if
85
+ ///< irrelevant)
86
+ int16_t offset; ///< 5-,8- or 16-bit offset. See also offset_bits.
87
+ uint16_t offset_addr; ///< = offset addr. if base_reg == M680X_REG_PC.
88
+ ///< calculated as offset + PC
89
+ uint8_t offset_bits; ///< offset width in bits for indexed addressing
90
+ int8_t inc_dec; ///< inc. or dec. value:
91
+ ///< 0: no inc-/decrement
92
+ ///< 1 .. 8: increment by 1 .. 8
93
+ ///< -1 .. -8: decrement by 1 .. 8
94
+ ///< if flag M680X_IDX_POST_INC_DEC set it is post
95
+ ///< inc-/decrement otherwise pre inc-/decrement
96
+ uint8_t flags; ///< 8-bit flags (see above)
97
+ } m680x_op_idx;
98
+
99
+ /// Instruction's memory operand referring to relative addressing (Bcc/LBcc)
100
+ typedef struct m680x_op_rel {
101
+ uint16_t address; ///< The absolute address.
102
+ ///< calculated as PC + offset. PC is the first
103
+ ///< address after the instruction.
104
+ int16_t offset; ///< the offset/displacement value
105
+ } m680x_op_rel;
106
+
107
+ /// Instruction's operand referring to extended addressing
108
+ typedef struct m680x_op_ext {
109
+ uint16_t address; ///< The absolute address
110
+ bool indirect; ///< true if extended indirect addressing
111
+ } m680x_op_ext;
112
+
113
+ /// Instruction operand
114
+ typedef struct cs_m680x_op {
115
+ m680x_op_type type;
116
+ union {
117
+ int32_t imm; ///< immediate value for IMM operand
118
+ m680x_reg reg; ///< register value for REG operand
119
+ m680x_op_idx idx; ///< Indexed addressing operand
120
+ m680x_op_rel rel; ///< Relative address. operand (Bcc/LBcc)
121
+ m680x_op_ext ext; ///< Extended address
122
+ uint8_t direct_addr; ///<</ Direct address (lower 8-bit)
123
+ uint8_t const_val; ///< constant value (bit index, page nr.)
124
+ };
125
+ uint8_t size; ///< size of this operand (in bytes)
126
+ /// How is this operand accessed? (READ, WRITE or READ|WRITE)
127
+ /// This field is combined of cs_ac_type.
128
+ /// NOTE: this field is irrelevant if engine is compiled in DIET
129
+ uint8_t access;
130
+ } cs_m680x_op;
131
+
132
+ /// Group of M680X instructions
133
+ typedef enum m680x_group_type {
134
+ M680X_GRP_INVALID = 0, /// = CS_GRP_INVALID
135
+ // Generic groups
136
+ // all jump instructions (conditional+direct+indirect jumps)
137
+ M680X_GRP_JUMP, ///< = CS_GRP_JUMP
138
+ // all call instructions
139
+ M680X_GRP_CALL, ///< = CS_GRP_CALL
140
+ // all return instructions
141
+ M680X_GRP_RET, ///< = CS_GRP_RET
142
+ // all interrupt instructions (int+syscall)
143
+ M680X_GRP_INT, ///< = CS_GRP_INT
144
+ // all interrupt return instructions
145
+ M680X_GRP_IRET, ///< = CS_GRP_IRET
146
+ // all privileged instructions
147
+ M680X_GRP_PRIV, ///< = CS_GRP_PRIVILEDGE; not used
148
+ // all relative branching instructions
149
+ M680X_GRP_BRAREL, ///< = CS_GRP_BRANCH_RELATIVE
150
+
151
+ // Architecture-specific groups
152
+ M680X_GRP_ENDING, // <-- mark the end of the list of groups
153
+ } m680x_group_type;
154
+
155
+ // M680X instruction flags:
156
+
157
+ /// The first (register) operand is part of the
158
+ /// instruction mnemonic
159
+ #define M680X_FIRST_OP_IN_MNEM 1
160
+ /// The second (register) operand is part of the
161
+ /// instruction mnemonic
162
+ #define M680X_SECOND_OP_IN_MNEM 2
163
+
164
+ /// The M680X instruction and it's operands
165
+ typedef struct cs_m680x {
166
+ uint8_t flags; ///< See: M680X instruction flags
167
+ uint8_t op_count; ///< number of operands for the instruction or 0
168
+ cs_m680x_op operands[M680X_OPERAND_COUNT]; ///< operands for this insn.
169
+ } cs_m680x;
170
+
171
+ /// M680X instruction IDs
172
+ typedef enum m680x_insn {
173
+ M680X_INS_INVLD = 0,
174
+ M680X_INS_ABA, ///< M6800/1/2/3
175
+ M680X_INS_ABX,
176
+ M680X_INS_ABY,
177
+ M680X_INS_ADC,
178
+ M680X_INS_ADCA,
179
+ M680X_INS_ADCB,
180
+ M680X_INS_ADCD,
181
+ M680X_INS_ADCR,
182
+ M680X_INS_ADD,
183
+ M680X_INS_ADDA,
184
+ M680X_INS_ADDB,
185
+ M680X_INS_ADDD,
186
+ M680X_INS_ADDE,
187
+ M680X_INS_ADDF,
188
+ M680X_INS_ADDR,
189
+ M680X_INS_ADDW,
190
+ M680X_INS_AIM,
191
+ M680X_INS_AIS,
192
+ M680X_INS_AIX,
193
+ M680X_INS_AND,
194
+ M680X_INS_ANDA,
195
+ M680X_INS_ANDB,
196
+ M680X_INS_ANDCC,
197
+ M680X_INS_ANDD,
198
+ M680X_INS_ANDR,
199
+ M680X_INS_ASL,
200
+ M680X_INS_ASLA,
201
+ M680X_INS_ASLB,
202
+ M680X_INS_ASLD, ///< or LSLD
203
+ M680X_INS_ASR,
204
+ M680X_INS_ASRA,
205
+ M680X_INS_ASRB,
206
+ M680X_INS_ASRD,
207
+ M680X_INS_ASRX,
208
+ M680X_INS_BAND,
209
+ M680X_INS_BCC, ///< or BHS
210
+ M680X_INS_BCLR,
211
+ M680X_INS_BCS, ///< or BLO
212
+ M680X_INS_BEOR,
213
+ M680X_INS_BEQ,
214
+ M680X_INS_BGE,
215
+ M680X_INS_BGND,
216
+ M680X_INS_BGT,
217
+ M680X_INS_BHCC,
218
+ M680X_INS_BHCS,
219
+ M680X_INS_BHI,
220
+ M680X_INS_BIAND,
221
+ M680X_INS_BIEOR,
222
+ M680X_INS_BIH,
223
+ M680X_INS_BIL,
224
+ M680X_INS_BIOR,
225
+ M680X_INS_BIT,
226
+ M680X_INS_BITA,
227
+ M680X_INS_BITB,
228
+ M680X_INS_BITD,
229
+ M680X_INS_BITMD,
230
+ M680X_INS_BLE,
231
+ M680X_INS_BLS,
232
+ M680X_INS_BLT,
233
+ M680X_INS_BMC,
234
+ M680X_INS_BMI,
235
+ M680X_INS_BMS,
236
+ M680X_INS_BNE,
237
+ M680X_INS_BOR,
238
+ M680X_INS_BPL,
239
+ M680X_INS_BRCLR,
240
+ M680X_INS_BRSET,
241
+ M680X_INS_BRA,
242
+ M680X_INS_BRN,
243
+ M680X_INS_BSET,
244
+ M680X_INS_BSR,
245
+ M680X_INS_BVC,
246
+ M680X_INS_BVS,
247
+ M680X_INS_CALL,
248
+ M680X_INS_CBA, ///< M6800/1/2/3
249
+ M680X_INS_CBEQ,
250
+ M680X_INS_CBEQA,
251
+ M680X_INS_CBEQX,
252
+ M680X_INS_CLC, ///< M6800/1/2/3
253
+ M680X_INS_CLI, ///< M6800/1/2/3
254
+ M680X_INS_CLR,
255
+ M680X_INS_CLRA,
256
+ M680X_INS_CLRB,
257
+ M680X_INS_CLRD,
258
+ M680X_INS_CLRE,
259
+ M680X_INS_CLRF,
260
+ M680X_INS_CLRH,
261
+ M680X_INS_CLRW,
262
+ M680X_INS_CLRX,
263
+ M680X_INS_CLV, ///< M6800/1/2/3
264
+ M680X_INS_CMP,
265
+ M680X_INS_CMPA,
266
+ M680X_INS_CMPB,
267
+ M680X_INS_CMPD,
268
+ M680X_INS_CMPE,
269
+ M680X_INS_CMPF,
270
+ M680X_INS_CMPR,
271
+ M680X_INS_CMPS,
272
+ M680X_INS_CMPU,
273
+ M680X_INS_CMPW,
274
+ M680X_INS_CMPX,
275
+ M680X_INS_CMPY,
276
+ M680X_INS_COM,
277
+ M680X_INS_COMA,
278
+ M680X_INS_COMB,
279
+ M680X_INS_COMD,
280
+ M680X_INS_COME,
281
+ M680X_INS_COMF,
282
+ M680X_INS_COMW,
283
+ M680X_INS_COMX,
284
+ M680X_INS_CPD,
285
+ M680X_INS_CPHX,
286
+ M680X_INS_CPS,
287
+ M680X_INS_CPX, ///< M6800/1/2/3
288
+ M680X_INS_CPY,
289
+ M680X_INS_CWAI,
290
+ M680X_INS_DAA,
291
+ M680X_INS_DBEQ,
292
+ M680X_INS_DBNE,
293
+ M680X_INS_DBNZ,
294
+ M680X_INS_DBNZA,
295
+ M680X_INS_DBNZX,
296
+ M680X_INS_DEC,
297
+ M680X_INS_DECA,
298
+ M680X_INS_DECB,
299
+ M680X_INS_DECD,
300
+ M680X_INS_DECE,
301
+ M680X_INS_DECF,
302
+ M680X_INS_DECW,
303
+ M680X_INS_DECX,
304
+ M680X_INS_DES, ///< M6800/1/2/3
305
+ M680X_INS_DEX, ///< M6800/1/2/3
306
+ M680X_INS_DEY,
307
+ M680X_INS_DIV,
308
+ M680X_INS_DIVD,
309
+ M680X_INS_DIVQ,
310
+ M680X_INS_EDIV,
311
+ M680X_INS_EDIVS,
312
+ M680X_INS_EIM,
313
+ M680X_INS_EMACS,
314
+ M680X_INS_EMAXD,
315
+ M680X_INS_EMAXM,
316
+ M680X_INS_EMIND,
317
+ M680X_INS_EMINM,
318
+ M680X_INS_EMUL,
319
+ M680X_INS_EMULS,
320
+ M680X_INS_EOR,
321
+ M680X_INS_EORA,
322
+ M680X_INS_EORB,
323
+ M680X_INS_EORD,
324
+ M680X_INS_EORR,
325
+ M680X_INS_ETBL,
326
+ M680X_INS_EXG,
327
+ M680X_INS_FDIV,
328
+ M680X_INS_IBEQ,
329
+ M680X_INS_IBNE,
330
+ M680X_INS_IDIV,
331
+ M680X_INS_IDIVS,
332
+ M680X_INS_ILLGL,
333
+ M680X_INS_INC,
334
+ M680X_INS_INCA,
335
+ M680X_INS_INCB,
336
+ M680X_INS_INCD,
337
+ M680X_INS_INCE,
338
+ M680X_INS_INCF,
339
+ M680X_INS_INCW,
340
+ M680X_INS_INCX,
341
+ M680X_INS_INS, ///< M6800/1/2/3
342
+ M680X_INS_INX, ///< M6800/1/2/3
343
+ M680X_INS_INY,
344
+ M680X_INS_JMP,
345
+ M680X_INS_JSR,
346
+ M680X_INS_LBCC, ///< or LBHS
347
+ M680X_INS_LBCS, ///< or LBLO
348
+ M680X_INS_LBEQ,
349
+ M680X_INS_LBGE,
350
+ M680X_INS_LBGT,
351
+ M680X_INS_LBHI,
352
+ M680X_INS_LBLE,
353
+ M680X_INS_LBLS,
354
+ M680X_INS_LBLT,
355
+ M680X_INS_LBMI,
356
+ M680X_INS_LBNE,
357
+ M680X_INS_LBPL,
358
+ M680X_INS_LBRA,
359
+ M680X_INS_LBRN,
360
+ M680X_INS_LBSR,
361
+ M680X_INS_LBVC,
362
+ M680X_INS_LBVS,
363
+ M680X_INS_LDA,
364
+ M680X_INS_LDAA, ///< M6800/1/2/3
365
+ M680X_INS_LDAB, ///< M6800/1/2/3
366
+ M680X_INS_LDB,
367
+ M680X_INS_LDBT,
368
+ M680X_INS_LDD,
369
+ M680X_INS_LDE,
370
+ M680X_INS_LDF,
371
+ M680X_INS_LDHX,
372
+ M680X_INS_LDMD,
373
+ M680X_INS_LDQ,
374
+ M680X_INS_LDS,
375
+ M680X_INS_LDU,
376
+ M680X_INS_LDW,
377
+ M680X_INS_LDX,
378
+ M680X_INS_LDY,
379
+ M680X_INS_LEAS,
380
+ M680X_INS_LEAU,
381
+ M680X_INS_LEAX,
382
+ M680X_INS_LEAY,
383
+ M680X_INS_LSL,
384
+ M680X_INS_LSLA,
385
+ M680X_INS_LSLB,
386
+ M680X_INS_LSLD,
387
+ M680X_INS_LSLX,
388
+ M680X_INS_LSR,
389
+ M680X_INS_LSRA,
390
+ M680X_INS_LSRB,
391
+ M680X_INS_LSRD, ///< or ASRD
392
+ M680X_INS_LSRW,
393
+ M680X_INS_LSRX,
394
+ M680X_INS_MAXA,
395
+ M680X_INS_MAXM,
396
+ M680X_INS_MEM,
397
+ M680X_INS_MINA,
398
+ M680X_INS_MINM,
399
+ M680X_INS_MOV,
400
+ M680X_INS_MOVB,
401
+ M680X_INS_MOVW,
402
+ M680X_INS_MUL,
403
+ M680X_INS_MULD,
404
+ M680X_INS_NEG,
405
+ M680X_INS_NEGA,
406
+ M680X_INS_NEGB,
407
+ M680X_INS_NEGD,
408
+ M680X_INS_NEGX,
409
+ M680X_INS_NOP,
410
+ M680X_INS_NSA,
411
+ M680X_INS_OIM,
412
+ M680X_INS_ORA,
413
+ M680X_INS_ORAA, ///< M6800/1/2/3
414
+ M680X_INS_ORAB, ///< M6800/1/2/3
415
+ M680X_INS_ORB,
416
+ M680X_INS_ORCC,
417
+ M680X_INS_ORD,
418
+ M680X_INS_ORR,
419
+ M680X_INS_PSHA, ///< M6800/1/2/3
420
+ M680X_INS_PSHB, ///< M6800/1/2/3
421
+ M680X_INS_PSHC,
422
+ M680X_INS_PSHD,
423
+ M680X_INS_PSHH,
424
+ M680X_INS_PSHS,
425
+ M680X_INS_PSHSW,
426
+ M680X_INS_PSHU,
427
+ M680X_INS_PSHUW,
428
+ M680X_INS_PSHX, ///< M6800/1/2/3
429
+ M680X_INS_PSHY,
430
+ M680X_INS_PULA, ///< M6800/1/2/3
431
+ M680X_INS_PULB, ///< M6800/1/2/3
432
+ M680X_INS_PULC,
433
+ M680X_INS_PULD,
434
+ M680X_INS_PULH,
435
+ M680X_INS_PULS,
436
+ M680X_INS_PULSW,
437
+ M680X_INS_PULU,
438
+ M680X_INS_PULUW,
439
+ M680X_INS_PULX, ///< M6800/1/2/3
440
+ M680X_INS_PULY,
441
+ M680X_INS_REV,
442
+ M680X_INS_REVW,
443
+ M680X_INS_ROL,
444
+ M680X_INS_ROLA,
445
+ M680X_INS_ROLB,
446
+ M680X_INS_ROLD,
447
+ M680X_INS_ROLW,
448
+ M680X_INS_ROLX,
449
+ M680X_INS_ROR,
450
+ M680X_INS_RORA,
451
+ M680X_INS_RORB,
452
+ M680X_INS_RORD,
453
+ M680X_INS_RORW,
454
+ M680X_INS_RORX,
455
+ M680X_INS_RSP,
456
+ M680X_INS_RTC,
457
+ M680X_INS_RTI,
458
+ M680X_INS_RTS,
459
+ M680X_INS_SBA, ///< M6800/1/2/3
460
+ M680X_INS_SBC,
461
+ M680X_INS_SBCA,
462
+ M680X_INS_SBCB,
463
+ M680X_INS_SBCD,
464
+ M680X_INS_SBCR,
465
+ M680X_INS_SEC,
466
+ M680X_INS_SEI,
467
+ M680X_INS_SEV,
468
+ M680X_INS_SEX,
469
+ M680X_INS_SEXW,
470
+ M680X_INS_SLP,
471
+ M680X_INS_STA,
472
+ M680X_INS_STAA, ///< M6800/1/2/3
473
+ M680X_INS_STAB, ///< M6800/1/2/3
474
+ M680X_INS_STB,
475
+ M680X_INS_STBT,
476
+ M680X_INS_STD,
477
+ M680X_INS_STE,
478
+ M680X_INS_STF,
479
+ M680X_INS_STOP,
480
+ M680X_INS_STHX,
481
+ M680X_INS_STQ,
482
+ M680X_INS_STS,
483
+ M680X_INS_STU,
484
+ M680X_INS_STW,
485
+ M680X_INS_STX,
486
+ M680X_INS_STY,
487
+ M680X_INS_SUB,
488
+ M680X_INS_SUBA,
489
+ M680X_INS_SUBB,
490
+ M680X_INS_SUBD,
491
+ M680X_INS_SUBE,
492
+ M680X_INS_SUBF,
493
+ M680X_INS_SUBR,
494
+ M680X_INS_SUBW,
495
+ M680X_INS_SWI,
496
+ M680X_INS_SWI2,
497
+ M680X_INS_SWI3,
498
+ M680X_INS_SYNC,
499
+ M680X_INS_TAB, ///< M6800/1/2/3
500
+ M680X_INS_TAP, ///< M6800/1/2/3
501
+ M680X_INS_TAX,
502
+ M680X_INS_TBA, ///< M6800/1/2/3
503
+ M680X_INS_TBEQ,
504
+ M680X_INS_TBL,
505
+ M680X_INS_TBNE,
506
+ M680X_INS_TEST,
507
+ M680X_INS_TFM,
508
+ M680X_INS_TFR,
509
+ M680X_INS_TIM,
510
+ M680X_INS_TPA, ///< M6800/1/2/3
511
+ M680X_INS_TST,
512
+ M680X_INS_TSTA,
513
+ M680X_INS_TSTB,
514
+ M680X_INS_TSTD,
515
+ M680X_INS_TSTE,
516
+ M680X_INS_TSTF,
517
+ M680X_INS_TSTW,
518
+ M680X_INS_TSTX,
519
+ M680X_INS_TSX, ///< M6800/1/2/3
520
+ M680X_INS_TSY,
521
+ M680X_INS_TXA,
522
+ M680X_INS_TXS, ///< M6800/1/2/3
523
+ M680X_INS_TYS,
524
+ M680X_INS_WAI, ///< M6800/1/2/3
525
+ M680X_INS_WAIT,
526
+ M680X_INS_WAV,
527
+ M680X_INS_WAVR,
528
+ M680X_INS_XGDX, ///< HD6301
529
+ M680X_INS_XGDY,
530
+ M680X_INS_ENDING, // <-- mark the end of the list of instructions
531
+ } m680x_insn;
532
+
533
+ #ifdef __cplusplus
534
+ }
535
+ #endif
536
+
537
+ #endif