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.
- package/LICENSE +26 -0
- package/README.md +191 -0
- package/binding.gyp +168 -0
- package/deps/capstone/LEB128.h +38 -0
- package/deps/capstone/MCDisassembler.h +14 -0
- package/deps/capstone/MCFixedLenDisassembler.h +32 -0
- package/deps/capstone/MCInst.c +270 -0
- package/deps/capstone/MCInst.h +165 -0
- package/deps/capstone/MCInstrDesc.c +41 -0
- package/deps/capstone/MCInstrDesc.h +167 -0
- package/deps/capstone/MCRegisterInfo.c +151 -0
- package/deps/capstone/MCRegisterInfo.h +116 -0
- package/deps/capstone/Mapping.c +254 -0
- package/deps/capstone/Mapping.h +174 -0
- package/deps/capstone/MathExtras.h +442 -0
- package/deps/capstone/SStream.c +181 -0
- package/deps/capstone/SStream.h +40 -0
- package/deps/capstone/arch/AArch64/AArch64AddressingModes.h +945 -0
- package/deps/capstone/arch/AArch64/AArch64BaseInfo.c +77 -0
- package/deps/capstone/arch/AArch64/AArch64BaseInfo.h +585 -0
- package/deps/capstone/arch/AArch64/AArch64Disassembler.c +2280 -0
- package/deps/capstone/arch/AArch64/AArch64Disassembler.h +18 -0
- package/deps/capstone/arch/AArch64/AArch64GenAsmWriter.inc +26589 -0
- package/deps/capstone/arch/AArch64/AArch64GenDisassemblerTables.inc +27322 -0
- package/deps/capstone/arch/AArch64/AArch64GenInstrInfo.inc +13194 -0
- package/deps/capstone/arch/AArch64/AArch64GenRegisterInfo.inc +3814 -0
- package/deps/capstone/arch/AArch64/AArch64GenRegisterName.inc +714 -0
- package/deps/capstone/arch/AArch64/AArch64GenRegisterV.inc +673 -0
- package/deps/capstone/arch/AArch64/AArch64GenSubtargetInfo.inc +229 -0
- package/deps/capstone/arch/AArch64/AArch64GenSystemOperands.inc +2863 -0
- package/deps/capstone/arch/AArch64/AArch64GenSystemOperands_enum.inc +21 -0
- package/deps/capstone/arch/AArch64/AArch64InstPrinter.c +3029 -0
- package/deps/capstone/arch/AArch64/AArch64InstPrinter.h +28 -0
- package/deps/capstone/arch/AArch64/AArch64Mapping.c +883 -0
- package/deps/capstone/arch/AArch64/AArch64Mapping.h +43 -0
- package/deps/capstone/arch/AArch64/AArch64MappingInsn.inc +37790 -0
- package/deps/capstone/arch/AArch64/AArch64MappingInsnName.inc +1282 -0
- package/deps/capstone/arch/AArch64/AArch64MappingInsnOp.inc +26994 -0
- package/deps/capstone/arch/AArch64/AArch64Module.c +44 -0
- package/deps/capstone/arch/AArch64/AArch64Module.h +12 -0
- package/deps/capstone/arch/ARM/ARMAddressingModes.h +698 -0
- package/deps/capstone/arch/ARM/ARMBaseInfo.h +486 -0
- package/deps/capstone/arch/ARM/ARMDisassembler.c +5763 -0
- package/deps/capstone/arch/ARM/ARMDisassembler.h +18 -0
- package/deps/capstone/arch/ARM/ARMGenAsmWriter.inc +9545 -0
- package/deps/capstone/arch/ARM/ARMGenDisassemblerTables.inc +15185 -0
- package/deps/capstone/arch/ARM/ARMGenInstrInfo.inc +6632 -0
- package/deps/capstone/arch/ARM/ARMGenRegisterInfo.inc +2102 -0
- package/deps/capstone/arch/ARM/ARMGenRegisterName.inc +231 -0
- package/deps/capstone/arch/ARM/ARMGenRegisterName_digit.inc +231 -0
- package/deps/capstone/arch/ARM/ARMGenSubtargetInfo.inc +162 -0
- package/deps/capstone/arch/ARM/ARMGenSystemRegister.inc +270 -0
- package/deps/capstone/arch/ARM/ARMInstPrinter.c +3364 -0
- package/deps/capstone/arch/ARM/ARMInstPrinter.h +43 -0
- package/deps/capstone/arch/ARM/ARMMapping.c +551 -0
- package/deps/capstone/arch/ARM/ARMMapping.h +40 -0
- package/deps/capstone/arch/ARM/ARMMappingInsn.inc +18772 -0
- package/deps/capstone/arch/ARM/ARMMappingInsnName.inc +475 -0
- package/deps/capstone/arch/ARM/ARMMappingInsnOp.inc +10729 -0
- package/deps/capstone/arch/ARM/ARMModule.c +63 -0
- package/deps/capstone/arch/ARM/ARMModule.h +12 -0
- package/deps/capstone/arch/BPF/BPFConstants.h +88 -0
- package/deps/capstone/arch/BPF/BPFDisassembler.c +464 -0
- package/deps/capstone/arch/BPF/BPFDisassembler.h +27 -0
- package/deps/capstone/arch/BPF/BPFInstPrinter.c +285 -0
- package/deps/capstone/arch/BPF/BPFInstPrinter.h +16 -0
- package/deps/capstone/arch/BPF/BPFMapping.c +513 -0
- package/deps/capstone/arch/BPF/BPFMapping.h +21 -0
- package/deps/capstone/arch/BPF/BPFModule.c +34 -0
- package/deps/capstone/arch/BPF/BPFModule.h +12 -0
- package/deps/capstone/arch/EVM/EVMDisassembler.c +379 -0
- package/deps/capstone/arch/EVM/EVMDisassembler.h +12 -0
- package/deps/capstone/arch/EVM/EVMInstPrinter.c +20 -0
- package/deps/capstone/arch/EVM/EVMInstPrinter.h +17 -0
- package/deps/capstone/arch/EVM/EVMMapping.c +344 -0
- package/deps/capstone/arch/EVM/EVMMapping.h +8 -0
- package/deps/capstone/arch/EVM/EVMMappingInsn.inc +259 -0
- package/deps/capstone/arch/EVM/EVMModule.c +33 -0
- package/deps/capstone/arch/EVM/EVMModule.h +12 -0
- package/deps/capstone/arch/M680X/M680XDisassembler.c +2307 -0
- package/deps/capstone/arch/M680X/M680XDisassembler.h +17 -0
- package/deps/capstone/arch/M680X/M680XDisassemblerInternals.h +57 -0
- package/deps/capstone/arch/M680X/M680XInstPrinter.c +360 -0
- package/deps/capstone/arch/M680X/M680XInstPrinter.h +25 -0
- package/deps/capstone/arch/M680X/M680XModule.c +77 -0
- package/deps/capstone/arch/M680X/M680XModule.h +12 -0
- package/deps/capstone/arch/M680X/cpu12.inc +335 -0
- package/deps/capstone/arch/M680X/hcs08.inc +60 -0
- package/deps/capstone/arch/M680X/hd6301.inc +15 -0
- package/deps/capstone/arch/M680X/hd6309.inc +259 -0
- package/deps/capstone/arch/M680X/insn_props.inc +367 -0
- package/deps/capstone/arch/M680X/m6800.inc +277 -0
- package/deps/capstone/arch/M680X/m6801.inc +39 -0
- package/deps/capstone/arch/M680X/m6805.inc +277 -0
- package/deps/capstone/arch/M680X/m6808.inc +91 -0
- package/deps/capstone/arch/M680X/m6809.inc +352 -0
- package/deps/capstone/arch/M680X/m6811.inc +105 -0
- package/deps/capstone/arch/M68K/M68KDisassembler.c +3668 -0
- package/deps/capstone/arch/M68K/M68KDisassembler.h +30 -0
- package/deps/capstone/arch/M68K/M68KInstPrinter.c +387 -0
- package/deps/capstone/arch/M68K/M68KInstPrinter.h +21 -0
- package/deps/capstone/arch/M68K/M68KInstructionTable.inc +65540 -0
- package/deps/capstone/arch/M68K/M68KModule.c +42 -0
- package/deps/capstone/arch/M68K/M68KModule.h +12 -0
- package/deps/capstone/arch/MOS65XX/MOS65XXDisassembler.c +544 -0
- package/deps/capstone/arch/MOS65XX/MOS65XXDisassembler.h +22 -0
- package/deps/capstone/arch/MOS65XX/MOS65XXDisassemblerInternals.h +23 -0
- package/deps/capstone/arch/MOS65XX/MOS65XXModule.c +79 -0
- package/deps/capstone/arch/MOS65XX/MOS65XXModule.h +12 -0
- package/deps/capstone/arch/MOS65XX/instruction_info.inc +106 -0
- package/deps/capstone/arch/MOS65XX/m6502.inc +256 -0
- package/deps/capstone/arch/MOS65XX/m65816.inc +256 -0
- package/deps/capstone/arch/MOS65XX/m65c02.inc +256 -0
- package/deps/capstone/arch/MOS65XX/mw65c02.inc +256 -0
- package/deps/capstone/arch/Mips/MipsDisassembler.c +1794 -0
- package/deps/capstone/arch/Mips/MipsDisassembler.h +16 -0
- package/deps/capstone/arch/Mips/MipsGenAsmWriter.inc +5725 -0
- package/deps/capstone/arch/Mips/MipsGenDisassemblerTables.inc +6942 -0
- package/deps/capstone/arch/Mips/MipsGenInstrInfo.inc +1805 -0
- package/deps/capstone/arch/Mips/MipsGenRegisterInfo.inc +1679 -0
- package/deps/capstone/arch/Mips/MipsGenSubtargetInfo.inc +52 -0
- package/deps/capstone/arch/Mips/MipsInstPrinter.c +424 -0
- package/deps/capstone/arch/Mips/MipsInstPrinter.h +25 -0
- package/deps/capstone/arch/Mips/MipsMapping.c +1070 -0
- package/deps/capstone/arch/Mips/MipsMapping.h +25 -0
- package/deps/capstone/arch/Mips/MipsMappingInsn.inc +9315 -0
- package/deps/capstone/arch/Mips/MipsModule.c +52 -0
- package/deps/capstone/arch/Mips/MipsModule.h +12 -0
- package/deps/capstone/arch/PowerPC/PPCDisassembler.c +627 -0
- package/deps/capstone/arch/PowerPC/PPCDisassembler.h +17 -0
- package/deps/capstone/arch/PowerPC/PPCGenAsmWriter.inc +11451 -0
- package/deps/capstone/arch/PowerPC/PPCGenDisassemblerTables.inc +6886 -0
- package/deps/capstone/arch/PowerPC/PPCGenInstrInfo.inc +4772 -0
- package/deps/capstone/arch/PowerPC/PPCGenRegisterInfo.inc +1122 -0
- package/deps/capstone/arch/PowerPC/PPCGenRegisterName.inc +278 -0
- package/deps/capstone/arch/PowerPC/PPCGenSubtargetInfo.inc +90 -0
- package/deps/capstone/arch/PowerPC/PPCInstPrinter.c +1238 -0
- package/deps/capstone/arch/PowerPC/PPCInstPrinter.h +15 -0
- package/deps/capstone/arch/PowerPC/PPCMapping.c +570 -0
- package/deps/capstone/arch/PowerPC/PPCMapping.h +40 -0
- package/deps/capstone/arch/PowerPC/PPCMappingInsn.inc +13220 -0
- package/deps/capstone/arch/PowerPC/PPCMappingInsnName.inc +1731 -0
- package/deps/capstone/arch/PowerPC/PPCModule.c +45 -0
- package/deps/capstone/arch/PowerPC/PPCModule.h +12 -0
- package/deps/capstone/arch/PowerPC/PPCPredicates.h +62 -0
- package/deps/capstone/arch/RISCV/RISCVBaseInfo.h +106 -0
- package/deps/capstone/arch/RISCV/RISCVDisassembler.c +433 -0
- package/deps/capstone/arch/RISCV/RISCVDisassembler.h +18 -0
- package/deps/capstone/arch/RISCV/RISCVGenAsmWriter.inc +2651 -0
- package/deps/capstone/arch/RISCV/RISCVGenDisassemblerTables.inc +1776 -0
- package/deps/capstone/arch/RISCV/RISCVGenInsnNameMaps.inc +275 -0
- package/deps/capstone/arch/RISCV/RISCVGenInstrInfo.inc +470 -0
- package/deps/capstone/arch/RISCV/RISCVGenRegisterInfo.inc +426 -0
- package/deps/capstone/arch/RISCV/RISCVGenSubtargetInfo.inc +33 -0
- package/deps/capstone/arch/RISCV/RISCVInstPrinter.c +447 -0
- package/deps/capstone/arch/RISCV/RISCVInstPrinter.h +24 -0
- package/deps/capstone/arch/RISCV/RISCVMapping.c +366 -0
- package/deps/capstone/arch/RISCV/RISCVMapping.h +22 -0
- package/deps/capstone/arch/RISCV/RISCVMappingInsn.inc +1635 -0
- package/deps/capstone/arch/RISCV/RISCVModule.c +42 -0
- package/deps/capstone/arch/RISCV/RISCVModule.h +12 -0
- package/deps/capstone/arch/SH/SHDisassembler.c +2221 -0
- package/deps/capstone/arch/SH/SHDisassembler.h +19 -0
- package/deps/capstone/arch/SH/SHInsnTable.inc +66 -0
- package/deps/capstone/arch/SH/SHInstPrinter.c +438 -0
- package/deps/capstone/arch/SH/SHInstPrinter.h +23 -0
- package/deps/capstone/arch/SH/SHModule.c +39 -0
- package/deps/capstone/arch/SH/SHModule.h +12 -0
- package/deps/capstone/arch/SH/mktable.rb +390 -0
- package/deps/capstone/arch/Sparc/Sparc.h +63 -0
- package/deps/capstone/arch/Sparc/SparcDisassembler.c +500 -0
- package/deps/capstone/arch/Sparc/SparcDisassembler.h +17 -0
- package/deps/capstone/arch/Sparc/SparcGenAsmWriter.inc +5709 -0
- package/deps/capstone/arch/Sparc/SparcGenDisassemblerTables.inc +2028 -0
- package/deps/capstone/arch/Sparc/SparcGenInstrInfo.inc +514 -0
- package/deps/capstone/arch/Sparc/SparcGenRegisterInfo.inc +451 -0
- package/deps/capstone/arch/Sparc/SparcGenSubtargetInfo.inc +27 -0
- package/deps/capstone/arch/Sparc/SparcInstPrinter.c +446 -0
- package/deps/capstone/arch/Sparc/SparcInstPrinter.h +17 -0
- package/deps/capstone/arch/Sparc/SparcMapping.c +665 -0
- package/deps/capstone/arch/Sparc/SparcMapping.h +34 -0
- package/deps/capstone/arch/Sparc/SparcMappingInsn.inc +2643 -0
- package/deps/capstone/arch/Sparc/SparcModule.c +45 -0
- package/deps/capstone/arch/Sparc/SparcModule.h +12 -0
- package/deps/capstone/arch/SystemZ/SystemZDisassembler.c +484 -0
- package/deps/capstone/arch/SystemZ/SystemZDisassembler.h +17 -0
- package/deps/capstone/arch/SystemZ/SystemZGenAsmWriter.inc +11575 -0
- package/deps/capstone/arch/SystemZ/SystemZGenDisassemblerTables.inc +10262 -0
- package/deps/capstone/arch/SystemZ/SystemZGenInsnNameMaps.inc +2348 -0
- package/deps/capstone/arch/SystemZ/SystemZGenInstrInfo.inc +2820 -0
- package/deps/capstone/arch/SystemZ/SystemZGenRegisterInfo.inc +741 -0
- package/deps/capstone/arch/SystemZ/SystemZGenSubtargetInfo.inc +49 -0
- package/deps/capstone/arch/SystemZ/SystemZInstPrinter.c +433 -0
- package/deps/capstone/arch/SystemZ/SystemZInstPrinter.h +15 -0
- package/deps/capstone/arch/SystemZ/SystemZMCTargetDesc.c +195 -0
- package/deps/capstone/arch/SystemZ/SystemZMCTargetDesc.h +51 -0
- package/deps/capstone/arch/SystemZ/SystemZMapping.c +479 -0
- package/deps/capstone/arch/SystemZ/SystemZMapping.h +23 -0
- package/deps/capstone/arch/SystemZ/SystemZMappingInsn.inc +14175 -0
- package/deps/capstone/arch/SystemZ/SystemZModule.c +44 -0
- package/deps/capstone/arch/SystemZ/SystemZModule.h +12 -0
- package/deps/capstone/arch/TMS320C64x/TMS320C64xDisassembler.c +628 -0
- package/deps/capstone/arch/TMS320C64x/TMS320C64xDisassembler.h +19 -0
- package/deps/capstone/arch/TMS320C64x/TMS320C64xGenAsmWriter.inc +684 -0
- package/deps/capstone/arch/TMS320C64x/TMS320C64xGenDisassemblerTables.inc +1352 -0
- package/deps/capstone/arch/TMS320C64x/TMS320C64xGenInstrInfo.inc +298 -0
- package/deps/capstone/arch/TMS320C64x/TMS320C64xGenRegisterInfo.inc +277 -0
- package/deps/capstone/arch/TMS320C64x/TMS320C64xInstPrinter.c +572 -0
- package/deps/capstone/arch/TMS320C64x/TMS320C64xInstPrinter.h +15 -0
- package/deps/capstone/arch/TMS320C64x/TMS320C64xMapping.c +1926 -0
- package/deps/capstone/arch/TMS320C64x/TMS320C64xMapping.h +26 -0
- package/deps/capstone/arch/TMS320C64x/TMS320C64xModule.c +39 -0
- package/deps/capstone/arch/TMS320C64x/TMS320C64xModule.h +12 -0
- package/deps/capstone/arch/TriCore/TriCore.td +134 -0
- package/deps/capstone/arch/TriCore/TriCoreCallingConv.td +61 -0
- package/deps/capstone/arch/TriCore/TriCoreDisassembler.c +1655 -0
- package/deps/capstone/arch/TriCore/TriCoreDisassembler.h +18 -0
- package/deps/capstone/arch/TriCore/TriCoreGenAsmWriter.inc +3691 -0
- package/deps/capstone/arch/TriCore/TriCoreGenCSFeatureName.inc +22 -0
- package/deps/capstone/arch/TriCore/TriCoreGenCSMappingInsn.inc +8938 -0
- package/deps/capstone/arch/TriCore/TriCoreGenCSMappingInsnName.inc +404 -0
- package/deps/capstone/arch/TriCore/TriCoreGenCSMappingInsnOp.inc +7994 -0
- package/deps/capstone/arch/TriCore/TriCoreGenCSOpGroup.inc +32 -0
- package/deps/capstone/arch/TriCore/TriCoreGenDisassemblerTables.inc +4044 -0
- package/deps/capstone/arch/TriCore/TriCoreGenInstrInfo.inc +2693 -0
- package/deps/capstone/arch/TriCore/TriCoreGenRegisterInfo.inc +295 -0
- package/deps/capstone/arch/TriCore/TriCoreGenSubtargetInfo.inc +40 -0
- package/deps/capstone/arch/TriCore/TriCoreInstPrinter.c +488 -0
- package/deps/capstone/arch/TriCore/TriCoreInstrFormats.td +773 -0
- package/deps/capstone/arch/TriCore/TriCoreInstrInfo.td +1873 -0
- package/deps/capstone/arch/TriCore/TriCoreLinkage.h +21 -0
- package/deps/capstone/arch/TriCore/TriCoreMapping.c +241 -0
- package/deps/capstone/arch/TriCore/TriCoreMapping.h +32 -0
- package/deps/capstone/arch/TriCore/TriCoreModule.c +44 -0
- package/deps/capstone/arch/TriCore/TriCoreModule.h +11 -0
- package/deps/capstone/arch/TriCore/TriCoreRegisterInfo.td +153 -0
- package/deps/capstone/arch/WASM/WASMDisassembler.c +1009 -0
- package/deps/capstone/arch/WASM/WASMDisassembler.h +12 -0
- package/deps/capstone/arch/WASM/WASMInstPrinter.c +47 -0
- package/deps/capstone/arch/WASM/WASMInstPrinter.h +18 -0
- package/deps/capstone/arch/WASM/WASMMapping.c +333 -0
- package/deps/capstone/arch/WASM/WASMMapping.h +9 -0
- package/deps/capstone/arch/WASM/WASMModule.c +33 -0
- package/deps/capstone/arch/WASM/WASMModule.h +12 -0
- package/deps/capstone/arch/X86/X86ATTInstPrinter.c +997 -0
- package/deps/capstone/arch/X86/X86BaseInfo.h +50 -0
- package/deps/capstone/arch/X86/X86Disassembler.c +1033 -0
- package/deps/capstone/arch/X86/X86Disassembler.h +28 -0
- package/deps/capstone/arch/X86/X86DisassemblerDecoder.c +2358 -0
- package/deps/capstone/arch/X86/X86DisassemblerDecoder.h +725 -0
- package/deps/capstone/arch/X86/X86DisassemblerDecoderCommon.h +483 -0
- package/deps/capstone/arch/X86/X86GenAsmWriter.inc +49199 -0
- package/deps/capstone/arch/X86/X86GenAsmWriter1.inc +33196 -0
- package/deps/capstone/arch/X86/X86GenAsmWriter1_reduce.inc +2531 -0
- package/deps/capstone/arch/X86/X86GenAsmWriter_reduce.inc +2855 -0
- package/deps/capstone/arch/X86/X86GenDisassemblerTables.inc +112961 -0
- package/deps/capstone/arch/X86/X86GenDisassemblerTables2.inc +102151 -0
- package/deps/capstone/arch/X86/X86GenDisassemblerTables_reduce.inc +28047 -0
- package/deps/capstone/arch/X86/X86GenDisassemblerTables_reduce2.inc +18827 -0
- package/deps/capstone/arch/X86/X86GenInstrInfo.inc +15158 -0
- package/deps/capstone/arch/X86/X86GenInstrInfo_reduce.inc +1564 -0
- package/deps/capstone/arch/X86/X86GenRegisterInfo.inc +1549 -0
- package/deps/capstone/arch/X86/X86GenRegisterName.inc +292 -0
- package/deps/capstone/arch/X86/X86GenRegisterName1.inc +291 -0
- package/deps/capstone/arch/X86/X86ImmSize.inc +335 -0
- package/deps/capstone/arch/X86/X86InstPrinter.h +26 -0
- package/deps/capstone/arch/X86/X86InstPrinterCommon.c +116 -0
- package/deps/capstone/arch/X86/X86InstPrinterCommon.h +16 -0
- package/deps/capstone/arch/X86/X86IntelInstPrinter.c +1061 -0
- package/deps/capstone/arch/X86/X86Lookup16.inc +16874 -0
- package/deps/capstone/arch/X86/X86Lookup16_reduce.inc +2308 -0
- package/deps/capstone/arch/X86/X86Mapping.c +2266 -0
- package/deps/capstone/arch/X86/X86Mapping.h +96 -0
- package/deps/capstone/arch/X86/X86MappingInsn.inc +105977 -0
- package/deps/capstone/arch/X86/X86MappingInsnName.inc +1527 -0
- package/deps/capstone/arch/X86/X86MappingInsnName_reduce.inc +348 -0
- package/deps/capstone/arch/X86/X86MappingInsnOp.inc +75700 -0
- package/deps/capstone/arch/X86/X86MappingInsnOp_reduce.inc +7729 -0
- package/deps/capstone/arch/X86/X86MappingInsn_reduce.inc +10819 -0
- package/deps/capstone/arch/X86/X86MappingReg.inc +280 -0
- package/deps/capstone/arch/X86/X86Module.c +94 -0
- package/deps/capstone/arch/X86/X86Module.h +12 -0
- package/deps/capstone/arch/XCore/XCoreDisassembler.c +794 -0
- package/deps/capstone/arch/XCore/XCoreDisassembler.h +17 -0
- package/deps/capstone/arch/XCore/XCoreGenAsmWriter.inc +772 -0
- package/deps/capstone/arch/XCore/XCoreGenDisassemblerTables.inc +853 -0
- package/deps/capstone/arch/XCore/XCoreGenInstrInfo.inc +267 -0
- package/deps/capstone/arch/XCore/XCoreGenRegisterInfo.inc +110 -0
- package/deps/capstone/arch/XCore/XCoreInstPrinter.c +250 -0
- package/deps/capstone/arch/XCore/XCoreInstPrinter.h +18 -0
- package/deps/capstone/arch/XCore/XCoreMapping.c +297 -0
- package/deps/capstone/arch/XCore/XCoreMapping.h +26 -0
- package/deps/capstone/arch/XCore/XCoreMappingInsn.inc +1287 -0
- package/deps/capstone/arch/XCore/XCoreModule.c +41 -0
- package/deps/capstone/arch/XCore/XCoreModule.h +12 -0
- package/deps/capstone/cs.c +1664 -0
- package/deps/capstone/cs_priv.h +101 -0
- package/deps/capstone/cs_simple_types.h +886 -0
- package/deps/capstone/include/capstone/arm.h +991 -0
- package/deps/capstone/include/capstone/arm64.h +3159 -0
- package/deps/capstone/include/capstone/bpf.h +209 -0
- package/deps/capstone/include/capstone/capstone.h +875 -0
- package/deps/capstone/include/capstone/evm.h +188 -0
- package/deps/capstone/include/capstone/m680x.h +537 -0
- package/deps/capstone/include/capstone/m68k.h +613 -0
- package/deps/capstone/include/capstone/mips.h +956 -0
- package/deps/capstone/include/capstone/mos65xx.h +204 -0
- package/deps/capstone/include/capstone/platform.h +122 -0
- package/deps/capstone/include/capstone/ppc.h +2108 -0
- package/deps/capstone/include/capstone/riscv.h +531 -0
- package/deps/capstone/include/capstone/sh.h +465 -0
- package/deps/capstone/include/capstone/sparc.h +520 -0
- package/deps/capstone/include/capstone/systemz.h +2601 -0
- package/deps/capstone/include/capstone/tms320c64x.h +359 -0
- package/deps/capstone/include/capstone/tricore.h +567 -0
- package/deps/capstone/include/capstone/wasm.h +250 -0
- package/deps/capstone/include/capstone/x86.h +1986 -0
- package/deps/capstone/include/capstone/xcore.h +235 -0
- package/deps/capstone/include/platform.h +110 -0
- package/deps/capstone/include/windowsce/intrin.h +12 -0
- package/deps/capstone/include/windowsce/stdint.h +133 -0
- package/deps/capstone/utils.c +140 -0
- package/deps/capstone/utils.h +54 -0
- package/index.d.ts +448 -0
- package/index.js +64 -0
- package/index.mjs +25 -0
- package/package.json +82 -0
- package/prebuilds/win32-x64/hexcore-capstone.node +0 -0
- package/src/capstone_wrapper.cpp +910 -0
- package/src/capstone_wrapper.h +147 -0
- package/src/disasm_async_worker.h +215 -0
- package/src/main.cpp +145 -0
|
@@ -0,0 +1,465 @@
|
|
|
1
|
+
#ifndef CAPSTONE_SH_H
|
|
2
|
+
#define CAPSTONE_SH_H
|
|
3
|
+
|
|
4
|
+
/* Capstone Disassembly Engine */
|
|
5
|
+
/* By Yoshinori Sato, 2022 */
|
|
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
|
+
/// SH registers and special registers
|
|
18
|
+
typedef enum {
|
|
19
|
+
SH_REG_INVALID = 0,
|
|
20
|
+
|
|
21
|
+
SH_REG_R0,
|
|
22
|
+
SH_REG_R1,
|
|
23
|
+
SH_REG_R2,
|
|
24
|
+
SH_REG_R3,
|
|
25
|
+
SH_REG_R4,
|
|
26
|
+
SH_REG_R5,
|
|
27
|
+
SH_REG_R6,
|
|
28
|
+
SH_REG_R7,
|
|
29
|
+
|
|
30
|
+
SH_REG_R8,
|
|
31
|
+
SH_REG_R9,
|
|
32
|
+
SH_REG_R10,
|
|
33
|
+
SH_REG_R11,
|
|
34
|
+
SH_REG_R12,
|
|
35
|
+
SH_REG_R13,
|
|
36
|
+
SH_REG_R14,
|
|
37
|
+
SH_REG_R15,
|
|
38
|
+
|
|
39
|
+
SH_REG_R0_BANK,
|
|
40
|
+
SH_REG_R1_BANK,
|
|
41
|
+
SH_REG_R2_BANK,
|
|
42
|
+
SH_REG_R3_BANK,
|
|
43
|
+
SH_REG_R4_BANK,
|
|
44
|
+
SH_REG_R5_BANK,
|
|
45
|
+
SH_REG_R6_BANK,
|
|
46
|
+
SH_REG_R7_BANK,
|
|
47
|
+
|
|
48
|
+
SH_REG_FR0,
|
|
49
|
+
SH_REG_FR1,
|
|
50
|
+
SH_REG_FR2,
|
|
51
|
+
SH_REG_FR3,
|
|
52
|
+
SH_REG_FR4,
|
|
53
|
+
SH_REG_FR5,
|
|
54
|
+
SH_REG_FR6,
|
|
55
|
+
SH_REG_FR7,
|
|
56
|
+
SH_REG_FR8,
|
|
57
|
+
SH_REG_FR9,
|
|
58
|
+
SH_REG_FR10,
|
|
59
|
+
SH_REG_FR11,
|
|
60
|
+
SH_REG_FR12,
|
|
61
|
+
SH_REG_FR13,
|
|
62
|
+
SH_REG_FR14,
|
|
63
|
+
SH_REG_FR15,
|
|
64
|
+
|
|
65
|
+
SH_REG_DR0,
|
|
66
|
+
SH_REG_DR2,
|
|
67
|
+
SH_REG_DR4,
|
|
68
|
+
SH_REG_DR6,
|
|
69
|
+
SH_REG_DR8,
|
|
70
|
+
SH_REG_DR10,
|
|
71
|
+
SH_REG_DR12,
|
|
72
|
+
SH_REG_DR14,
|
|
73
|
+
|
|
74
|
+
SH_REG_XD0,
|
|
75
|
+
SH_REG_XD2,
|
|
76
|
+
SH_REG_XD4,
|
|
77
|
+
SH_REG_XD6,
|
|
78
|
+
SH_REG_XD8,
|
|
79
|
+
SH_REG_XD10,
|
|
80
|
+
SH_REG_XD12,
|
|
81
|
+
SH_REG_XD14,
|
|
82
|
+
|
|
83
|
+
SH_REG_XF0,
|
|
84
|
+
SH_REG_XF1,
|
|
85
|
+
SH_REG_XF2,
|
|
86
|
+
SH_REG_XF3,
|
|
87
|
+
SH_REG_XF4,
|
|
88
|
+
SH_REG_XF5,
|
|
89
|
+
SH_REG_XF6,
|
|
90
|
+
SH_REG_XF7,
|
|
91
|
+
SH_REG_XF8,
|
|
92
|
+
SH_REG_XF9,
|
|
93
|
+
SH_REG_XF10,
|
|
94
|
+
SH_REG_XF11,
|
|
95
|
+
SH_REG_XF12,
|
|
96
|
+
SH_REG_XF13,
|
|
97
|
+
SH_REG_XF14,
|
|
98
|
+
SH_REG_XF15,
|
|
99
|
+
|
|
100
|
+
SH_REG_FV0,
|
|
101
|
+
SH_REG_FV4,
|
|
102
|
+
SH_REG_FV8,
|
|
103
|
+
SH_REG_FV12,
|
|
104
|
+
|
|
105
|
+
SH_REG_XMATRX,
|
|
106
|
+
|
|
107
|
+
SH_REG_PC,
|
|
108
|
+
SH_REG_PR,
|
|
109
|
+
SH_REG_MACH,
|
|
110
|
+
SH_REG_MACL,
|
|
111
|
+
|
|
112
|
+
SH_REG_SR,
|
|
113
|
+
SH_REG_GBR,
|
|
114
|
+
SH_REG_SSR,
|
|
115
|
+
SH_REG_SPC,
|
|
116
|
+
SH_REG_SGR,
|
|
117
|
+
SH_REG_DBR,
|
|
118
|
+
SH_REG_VBR,
|
|
119
|
+
SH_REG_TBR,
|
|
120
|
+
SH_REG_RS,
|
|
121
|
+
SH_REG_RE,
|
|
122
|
+
SH_REG_MOD,
|
|
123
|
+
|
|
124
|
+
SH_REG_FPUL,
|
|
125
|
+
SH_REG_FPSCR,
|
|
126
|
+
|
|
127
|
+
SH_REG_DSP_X0,
|
|
128
|
+
SH_REG_DSP_X1,
|
|
129
|
+
SH_REG_DSP_Y0,
|
|
130
|
+
SH_REG_DSP_Y1,
|
|
131
|
+
SH_REG_DSP_A0,
|
|
132
|
+
SH_REG_DSP_A1,
|
|
133
|
+
SH_REG_DSP_A0G,
|
|
134
|
+
SH_REG_DSP_A1G,
|
|
135
|
+
SH_REG_DSP_M0,
|
|
136
|
+
SH_REG_DSP_M1,
|
|
137
|
+
SH_REG_DSP_DSR,
|
|
138
|
+
|
|
139
|
+
SH_REG_DSP_RSV0,
|
|
140
|
+
SH_REG_DSP_RSV1,
|
|
141
|
+
SH_REG_DSP_RSV2,
|
|
142
|
+
SH_REG_DSP_RSV3,
|
|
143
|
+
SH_REG_DSP_RSV4,
|
|
144
|
+
SH_REG_DSP_RSV5,
|
|
145
|
+
SH_REG_DSP_RSV6,
|
|
146
|
+
SH_REG_DSP_RSV7,
|
|
147
|
+
SH_REG_DSP_RSV8,
|
|
148
|
+
SH_REG_DSP_RSV9,
|
|
149
|
+
SH_REG_DSP_RSVA,
|
|
150
|
+
SH_REG_DSP_RSVB,
|
|
151
|
+
SH_REG_DSP_RSVC,
|
|
152
|
+
SH_REG_DSP_RSVD,
|
|
153
|
+
SH_REG_DSP_RSVE,
|
|
154
|
+
SH_REG_DSP_RSVF,
|
|
155
|
+
|
|
156
|
+
SH_REG_ENDING, // <-- mark the end of the list of registers
|
|
157
|
+
} sh_reg;
|
|
158
|
+
|
|
159
|
+
typedef enum {
|
|
160
|
+
SH_OP_INVALID = 0, ///< = CS_OP_INVALID (Uninitialized).
|
|
161
|
+
SH_OP_REG, ///< = CS_OP_REG (Register operand).
|
|
162
|
+
SH_OP_IMM, ///< = CS_OP_IMM (Immediate operand).
|
|
163
|
+
SH_OP_MEM, ///< = CS_OP_MEM (Memory operand).
|
|
164
|
+
} sh_op_type;
|
|
165
|
+
|
|
166
|
+
typedef enum {
|
|
167
|
+
SH_OP_MEM_INVALID = 0, /// <= Invalid
|
|
168
|
+
SH_OP_MEM_REG_IND, /// <= Register indirect
|
|
169
|
+
SH_OP_MEM_REG_POST, /// <= Register post increment
|
|
170
|
+
SH_OP_MEM_REG_PRE, /// <= Register pre decrement
|
|
171
|
+
SH_OP_MEM_REG_DISP, /// <= displacement
|
|
172
|
+
SH_OP_MEM_REG_R0, /// <= R0 indexed
|
|
173
|
+
SH_OP_MEM_GBR_DISP, /// <= GBR based displacement
|
|
174
|
+
SH_OP_MEM_GBR_R0, /// <= GBR based R0 indexed
|
|
175
|
+
SH_OP_MEM_PCR, /// <= PC relative
|
|
176
|
+
SH_OP_MEM_TBR_DISP, /// <= TBR based displaysment
|
|
177
|
+
} sh_op_mem_type;
|
|
178
|
+
|
|
179
|
+
typedef struct sh_op_mem {
|
|
180
|
+
sh_op_mem_type address; /// <= memory address
|
|
181
|
+
sh_reg reg; /// <= base register
|
|
182
|
+
uint32_t disp; /// <= displacement
|
|
183
|
+
} sh_op_mem;
|
|
184
|
+
|
|
185
|
+
// SH-DSP instcutions define
|
|
186
|
+
typedef enum sh_dsp_insn_type {
|
|
187
|
+
SH_INS_DSP_INVALID,
|
|
188
|
+
SH_INS_DSP_DOUBLE,
|
|
189
|
+
SH_INS_DSP_SINGLE,
|
|
190
|
+
SH_INS_DSP_PARALLEL,
|
|
191
|
+
} sh_dsp_insn_type;
|
|
192
|
+
|
|
193
|
+
typedef enum sh_dsp_insn {
|
|
194
|
+
SH_INS_DSP_NOP = 1,
|
|
195
|
+
SH_INS_DSP_MOV,
|
|
196
|
+
SH_INS_DSP_PSHL,
|
|
197
|
+
SH_INS_DSP_PSHA,
|
|
198
|
+
SH_INS_DSP_PMULS,
|
|
199
|
+
SH_INS_DSP_PCLR_PMULS,
|
|
200
|
+
SH_INS_DSP_PSUB_PMULS,
|
|
201
|
+
SH_INS_DSP_PADD_PMULS,
|
|
202
|
+
SH_INS_DSP_PSUBC,
|
|
203
|
+
SH_INS_DSP_PADDC,
|
|
204
|
+
SH_INS_DSP_PCMP,
|
|
205
|
+
SH_INS_DSP_PABS,
|
|
206
|
+
SH_INS_DSP_PRND,
|
|
207
|
+
SH_INS_DSP_PSUB,
|
|
208
|
+
SH_INS_DSP_PSUBr,
|
|
209
|
+
SH_INS_DSP_PADD,
|
|
210
|
+
SH_INS_DSP_PAND,
|
|
211
|
+
SH_INS_DSP_PXOR,
|
|
212
|
+
SH_INS_DSP_POR,
|
|
213
|
+
SH_INS_DSP_PDEC,
|
|
214
|
+
SH_INS_DSP_PINC,
|
|
215
|
+
SH_INS_DSP_PCLR,
|
|
216
|
+
SH_INS_DSP_PDMSB,
|
|
217
|
+
SH_INS_DSP_PNEG,
|
|
218
|
+
SH_INS_DSP_PCOPY,
|
|
219
|
+
SH_INS_DSP_PSTS,
|
|
220
|
+
SH_INS_DSP_PLDS,
|
|
221
|
+
SH_INS_DSP_PSWAP,
|
|
222
|
+
SH_INS_DSP_PWAD,
|
|
223
|
+
SH_INS_DSP_PWSB,
|
|
224
|
+
} sh_dsp_insn;
|
|
225
|
+
|
|
226
|
+
typedef enum sh_dsp_operand {
|
|
227
|
+
SH_OP_DSP_INVALID,
|
|
228
|
+
SH_OP_DSP_REG_PRE,
|
|
229
|
+
SH_OP_DSP_REG_IND,
|
|
230
|
+
SH_OP_DSP_REG_POST,
|
|
231
|
+
SH_OP_DSP_REG_INDEX,
|
|
232
|
+
SH_OP_DSP_REG,
|
|
233
|
+
SH_OP_DSP_IMM,
|
|
234
|
+
|
|
235
|
+
} sh_dsp_operand;
|
|
236
|
+
|
|
237
|
+
typedef enum sh_dsp_cc {
|
|
238
|
+
SH_DSP_CC_INVALID,
|
|
239
|
+
SH_DSP_CC_NONE,
|
|
240
|
+
SH_DSP_CC_DCT,
|
|
241
|
+
SH_DSP_CC_DCF,
|
|
242
|
+
} sh_dsp_cc;
|
|
243
|
+
|
|
244
|
+
typedef struct sh_op_dsp {
|
|
245
|
+
sh_dsp_insn insn;
|
|
246
|
+
sh_dsp_operand operand[2];
|
|
247
|
+
sh_reg r[6];
|
|
248
|
+
sh_dsp_cc cc;
|
|
249
|
+
uint8_t imm;
|
|
250
|
+
int size;
|
|
251
|
+
} sh_op_dsp;
|
|
252
|
+
|
|
253
|
+
/// Instruction operand
|
|
254
|
+
typedef struct cs_sh_op {
|
|
255
|
+
sh_op_type type;
|
|
256
|
+
union {
|
|
257
|
+
uint64_t imm; ///< immediate value for IMM operand
|
|
258
|
+
sh_reg reg; ///< register value for REG operand
|
|
259
|
+
sh_op_mem mem; ///< data when operand is targeting memory
|
|
260
|
+
sh_op_dsp dsp; ///< dsp instruction
|
|
261
|
+
};
|
|
262
|
+
} cs_sh_op;
|
|
263
|
+
|
|
264
|
+
/// SH instruction
|
|
265
|
+
typedef enum sh_insn {
|
|
266
|
+
SH_INS_INVALID,
|
|
267
|
+
SH_INS_ADD_r,
|
|
268
|
+
SH_INS_ADD,
|
|
269
|
+
SH_INS_ADDC,
|
|
270
|
+
SH_INS_ADDV,
|
|
271
|
+
SH_INS_AND,
|
|
272
|
+
SH_INS_BAND,
|
|
273
|
+
SH_INS_BANDNOT,
|
|
274
|
+
SH_INS_BCLR,
|
|
275
|
+
SH_INS_BF,
|
|
276
|
+
SH_INS_BF_S,
|
|
277
|
+
SH_INS_BLD,
|
|
278
|
+
SH_INS_BLDNOT,
|
|
279
|
+
SH_INS_BOR,
|
|
280
|
+
SH_INS_BORNOT,
|
|
281
|
+
SH_INS_BRA,
|
|
282
|
+
SH_INS_BRAF,
|
|
283
|
+
SH_INS_BSET,
|
|
284
|
+
SH_INS_BSR,
|
|
285
|
+
SH_INS_BSRF,
|
|
286
|
+
SH_INS_BST,
|
|
287
|
+
SH_INS_BT,
|
|
288
|
+
SH_INS_BT_S,
|
|
289
|
+
SH_INS_BXOR,
|
|
290
|
+
SH_INS_CLIPS,
|
|
291
|
+
SH_INS_CLIPU,
|
|
292
|
+
SH_INS_CLRDMXY,
|
|
293
|
+
SH_INS_CLRMAC,
|
|
294
|
+
SH_INS_CLRS,
|
|
295
|
+
SH_INS_CLRT,
|
|
296
|
+
SH_INS_CMP_EQ,
|
|
297
|
+
SH_INS_CMP_GE,
|
|
298
|
+
SH_INS_CMP_GT,
|
|
299
|
+
SH_INS_CMP_HI,
|
|
300
|
+
SH_INS_CMP_HS,
|
|
301
|
+
SH_INS_CMP_PL,
|
|
302
|
+
SH_INS_CMP_PZ,
|
|
303
|
+
SH_INS_CMP_STR,
|
|
304
|
+
SH_INS_DIV0S,
|
|
305
|
+
SH_INS_DIV0U,
|
|
306
|
+
SH_INS_DIV1,
|
|
307
|
+
SH_INS_DIVS,
|
|
308
|
+
SH_INS_DIVU,
|
|
309
|
+
SH_INS_DMULS_L,
|
|
310
|
+
SH_INS_DMULU_L,
|
|
311
|
+
SH_INS_DT,
|
|
312
|
+
SH_INS_EXTS_B,
|
|
313
|
+
SH_INS_EXTS_W,
|
|
314
|
+
SH_INS_EXTU_B,
|
|
315
|
+
SH_INS_EXTU_W,
|
|
316
|
+
SH_INS_FABS,
|
|
317
|
+
SH_INS_FADD,
|
|
318
|
+
SH_INS_FCMP_EQ,
|
|
319
|
+
SH_INS_FCMP_GT,
|
|
320
|
+
SH_INS_FCNVDS,
|
|
321
|
+
SH_INS_FCNVSD,
|
|
322
|
+
SH_INS_FDIV,
|
|
323
|
+
SH_INS_FIPR,
|
|
324
|
+
SH_INS_FLDI0,
|
|
325
|
+
SH_INS_FLDI1,
|
|
326
|
+
SH_INS_FLDS,
|
|
327
|
+
SH_INS_FLOAT,
|
|
328
|
+
SH_INS_FMAC,
|
|
329
|
+
SH_INS_FMOV,
|
|
330
|
+
SH_INS_FMUL,
|
|
331
|
+
SH_INS_FNEG,
|
|
332
|
+
SH_INS_FPCHG,
|
|
333
|
+
SH_INS_FRCHG,
|
|
334
|
+
SH_INS_FSCA,
|
|
335
|
+
SH_INS_FSCHG,
|
|
336
|
+
SH_INS_FSQRT,
|
|
337
|
+
SH_INS_FSRRA,
|
|
338
|
+
SH_INS_FSTS,
|
|
339
|
+
SH_INS_FSUB,
|
|
340
|
+
SH_INS_FTRC,
|
|
341
|
+
SH_INS_FTRV,
|
|
342
|
+
SH_INS_ICBI,
|
|
343
|
+
SH_INS_JMP,
|
|
344
|
+
SH_INS_JSR,
|
|
345
|
+
SH_INS_JSR_N,
|
|
346
|
+
SH_INS_LDBANK,
|
|
347
|
+
SH_INS_LDC,
|
|
348
|
+
SH_INS_LDRC,
|
|
349
|
+
SH_INS_LDRE,
|
|
350
|
+
SH_INS_LDRS,
|
|
351
|
+
SH_INS_LDS,
|
|
352
|
+
SH_INS_LDTLB,
|
|
353
|
+
SH_INS_MAC_L,
|
|
354
|
+
SH_INS_MAC_W,
|
|
355
|
+
SH_INS_MOV,
|
|
356
|
+
SH_INS_MOVA,
|
|
357
|
+
SH_INS_MOVCA,
|
|
358
|
+
SH_INS_MOVCO,
|
|
359
|
+
SH_INS_MOVI20,
|
|
360
|
+
SH_INS_MOVI20S,
|
|
361
|
+
SH_INS_MOVLI,
|
|
362
|
+
SH_INS_MOVML,
|
|
363
|
+
SH_INS_MOVMU,
|
|
364
|
+
SH_INS_MOVRT,
|
|
365
|
+
SH_INS_MOVT,
|
|
366
|
+
SH_INS_MOVU,
|
|
367
|
+
SH_INS_MOVUA,
|
|
368
|
+
SH_INS_MUL_L,
|
|
369
|
+
SH_INS_MULR,
|
|
370
|
+
SH_INS_MULS_W,
|
|
371
|
+
SH_INS_MULU_W,
|
|
372
|
+
SH_INS_NEG,
|
|
373
|
+
SH_INS_NEGC,
|
|
374
|
+
SH_INS_NOP,
|
|
375
|
+
SH_INS_NOT,
|
|
376
|
+
SH_INS_NOTT,
|
|
377
|
+
SH_INS_OCBI,
|
|
378
|
+
SH_INS_OCBP,
|
|
379
|
+
SH_INS_OCBWB,
|
|
380
|
+
SH_INS_OR,
|
|
381
|
+
SH_INS_PREF,
|
|
382
|
+
SH_INS_PREFI,
|
|
383
|
+
SH_INS_RESBANK,
|
|
384
|
+
SH_INS_ROTCL,
|
|
385
|
+
SH_INS_ROTCR,
|
|
386
|
+
SH_INS_ROTL,
|
|
387
|
+
SH_INS_ROTR,
|
|
388
|
+
SH_INS_RTE,
|
|
389
|
+
SH_INS_RTS,
|
|
390
|
+
SH_INS_RTS_N,
|
|
391
|
+
SH_INS_RTV_N,
|
|
392
|
+
SH_INS_SETDMX,
|
|
393
|
+
SH_INS_SETDMY,
|
|
394
|
+
SH_INS_SETRC,
|
|
395
|
+
SH_INS_SETS,
|
|
396
|
+
SH_INS_SETT,
|
|
397
|
+
SH_INS_SHAD,
|
|
398
|
+
SH_INS_SHAL,
|
|
399
|
+
SH_INS_SHAR,
|
|
400
|
+
SH_INS_SHLD,
|
|
401
|
+
SH_INS_SHLL,
|
|
402
|
+
SH_INS_SHLL16,
|
|
403
|
+
SH_INS_SHLL2,
|
|
404
|
+
SH_INS_SHLL8,
|
|
405
|
+
SH_INS_SHLR,
|
|
406
|
+
SH_INS_SHLR16,
|
|
407
|
+
SH_INS_SHLR2,
|
|
408
|
+
SH_INS_SHLR8,
|
|
409
|
+
SH_INS_SLEEP,
|
|
410
|
+
SH_INS_STBANK,
|
|
411
|
+
SH_INS_STC,
|
|
412
|
+
SH_INS_STS,
|
|
413
|
+
SH_INS_SUB,
|
|
414
|
+
SH_INS_SUBC,
|
|
415
|
+
SH_INS_SUBV,
|
|
416
|
+
SH_INS_SWAP_B,
|
|
417
|
+
SH_INS_SWAP_W,
|
|
418
|
+
SH_INS_SYNCO,
|
|
419
|
+
SH_INS_TAS,
|
|
420
|
+
SH_INS_TRAPA,
|
|
421
|
+
SH_INS_TST,
|
|
422
|
+
SH_INS_XOR,
|
|
423
|
+
SH_INS_XTRCT,
|
|
424
|
+
SH_INS_DSP,
|
|
425
|
+
SH_INS_ENDING, // <-- mark the end of the list of instructions
|
|
426
|
+
} sh_insn;
|
|
427
|
+
|
|
428
|
+
/// Instruction structure
|
|
429
|
+
typedef struct cs_sh {
|
|
430
|
+
sh_insn insn;
|
|
431
|
+
uint8_t size;
|
|
432
|
+
uint8_t op_count;
|
|
433
|
+
cs_sh_op operands[3];
|
|
434
|
+
} cs_sh;
|
|
435
|
+
|
|
436
|
+
/// Group of SH instructions
|
|
437
|
+
typedef enum sh_insn_group {
|
|
438
|
+
SH_GRP_INVALID = 0, ///< CS_GRUP_INVALID
|
|
439
|
+
SH_GRP_JUMP, ///< = CS_GRP_JUMP
|
|
440
|
+
SH_GRP_CALL, ///< = CS_GRP_CALL
|
|
441
|
+
SH_GRP_INT, ///< = CS_GRP_INT
|
|
442
|
+
SH_GRP_RET, ///< = CS_GRP_RET
|
|
443
|
+
SH_GRP_IRET, ///< = CS_GRP_IRET
|
|
444
|
+
SH_GRP_PRIVILEGE, ///< = CS_GRP_PRIVILEGE
|
|
445
|
+
SH_GRP_BRANCH_RELATIVE, ///< = CS_GRP_BRANCH_RELATIVE
|
|
446
|
+
|
|
447
|
+
SH_GRP_SH1,
|
|
448
|
+
SH_GRP_SH2,
|
|
449
|
+
SH_GRP_SH2E,
|
|
450
|
+
SH_GRP_SH2DSP,
|
|
451
|
+
SH_GRP_SH2A,
|
|
452
|
+
SH_GRP_SH2AFPU,
|
|
453
|
+
SH_GRP_SH3,
|
|
454
|
+
SH_GRP_SH3DSP,
|
|
455
|
+
SH_GRP_SH4,
|
|
456
|
+
SH_GRP_SH4A,
|
|
457
|
+
|
|
458
|
+
SH_GRP_ENDING,// <-- mark the end of the list of groups
|
|
459
|
+
} sh_insn_group;
|
|
460
|
+
|
|
461
|
+
#ifdef __cplusplus
|
|
462
|
+
}
|
|
463
|
+
#endif
|
|
464
|
+
|
|
465
|
+
#endif
|