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,520 @@
1
+ #ifndef CAPSTONE_SPARC_H
2
+ #define CAPSTONE_SPARC_H
3
+
4
+ /* Capstone Disassembly Engine */
5
+ /* By Nguyen Anh Quynh <aquynh@gmail.com>, 2014-2015 */
6
+
7
+ #ifdef __cplusplus
8
+ extern "C" {
9
+ #endif
10
+
11
+ #include "platform.h"
12
+
13
+ // GCC SPARC toolchain has a default macro called "sparc" which breaks
14
+ // compilation
15
+ #undef sparc
16
+
17
+ #ifdef _MSC_VER
18
+ #pragma warning(disable:4201)
19
+ #endif
20
+
21
+ /// Enums corresponding to Sparc condition codes, both icc's and fcc's.
22
+ typedef enum sparc_cc {
23
+ SPARC_CC_INVALID = 0, ///< invalid CC (default)
24
+ // Integer condition codes
25
+ SPARC_CC_ICC_A = 8+256, ///< Always
26
+ SPARC_CC_ICC_N = 0+256, ///< Never
27
+ SPARC_CC_ICC_NE = 9+256, ///< Not Equal
28
+ SPARC_CC_ICC_E = 1+256, ///< Equal
29
+ SPARC_CC_ICC_G = 10+256, ///< Greater
30
+ SPARC_CC_ICC_LE = 2+256, ///< Less or Equal
31
+ SPARC_CC_ICC_GE = 11+256, ///< Greater or Equal
32
+ SPARC_CC_ICC_L = 3+256, ///< Less
33
+ SPARC_CC_ICC_GU = 12+256, ///< Greater Unsigned
34
+ SPARC_CC_ICC_LEU = 4+256, ///< Less or Equal Unsigned
35
+ SPARC_CC_ICC_CC = 13+256, ///< Carry Clear/Great or Equal Unsigned
36
+ SPARC_CC_ICC_CS = 5+256, ///< Carry Set/Less Unsigned
37
+ SPARC_CC_ICC_POS = 14+256, ///< Positive
38
+ SPARC_CC_ICC_NEG = 6+256, ///< Negative
39
+ SPARC_CC_ICC_VC = 15+256, ///< Overflow Clear
40
+ SPARC_CC_ICC_VS = 7+256, ///< Overflow Set
41
+
42
+ // Floating condition codes
43
+ SPARC_CC_FCC_A = 8+16+256, ///< Always
44
+ SPARC_CC_FCC_N = 0+16+256, ///< Never
45
+ SPARC_CC_FCC_U = 7+16+256, ///< Unordered
46
+ SPARC_CC_FCC_G = 6+16+256, ///< Greater
47
+ SPARC_CC_FCC_UG = 5+16+256, ///< Unordered or Greater
48
+ SPARC_CC_FCC_L = 4+16+256, ///< Less
49
+ SPARC_CC_FCC_UL = 3+16+256, ///< Unordered or Less
50
+ SPARC_CC_FCC_LG = 2+16+256, ///< Less or Greater
51
+ SPARC_CC_FCC_NE = 1+16+256, ///< Not Equal
52
+ SPARC_CC_FCC_E = 9+16+256, ///< Equal
53
+ SPARC_CC_FCC_UE = 10+16+256, ///< Unordered or Equal
54
+ SPARC_CC_FCC_GE = 11+16+256, ///< Greater or Equal
55
+ SPARC_CC_FCC_UGE = 12+16+256, ///< Unordered or Greater or Equal
56
+ SPARC_CC_FCC_LE = 13+16+256, ///< Less or Equal
57
+ SPARC_CC_FCC_ULE = 14+16+256, ///< Unordered or Less or Equal
58
+ SPARC_CC_FCC_O = 15+16+256, ///< Ordered
59
+ } sparc_cc;
60
+
61
+ /// Branch hint
62
+ typedef enum sparc_hint {
63
+ SPARC_HINT_INVALID = 0, ///< no hint
64
+ SPARC_HINT_A = 1 << 0, ///< annul delay slot instruction
65
+ SPARC_HINT_PT = 1 << 1, ///< branch taken
66
+ SPARC_HINT_PN = 1 << 2, ///< branch NOT taken
67
+ } sparc_hint;
68
+
69
+ /// Operand type for instruction's operands
70
+ typedef enum sparc_op_type {
71
+ SPARC_OP_INVALID = 0, ///< = CS_OP_INVALID (Uninitialized).
72
+ SPARC_OP_REG, ///< = CS_OP_REG (Register operand).
73
+ SPARC_OP_IMM, ///< = CS_OP_IMM (Immediate operand).
74
+ SPARC_OP_MEM, ///< = CS_OP_MEM (Memory operand).
75
+ } sparc_op_type;
76
+
77
+ /// SPARC registers
78
+ typedef enum sparc_reg {
79
+ SPARC_REG_INVALID = 0,
80
+
81
+ SPARC_REG_F0,
82
+ SPARC_REG_F1,
83
+ SPARC_REG_F2,
84
+ SPARC_REG_F3,
85
+ SPARC_REG_F4,
86
+ SPARC_REG_F5,
87
+ SPARC_REG_F6,
88
+ SPARC_REG_F7,
89
+ SPARC_REG_F8,
90
+ SPARC_REG_F9,
91
+ SPARC_REG_F10,
92
+ SPARC_REG_F11,
93
+ SPARC_REG_F12,
94
+ SPARC_REG_F13,
95
+ SPARC_REG_F14,
96
+ SPARC_REG_F15,
97
+ SPARC_REG_F16,
98
+ SPARC_REG_F17,
99
+ SPARC_REG_F18,
100
+ SPARC_REG_F19,
101
+ SPARC_REG_F20,
102
+ SPARC_REG_F21,
103
+ SPARC_REG_F22,
104
+ SPARC_REG_F23,
105
+ SPARC_REG_F24,
106
+ SPARC_REG_F25,
107
+ SPARC_REG_F26,
108
+ SPARC_REG_F27,
109
+ SPARC_REG_F28,
110
+ SPARC_REG_F29,
111
+ SPARC_REG_F30,
112
+ SPARC_REG_F31,
113
+ SPARC_REG_F32,
114
+ SPARC_REG_F34,
115
+ SPARC_REG_F36,
116
+ SPARC_REG_F38,
117
+ SPARC_REG_F40,
118
+ SPARC_REG_F42,
119
+ SPARC_REG_F44,
120
+ SPARC_REG_F46,
121
+ SPARC_REG_F48,
122
+ SPARC_REG_F50,
123
+ SPARC_REG_F52,
124
+ SPARC_REG_F54,
125
+ SPARC_REG_F56,
126
+ SPARC_REG_F58,
127
+ SPARC_REG_F60,
128
+ SPARC_REG_F62,
129
+ SPARC_REG_FCC0, // Floating condition codes
130
+ SPARC_REG_FCC1,
131
+ SPARC_REG_FCC2,
132
+ SPARC_REG_FCC3,
133
+ SPARC_REG_FP,
134
+ SPARC_REG_G0,
135
+ SPARC_REG_G1,
136
+ SPARC_REG_G2,
137
+ SPARC_REG_G3,
138
+ SPARC_REG_G4,
139
+ SPARC_REG_G5,
140
+ SPARC_REG_G6,
141
+ SPARC_REG_G7,
142
+ SPARC_REG_I0,
143
+ SPARC_REG_I1,
144
+ SPARC_REG_I2,
145
+ SPARC_REG_I3,
146
+ SPARC_REG_I4,
147
+ SPARC_REG_I5,
148
+ SPARC_REG_I7,
149
+ SPARC_REG_ICC, // Integer condition codes
150
+ SPARC_REG_L0,
151
+ SPARC_REG_L1,
152
+ SPARC_REG_L2,
153
+ SPARC_REG_L3,
154
+ SPARC_REG_L4,
155
+ SPARC_REG_L5,
156
+ SPARC_REG_L6,
157
+ SPARC_REG_L7,
158
+ SPARC_REG_O0,
159
+ SPARC_REG_O1,
160
+ SPARC_REG_O2,
161
+ SPARC_REG_O3,
162
+ SPARC_REG_O4,
163
+ SPARC_REG_O5,
164
+ SPARC_REG_O7,
165
+ SPARC_REG_SP,
166
+ SPARC_REG_Y,
167
+
168
+ // special register
169
+ SPARC_REG_XCC,
170
+
171
+ SPARC_REG_ENDING, // <-- mark the end of the list of registers
172
+
173
+ // extras
174
+ SPARC_REG_O6 = SPARC_REG_SP,
175
+ SPARC_REG_I6 = SPARC_REG_FP,
176
+ } sparc_reg;
177
+
178
+ /// Instruction's operand referring to memory
179
+ /// This is associated with SPARC_OP_MEM operand type above
180
+ typedef struct sparc_op_mem {
181
+ uint8_t base; ///< base register, can be safely interpreted as
182
+ ///< a value of type `sparc_reg`, but it is only
183
+ ///< one byte wide
184
+ uint8_t index; ///< index register, same conditions apply here
185
+ int32_t disp; ///< displacement/offset value
186
+ } sparc_op_mem;
187
+
188
+ /// Instruction operand
189
+ typedef struct cs_sparc_op {
190
+ sparc_op_type type; ///< operand type
191
+ union {
192
+ sparc_reg reg; ///< register value for REG operand
193
+ int64_t imm; ///< immediate value for IMM operand
194
+ sparc_op_mem mem; ///< base/disp value for MEM operand
195
+ };
196
+ } cs_sparc_op;
197
+
198
+ /// Instruction structure
199
+ typedef struct cs_sparc {
200
+ sparc_cc cc; ///< code condition for this insn
201
+ sparc_hint hint; ///< branch hint: encoding as bitwise OR of sparc_hint.
202
+ /// Number of operands of this instruction,
203
+ /// or 0 when instruction has no operand.
204
+ uint8_t op_count;
205
+ cs_sparc_op operands[4]; ///< operands for this instruction.
206
+ } cs_sparc;
207
+
208
+ /// SPARC instruction
209
+ typedef enum sparc_insn {
210
+ SPARC_INS_INVALID = 0,
211
+
212
+ SPARC_INS_ADDCC,
213
+ SPARC_INS_ADDX,
214
+ SPARC_INS_ADDXCC,
215
+ SPARC_INS_ADDXC,
216
+ SPARC_INS_ADDXCCC,
217
+ SPARC_INS_ADD,
218
+ SPARC_INS_ALIGNADDR,
219
+ SPARC_INS_ALIGNADDRL,
220
+ SPARC_INS_ANDCC,
221
+ SPARC_INS_ANDNCC,
222
+ SPARC_INS_ANDN,
223
+ SPARC_INS_AND,
224
+ SPARC_INS_ARRAY16,
225
+ SPARC_INS_ARRAY32,
226
+ SPARC_INS_ARRAY8,
227
+ SPARC_INS_B,
228
+ SPARC_INS_JMP,
229
+ SPARC_INS_BMASK,
230
+ SPARC_INS_FB,
231
+ SPARC_INS_BRGEZ,
232
+ SPARC_INS_BRGZ,
233
+ SPARC_INS_BRLEZ,
234
+ SPARC_INS_BRLZ,
235
+ SPARC_INS_BRNZ,
236
+ SPARC_INS_BRZ,
237
+ SPARC_INS_BSHUFFLE,
238
+ SPARC_INS_CALL,
239
+ SPARC_INS_CASX,
240
+ SPARC_INS_CAS,
241
+ SPARC_INS_CMASK16,
242
+ SPARC_INS_CMASK32,
243
+ SPARC_INS_CMASK8,
244
+ SPARC_INS_CMP,
245
+ SPARC_INS_EDGE16,
246
+ SPARC_INS_EDGE16L,
247
+ SPARC_INS_EDGE16LN,
248
+ SPARC_INS_EDGE16N,
249
+ SPARC_INS_EDGE32,
250
+ SPARC_INS_EDGE32L,
251
+ SPARC_INS_EDGE32LN,
252
+ SPARC_INS_EDGE32N,
253
+ SPARC_INS_EDGE8,
254
+ SPARC_INS_EDGE8L,
255
+ SPARC_INS_EDGE8LN,
256
+ SPARC_INS_EDGE8N,
257
+ SPARC_INS_FABSD,
258
+ SPARC_INS_FABSQ,
259
+ SPARC_INS_FABSS,
260
+ SPARC_INS_FADDD,
261
+ SPARC_INS_FADDQ,
262
+ SPARC_INS_FADDS,
263
+ SPARC_INS_FALIGNDATA,
264
+ SPARC_INS_FAND,
265
+ SPARC_INS_FANDNOT1,
266
+ SPARC_INS_FANDNOT1S,
267
+ SPARC_INS_FANDNOT2,
268
+ SPARC_INS_FANDNOT2S,
269
+ SPARC_INS_FANDS,
270
+ SPARC_INS_FCHKSM16,
271
+ SPARC_INS_FCMPD,
272
+ SPARC_INS_FCMPEQ16,
273
+ SPARC_INS_FCMPEQ32,
274
+ SPARC_INS_FCMPGT16,
275
+ SPARC_INS_FCMPGT32,
276
+ SPARC_INS_FCMPLE16,
277
+ SPARC_INS_FCMPLE32,
278
+ SPARC_INS_FCMPNE16,
279
+ SPARC_INS_FCMPNE32,
280
+ SPARC_INS_FCMPQ,
281
+ SPARC_INS_FCMPS,
282
+ SPARC_INS_FDIVD,
283
+ SPARC_INS_FDIVQ,
284
+ SPARC_INS_FDIVS,
285
+ SPARC_INS_FDMULQ,
286
+ SPARC_INS_FDTOI,
287
+ SPARC_INS_FDTOQ,
288
+ SPARC_INS_FDTOS,
289
+ SPARC_INS_FDTOX,
290
+ SPARC_INS_FEXPAND,
291
+ SPARC_INS_FHADDD,
292
+ SPARC_INS_FHADDS,
293
+ SPARC_INS_FHSUBD,
294
+ SPARC_INS_FHSUBS,
295
+ SPARC_INS_FITOD,
296
+ SPARC_INS_FITOQ,
297
+ SPARC_INS_FITOS,
298
+ SPARC_INS_FLCMPD,
299
+ SPARC_INS_FLCMPS,
300
+ SPARC_INS_FLUSHW,
301
+ SPARC_INS_FMEAN16,
302
+ SPARC_INS_FMOVD,
303
+ SPARC_INS_FMOVQ,
304
+ SPARC_INS_FMOVRDGEZ,
305
+ SPARC_INS_FMOVRQGEZ,
306
+ SPARC_INS_FMOVRSGEZ,
307
+ SPARC_INS_FMOVRDGZ,
308
+ SPARC_INS_FMOVRQGZ,
309
+ SPARC_INS_FMOVRSGZ,
310
+ SPARC_INS_FMOVRDLEZ,
311
+ SPARC_INS_FMOVRQLEZ,
312
+ SPARC_INS_FMOVRSLEZ,
313
+ SPARC_INS_FMOVRDLZ,
314
+ SPARC_INS_FMOVRQLZ,
315
+ SPARC_INS_FMOVRSLZ,
316
+ SPARC_INS_FMOVRDNZ,
317
+ SPARC_INS_FMOVRQNZ,
318
+ SPARC_INS_FMOVRSNZ,
319
+ SPARC_INS_FMOVRDZ,
320
+ SPARC_INS_FMOVRQZ,
321
+ SPARC_INS_FMOVRSZ,
322
+ SPARC_INS_FMOVS,
323
+ SPARC_INS_FMUL8SUX16,
324
+ SPARC_INS_FMUL8ULX16,
325
+ SPARC_INS_FMUL8X16,
326
+ SPARC_INS_FMUL8X16AL,
327
+ SPARC_INS_FMUL8X16AU,
328
+ SPARC_INS_FMULD,
329
+ SPARC_INS_FMULD8SUX16,
330
+ SPARC_INS_FMULD8ULX16,
331
+ SPARC_INS_FMULQ,
332
+ SPARC_INS_FMULS,
333
+ SPARC_INS_FNADDD,
334
+ SPARC_INS_FNADDS,
335
+ SPARC_INS_FNAND,
336
+ SPARC_INS_FNANDS,
337
+ SPARC_INS_FNEGD,
338
+ SPARC_INS_FNEGQ,
339
+ SPARC_INS_FNEGS,
340
+ SPARC_INS_FNHADDD,
341
+ SPARC_INS_FNHADDS,
342
+ SPARC_INS_FNOR,
343
+ SPARC_INS_FNORS,
344
+ SPARC_INS_FNOT1,
345
+ SPARC_INS_FNOT1S,
346
+ SPARC_INS_FNOT2,
347
+ SPARC_INS_FNOT2S,
348
+ SPARC_INS_FONE,
349
+ SPARC_INS_FONES,
350
+ SPARC_INS_FOR,
351
+ SPARC_INS_FORNOT1,
352
+ SPARC_INS_FORNOT1S,
353
+ SPARC_INS_FORNOT2,
354
+ SPARC_INS_FORNOT2S,
355
+ SPARC_INS_FORS,
356
+ SPARC_INS_FPACK16,
357
+ SPARC_INS_FPACK32,
358
+ SPARC_INS_FPACKFIX,
359
+ SPARC_INS_FPADD16,
360
+ SPARC_INS_FPADD16S,
361
+ SPARC_INS_FPADD32,
362
+ SPARC_INS_FPADD32S,
363
+ SPARC_INS_FPADD64,
364
+ SPARC_INS_FPMERGE,
365
+ SPARC_INS_FPSUB16,
366
+ SPARC_INS_FPSUB16S,
367
+ SPARC_INS_FPSUB32,
368
+ SPARC_INS_FPSUB32S,
369
+ SPARC_INS_FQTOD,
370
+ SPARC_INS_FQTOI,
371
+ SPARC_INS_FQTOS,
372
+ SPARC_INS_FQTOX,
373
+ SPARC_INS_FSLAS16,
374
+ SPARC_INS_FSLAS32,
375
+ SPARC_INS_FSLL16,
376
+ SPARC_INS_FSLL32,
377
+ SPARC_INS_FSMULD,
378
+ SPARC_INS_FSQRTD,
379
+ SPARC_INS_FSQRTQ,
380
+ SPARC_INS_FSQRTS,
381
+ SPARC_INS_FSRA16,
382
+ SPARC_INS_FSRA32,
383
+ SPARC_INS_FSRC1,
384
+ SPARC_INS_FSRC1S,
385
+ SPARC_INS_FSRC2,
386
+ SPARC_INS_FSRC2S,
387
+ SPARC_INS_FSRL16,
388
+ SPARC_INS_FSRL32,
389
+ SPARC_INS_FSTOD,
390
+ SPARC_INS_FSTOI,
391
+ SPARC_INS_FSTOQ,
392
+ SPARC_INS_FSTOX,
393
+ SPARC_INS_FSUBD,
394
+ SPARC_INS_FSUBQ,
395
+ SPARC_INS_FSUBS,
396
+ SPARC_INS_FXNOR,
397
+ SPARC_INS_FXNORS,
398
+ SPARC_INS_FXOR,
399
+ SPARC_INS_FXORS,
400
+ SPARC_INS_FXTOD,
401
+ SPARC_INS_FXTOQ,
402
+ SPARC_INS_FXTOS,
403
+ SPARC_INS_FZERO,
404
+ SPARC_INS_FZEROS,
405
+ SPARC_INS_JMPL,
406
+ SPARC_INS_LDD,
407
+ SPARC_INS_LD,
408
+ SPARC_INS_LDQ,
409
+ SPARC_INS_LDSB,
410
+ SPARC_INS_LDSH,
411
+ SPARC_INS_LDSW,
412
+ SPARC_INS_LDUB,
413
+ SPARC_INS_LDUH,
414
+ SPARC_INS_LDX,
415
+ SPARC_INS_LZCNT,
416
+ SPARC_INS_MEMBAR,
417
+ SPARC_INS_MOVDTOX,
418
+ SPARC_INS_MOV,
419
+ SPARC_INS_MOVRGEZ,
420
+ SPARC_INS_MOVRGZ,
421
+ SPARC_INS_MOVRLEZ,
422
+ SPARC_INS_MOVRLZ,
423
+ SPARC_INS_MOVRNZ,
424
+ SPARC_INS_MOVRZ,
425
+ SPARC_INS_MOVSTOSW,
426
+ SPARC_INS_MOVSTOUW,
427
+ SPARC_INS_MULX,
428
+ SPARC_INS_NOP,
429
+ SPARC_INS_ORCC,
430
+ SPARC_INS_ORNCC,
431
+ SPARC_INS_ORN,
432
+ SPARC_INS_OR,
433
+ SPARC_INS_PDIST,
434
+ SPARC_INS_PDISTN,
435
+ SPARC_INS_POPC,
436
+ SPARC_INS_RD,
437
+ SPARC_INS_RESTORE,
438
+ SPARC_INS_RETT,
439
+ SPARC_INS_SAVE,
440
+ SPARC_INS_SDIVCC,
441
+ SPARC_INS_SDIVX,
442
+ SPARC_INS_SDIV,
443
+ SPARC_INS_SETHI,
444
+ SPARC_INS_SHUTDOWN,
445
+ SPARC_INS_SIAM,
446
+ SPARC_INS_SLLX,
447
+ SPARC_INS_SLL,
448
+ SPARC_INS_SMULCC,
449
+ SPARC_INS_SMUL,
450
+ SPARC_INS_SRAX,
451
+ SPARC_INS_SRA,
452
+ SPARC_INS_SRLX,
453
+ SPARC_INS_SRL,
454
+ SPARC_INS_STBAR,
455
+ SPARC_INS_STB,
456
+ SPARC_INS_STD,
457
+ SPARC_INS_ST,
458
+ SPARC_INS_STH,
459
+ SPARC_INS_STQ,
460
+ SPARC_INS_STX,
461
+ SPARC_INS_SUBCC,
462
+ SPARC_INS_SUBX,
463
+ SPARC_INS_SUBXCC,
464
+ SPARC_INS_SUB,
465
+ SPARC_INS_SWAP,
466
+ SPARC_INS_TADDCCTV,
467
+ SPARC_INS_TADDCC,
468
+ SPARC_INS_T,
469
+ SPARC_INS_TSUBCCTV,
470
+ SPARC_INS_TSUBCC,
471
+ SPARC_INS_UDIVCC,
472
+ SPARC_INS_UDIVX,
473
+ SPARC_INS_UDIV,
474
+ SPARC_INS_UMULCC,
475
+ SPARC_INS_UMULXHI,
476
+ SPARC_INS_UMUL,
477
+ SPARC_INS_UNIMP,
478
+ SPARC_INS_FCMPED,
479
+ SPARC_INS_FCMPEQ,
480
+ SPARC_INS_FCMPES,
481
+ SPARC_INS_WR,
482
+ SPARC_INS_XMULX,
483
+ SPARC_INS_XMULXHI,
484
+ SPARC_INS_XNORCC,
485
+ SPARC_INS_XNOR,
486
+ SPARC_INS_XORCC,
487
+ SPARC_INS_XOR,
488
+
489
+ // alias instructions
490
+ SPARC_INS_RET,
491
+ SPARC_INS_RETL,
492
+
493
+ SPARC_INS_ENDING, // <-- mark the end of the list of instructions
494
+ } sparc_insn;
495
+
496
+ /// Group of SPARC instructions
497
+ typedef enum sparc_insn_group {
498
+ SPARC_GRP_INVALID = 0, ///< = CS_GRP_INVALID
499
+
500
+ // Generic groups
501
+ // all jump instructions (conditional+direct+indirect jumps)
502
+ SPARC_GRP_JUMP, ///< = CS_GRP_JUMP
503
+
504
+ // Architecture-specific groups
505
+ SPARC_GRP_HARDQUAD = 128,
506
+ SPARC_GRP_V9,
507
+ SPARC_GRP_VIS,
508
+ SPARC_GRP_VIS2,
509
+ SPARC_GRP_VIS3,
510
+ SPARC_GRP_32BIT,
511
+ SPARC_GRP_64BIT,
512
+
513
+ SPARC_GRP_ENDING, // <-- mark the end of the list of groups
514
+ } sparc_insn_group;
515
+
516
+ #ifdef __cplusplus
517
+ }
518
+ #endif
519
+
520
+ #endif