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,204 @@
|
|
|
1
|
+
#ifndef CAPSTONE_MOS65XX_H
|
|
2
|
+
#define CAPSTONE_MOS65XX_H
|
|
3
|
+
|
|
4
|
+
/* Capstone Disassembly Engine */
|
|
5
|
+
/* By Sebastian Macke <sebastian@macke.de, 2018 */
|
|
6
|
+
|
|
7
|
+
#ifdef __cplusplus
|
|
8
|
+
extern "C" {
|
|
9
|
+
#endif
|
|
10
|
+
|
|
11
|
+
#include "platform.h"
|
|
12
|
+
|
|
13
|
+
/// MOS65XX registers and special registers
|
|
14
|
+
typedef enum mos65xx_reg {
|
|
15
|
+
MOS65XX_REG_INVALID = 0,
|
|
16
|
+
MOS65XX_REG_ACC, ///< accumulator
|
|
17
|
+
MOS65XX_REG_X, ///< X index register
|
|
18
|
+
MOS65XX_REG_Y, ///< Y index register
|
|
19
|
+
MOS65XX_REG_P, ///< status register
|
|
20
|
+
MOS65XX_REG_SP, ///< stack pointer register
|
|
21
|
+
MOS65XX_REG_DP, ///< direct page register
|
|
22
|
+
MOS65XX_REG_B, ///< data bank register
|
|
23
|
+
MOS65XX_REG_K, ///< program bank register
|
|
24
|
+
MOS65XX_REG_ENDING, // <-- mark the end of the list of registers
|
|
25
|
+
} mos65xx_reg;
|
|
26
|
+
|
|
27
|
+
/// MOS65XX Addressing Modes
|
|
28
|
+
typedef enum mos65xx_address_mode {
|
|
29
|
+
MOS65XX_AM_NONE = 0, ///< No address mode.
|
|
30
|
+
MOS65XX_AM_IMP, ///< implied addressing (no addressing mode)
|
|
31
|
+
MOS65XX_AM_ACC, ///< accumulator addressing
|
|
32
|
+
MOS65XX_AM_IMM, ///< 8/16 Bit immediate value
|
|
33
|
+
MOS65XX_AM_REL, ///< relative addressing used by branches
|
|
34
|
+
MOS65XX_AM_INT, ///< interrupt addressing
|
|
35
|
+
MOS65XX_AM_BLOCK, ///< memory block addressing
|
|
36
|
+
MOS65XX_AM_ZP, ///< zeropage addressing
|
|
37
|
+
MOS65XX_AM_ZP_X, ///< indexed zeropage addressing by the X index register
|
|
38
|
+
MOS65XX_AM_ZP_Y, ///< indexed zeropage addressing by the Y index register
|
|
39
|
+
MOS65XX_AM_ZP_REL, ///< zero page address, branch relative address
|
|
40
|
+
MOS65XX_AM_ZP_IND, ///< indirect zeropage addressing
|
|
41
|
+
MOS65XX_AM_ZP_X_IND, ///< indexed zeropage indirect addressing by the X index register
|
|
42
|
+
MOS65XX_AM_ZP_IND_Y, ///< indirect zeropage indexed addressing by the Y index register
|
|
43
|
+
MOS65XX_AM_ZP_IND_LONG, ///< zeropage indirect long addressing
|
|
44
|
+
MOS65XX_AM_ZP_IND_LONG_Y, ///< zeropage indirect long addressing indexed by Y register
|
|
45
|
+
MOS65XX_AM_ABS, ///< absolute addressing
|
|
46
|
+
MOS65XX_AM_ABS_X, ///< indexed absolute addressing by the X index register
|
|
47
|
+
MOS65XX_AM_ABS_Y, ///< indexed absolute addressing by the Y index register
|
|
48
|
+
MOS65XX_AM_ABS_IND, ///< absolute indirect addressing
|
|
49
|
+
MOS65XX_AM_ABS_X_IND, ///< indexed absolute indirect addressing by the X index register
|
|
50
|
+
MOS65XX_AM_ABS_IND_LONG, ///< absolute indirect long addressing
|
|
51
|
+
MOS65XX_AM_ABS_LONG, ///< absolute long address mode
|
|
52
|
+
MOS65XX_AM_ABS_LONG_X, ///< absolute long address mode, indexed by X register
|
|
53
|
+
MOS65XX_AM_SR, ///< stack relative addressing
|
|
54
|
+
MOS65XX_AM_SR_IND_Y, ///< indirect stack relative addressing indexed by the Y index register
|
|
55
|
+
} mos65xx_address_mode;
|
|
56
|
+
|
|
57
|
+
/// MOS65XX instruction
|
|
58
|
+
typedef enum mos65xx_insn {
|
|
59
|
+
MOS65XX_INS_INVALID = 0,
|
|
60
|
+
MOS65XX_INS_ADC,
|
|
61
|
+
MOS65XX_INS_AND,
|
|
62
|
+
MOS65XX_INS_ASL,
|
|
63
|
+
MOS65XX_INS_BBR,
|
|
64
|
+
MOS65XX_INS_BBS,
|
|
65
|
+
MOS65XX_INS_BCC,
|
|
66
|
+
MOS65XX_INS_BCS,
|
|
67
|
+
MOS65XX_INS_BEQ,
|
|
68
|
+
MOS65XX_INS_BIT,
|
|
69
|
+
MOS65XX_INS_BMI,
|
|
70
|
+
MOS65XX_INS_BNE,
|
|
71
|
+
MOS65XX_INS_BPL,
|
|
72
|
+
MOS65XX_INS_BRA,
|
|
73
|
+
MOS65XX_INS_BRK,
|
|
74
|
+
MOS65XX_INS_BRL,
|
|
75
|
+
MOS65XX_INS_BVC,
|
|
76
|
+
MOS65XX_INS_BVS,
|
|
77
|
+
MOS65XX_INS_CLC,
|
|
78
|
+
MOS65XX_INS_CLD,
|
|
79
|
+
MOS65XX_INS_CLI,
|
|
80
|
+
MOS65XX_INS_CLV,
|
|
81
|
+
MOS65XX_INS_CMP,
|
|
82
|
+
MOS65XX_INS_COP,
|
|
83
|
+
MOS65XX_INS_CPX,
|
|
84
|
+
MOS65XX_INS_CPY,
|
|
85
|
+
MOS65XX_INS_DEC,
|
|
86
|
+
MOS65XX_INS_DEX,
|
|
87
|
+
MOS65XX_INS_DEY,
|
|
88
|
+
MOS65XX_INS_EOR,
|
|
89
|
+
MOS65XX_INS_INC,
|
|
90
|
+
MOS65XX_INS_INX,
|
|
91
|
+
MOS65XX_INS_INY,
|
|
92
|
+
MOS65XX_INS_JML,
|
|
93
|
+
MOS65XX_INS_JMP,
|
|
94
|
+
MOS65XX_INS_JSL,
|
|
95
|
+
MOS65XX_INS_JSR,
|
|
96
|
+
MOS65XX_INS_LDA,
|
|
97
|
+
MOS65XX_INS_LDX,
|
|
98
|
+
MOS65XX_INS_LDY,
|
|
99
|
+
MOS65XX_INS_LSR,
|
|
100
|
+
MOS65XX_INS_MVN,
|
|
101
|
+
MOS65XX_INS_MVP,
|
|
102
|
+
MOS65XX_INS_NOP,
|
|
103
|
+
MOS65XX_INS_ORA,
|
|
104
|
+
MOS65XX_INS_PEA,
|
|
105
|
+
MOS65XX_INS_PEI,
|
|
106
|
+
MOS65XX_INS_PER,
|
|
107
|
+
MOS65XX_INS_PHA,
|
|
108
|
+
MOS65XX_INS_PHB,
|
|
109
|
+
MOS65XX_INS_PHD,
|
|
110
|
+
MOS65XX_INS_PHK,
|
|
111
|
+
MOS65XX_INS_PHP,
|
|
112
|
+
MOS65XX_INS_PHX,
|
|
113
|
+
MOS65XX_INS_PHY,
|
|
114
|
+
MOS65XX_INS_PLA,
|
|
115
|
+
MOS65XX_INS_PLB,
|
|
116
|
+
MOS65XX_INS_PLD,
|
|
117
|
+
MOS65XX_INS_PLP,
|
|
118
|
+
MOS65XX_INS_PLX,
|
|
119
|
+
MOS65XX_INS_PLY,
|
|
120
|
+
MOS65XX_INS_REP,
|
|
121
|
+
MOS65XX_INS_RMB,
|
|
122
|
+
MOS65XX_INS_ROL,
|
|
123
|
+
MOS65XX_INS_ROR,
|
|
124
|
+
MOS65XX_INS_RTI,
|
|
125
|
+
MOS65XX_INS_RTL,
|
|
126
|
+
MOS65XX_INS_RTS,
|
|
127
|
+
MOS65XX_INS_SBC,
|
|
128
|
+
MOS65XX_INS_SEC,
|
|
129
|
+
MOS65XX_INS_SED,
|
|
130
|
+
MOS65XX_INS_SEI,
|
|
131
|
+
MOS65XX_INS_SEP,
|
|
132
|
+
MOS65XX_INS_SMB,
|
|
133
|
+
MOS65XX_INS_STA,
|
|
134
|
+
MOS65XX_INS_STP,
|
|
135
|
+
MOS65XX_INS_STX,
|
|
136
|
+
MOS65XX_INS_STY,
|
|
137
|
+
MOS65XX_INS_STZ,
|
|
138
|
+
MOS65XX_INS_TAX,
|
|
139
|
+
MOS65XX_INS_TAY,
|
|
140
|
+
MOS65XX_INS_TCD,
|
|
141
|
+
MOS65XX_INS_TCS,
|
|
142
|
+
MOS65XX_INS_TDC,
|
|
143
|
+
MOS65XX_INS_TRB,
|
|
144
|
+
MOS65XX_INS_TSB,
|
|
145
|
+
MOS65XX_INS_TSC,
|
|
146
|
+
MOS65XX_INS_TSX,
|
|
147
|
+
MOS65XX_INS_TXA,
|
|
148
|
+
MOS65XX_INS_TXS,
|
|
149
|
+
MOS65XX_INS_TXY,
|
|
150
|
+
MOS65XX_INS_TYA,
|
|
151
|
+
MOS65XX_INS_TYX,
|
|
152
|
+
MOS65XX_INS_WAI,
|
|
153
|
+
MOS65XX_INS_WDM,
|
|
154
|
+
MOS65XX_INS_XBA,
|
|
155
|
+
MOS65XX_INS_XCE,
|
|
156
|
+
MOS65XX_INS_ENDING, // <-- mark the end of the list of instructions
|
|
157
|
+
} mos65xx_insn;
|
|
158
|
+
|
|
159
|
+
/// Group of MOS65XX instructions
|
|
160
|
+
typedef enum mos65xx_group_type {
|
|
161
|
+
MOS65XX_GRP_INVALID = 0, ///< CS_GRP_INVALID
|
|
162
|
+
MOS65XX_GRP_JUMP, ///< = CS_GRP_JUMP
|
|
163
|
+
MOS65XX_GRP_CALL, ///< = CS_GRP_RET
|
|
164
|
+
MOS65XX_GRP_RET, ///< = CS_GRP_RET
|
|
165
|
+
MOS65XX_GRP_INT, ///< = CS_GRP_INT
|
|
166
|
+
MOS65XX_GRP_IRET = 5, ///< = CS_GRP_IRET
|
|
167
|
+
MOS65XX_GRP_BRANCH_RELATIVE = 6, ///< = CS_GRP_BRANCH_RELATIVE
|
|
168
|
+
MOS65XX_GRP_ENDING,// <-- mark the end of the list of groups
|
|
169
|
+
} mos65xx_group_type;
|
|
170
|
+
|
|
171
|
+
/// Operand type for instruction's operands
|
|
172
|
+
typedef enum mos65xx_op_type {
|
|
173
|
+
MOS65XX_OP_INVALID = 0, ///< = CS_OP_INVALID (Uninitialized).
|
|
174
|
+
MOS65XX_OP_REG, ///< = CS_OP_REG (Register operand).
|
|
175
|
+
MOS65XX_OP_IMM, ///< = CS_OP_IMM (Immediate operand).
|
|
176
|
+
MOS65XX_OP_MEM, ///< = CS_OP_MEM (Memory operand).
|
|
177
|
+
} mos65xx_op_type;
|
|
178
|
+
|
|
179
|
+
/// Instruction operand
|
|
180
|
+
typedef struct cs_mos65xx_op {
|
|
181
|
+
mos65xx_op_type type; ///< operand type
|
|
182
|
+
union {
|
|
183
|
+
mos65xx_reg reg; ///< register value for REG operand
|
|
184
|
+
uint16_t imm; ///< immediate value for IMM operand
|
|
185
|
+
uint32_t mem; ///< address for MEM operand
|
|
186
|
+
};
|
|
187
|
+
} cs_mos65xx_op;
|
|
188
|
+
|
|
189
|
+
/// The MOS65XX address mode and it's operands
|
|
190
|
+
typedef struct cs_mos65xx {
|
|
191
|
+
mos65xx_address_mode am;
|
|
192
|
+
bool modifies_flags;
|
|
193
|
+
|
|
194
|
+
/// Number of operands of this instruction,
|
|
195
|
+
/// or 0 when instruction has no operand.
|
|
196
|
+
uint8_t op_count;
|
|
197
|
+
cs_mos65xx_op operands[3]; ///< operands for this instruction.
|
|
198
|
+
} cs_mos65xx;
|
|
199
|
+
|
|
200
|
+
#ifdef __cplusplus
|
|
201
|
+
}
|
|
202
|
+
#endif
|
|
203
|
+
|
|
204
|
+
#endif //CAPSTONE_MOS65XX_H
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
/* Capstone Disassembly Engine */
|
|
2
|
+
/* By Axel Souchet & Nguyen Anh Quynh, 2014 */
|
|
3
|
+
|
|
4
|
+
#ifndef CAPSTONE_PLATFORM_H
|
|
5
|
+
#define CAPSTONE_PLATFORM_H
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
// handle C99 issue (for pre-2013 VisualStudio)
|
|
9
|
+
#if !defined(__CYGWIN__) && !defined(__MINGW32__) && !defined(__MINGW64__) && (defined (WIN32) || defined (WIN64) || defined (_WIN32) || defined (_WIN64))
|
|
10
|
+
// MSVC
|
|
11
|
+
|
|
12
|
+
// stdbool.h
|
|
13
|
+
#if (_MSC_VER < 1800) || defined(_KERNEL_MODE)
|
|
14
|
+
// this system does not have stdbool.h
|
|
15
|
+
#ifndef __cplusplus
|
|
16
|
+
typedef unsigned char bool;
|
|
17
|
+
#define false 0
|
|
18
|
+
#define true 1
|
|
19
|
+
#endif // __cplusplus
|
|
20
|
+
|
|
21
|
+
#else
|
|
22
|
+
// VisualStudio 2013+ -> C99 is supported
|
|
23
|
+
#include <stdbool.h>
|
|
24
|
+
#endif // (_MSC_VER < 1800) || defined(_KERNEL_MODE)
|
|
25
|
+
|
|
26
|
+
#else
|
|
27
|
+
// not MSVC -> C99 is supported
|
|
28
|
+
#include <stdbool.h>
|
|
29
|
+
#endif // !defined(__CYGWIN__) && !defined(__MINGW32__) && !defined(__MINGW64__) && (defined (WIN32) || defined (WIN64) || defined (_WIN32) || defined (_WIN64))
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
// handle inttypes.h / stdint.h compatibility
|
|
33
|
+
#if defined(_WIN32_WCE) && (_WIN32_WCE < 0x800)
|
|
34
|
+
#include "windowsce/stdint.h"
|
|
35
|
+
#endif // defined(_WIN32_WCE) && (_WIN32_WCE < 0x800)
|
|
36
|
+
|
|
37
|
+
#if defined(CAPSTONE_HAS_OSXKERNEL) || (defined(_MSC_VER) && (_MSC_VER <= 1700 || defined(_KERNEL_MODE)))
|
|
38
|
+
// this system does not have inttypes.h
|
|
39
|
+
|
|
40
|
+
#if defined(_MSC_VER) && (_MSC_VER <= 1600 || defined(_KERNEL_MODE))
|
|
41
|
+
// this system does not have stdint.h
|
|
42
|
+
typedef signed char int8_t;
|
|
43
|
+
typedef signed short int16_t;
|
|
44
|
+
typedef signed int int32_t;
|
|
45
|
+
typedef unsigned char uint8_t;
|
|
46
|
+
typedef unsigned short uint16_t;
|
|
47
|
+
typedef unsigned int uint32_t;
|
|
48
|
+
typedef signed long long int64_t;
|
|
49
|
+
typedef unsigned long long uint64_t;
|
|
50
|
+
#endif // defined(_MSC_VER) && (_MSC_VER <= 1600 || defined(_KERNEL_MODE))
|
|
51
|
+
|
|
52
|
+
#if defined(_MSC_VER) && (_MSC_VER < 1600 || defined(_KERNEL_MODE))
|
|
53
|
+
#define INT8_MIN (-127i8 - 1)
|
|
54
|
+
#define INT16_MIN (-32767i16 - 1)
|
|
55
|
+
#define INT32_MIN (-2147483647i32 - 1)
|
|
56
|
+
#define INT64_MIN (-9223372036854775807i64 - 1)
|
|
57
|
+
#define INT8_MAX 127i8
|
|
58
|
+
#define INT16_MAX 32767i16
|
|
59
|
+
#define INT32_MAX 2147483647i32
|
|
60
|
+
#define INT64_MAX 9223372036854775807i64
|
|
61
|
+
#define UINT8_MAX 0xffui8
|
|
62
|
+
#define UINT16_MAX 0xffffui16
|
|
63
|
+
#define UINT32_MAX 0xffffffffui32
|
|
64
|
+
#define UINT64_MAX 0xffffffffffffffffui64
|
|
65
|
+
#endif // defined(_MSC_VER) && (_MSC_VER < 1600 || defined(_KERNEL_MODE))
|
|
66
|
+
|
|
67
|
+
#ifdef CAPSTONE_HAS_OSXKERNEL
|
|
68
|
+
// this system has stdint.h
|
|
69
|
+
#include <stdint.h>
|
|
70
|
+
#endif
|
|
71
|
+
|
|
72
|
+
#define __PRI_8_LENGTH_MODIFIER__ "hh"
|
|
73
|
+
#define __PRI_64_LENGTH_MODIFIER__ "ll"
|
|
74
|
+
|
|
75
|
+
#define PRId8 __PRI_8_LENGTH_MODIFIER__ "d"
|
|
76
|
+
#define PRIi8 __PRI_8_LENGTH_MODIFIER__ "i"
|
|
77
|
+
#define PRIo8 __PRI_8_LENGTH_MODIFIER__ "o"
|
|
78
|
+
#define PRIu8 __PRI_8_LENGTH_MODIFIER__ "u"
|
|
79
|
+
#define PRIx8 __PRI_8_LENGTH_MODIFIER__ "x"
|
|
80
|
+
#define PRIX8 __PRI_8_LENGTH_MODIFIER__ "X"
|
|
81
|
+
|
|
82
|
+
#define PRId16 "hd"
|
|
83
|
+
#define PRIi16 "hi"
|
|
84
|
+
#define PRIo16 "ho"
|
|
85
|
+
#define PRIu16 "hu"
|
|
86
|
+
#define PRIx16 "hx"
|
|
87
|
+
#define PRIX16 "hX"
|
|
88
|
+
|
|
89
|
+
#if defined(_MSC_VER) && _MSC_VER <= 1700
|
|
90
|
+
#define PRId32 "ld"
|
|
91
|
+
#define PRIi32 "li"
|
|
92
|
+
#define PRIo32 "lo"
|
|
93
|
+
#define PRIu32 "lu"
|
|
94
|
+
#define PRIx32 "lx"
|
|
95
|
+
#define PRIX32 "lX"
|
|
96
|
+
#else // OSX
|
|
97
|
+
#define PRId32 "d"
|
|
98
|
+
#define PRIi32 "i"
|
|
99
|
+
#define PRIo32 "o"
|
|
100
|
+
#define PRIu32 "u"
|
|
101
|
+
#define PRIx32 "x"
|
|
102
|
+
#define PRIX32 "X"
|
|
103
|
+
#endif // defined(_MSC_VER) && _MSC_VER <= 1700
|
|
104
|
+
|
|
105
|
+
#if defined(_MSC_VER) && _MSC_VER <= 1700
|
|
106
|
+
// redefine functions from inttypes.h used in cstool
|
|
107
|
+
#define strtoull _strtoui64
|
|
108
|
+
#endif
|
|
109
|
+
|
|
110
|
+
#define PRId64 __PRI_64_LENGTH_MODIFIER__ "d"
|
|
111
|
+
#define PRIi64 __PRI_64_LENGTH_MODIFIER__ "i"
|
|
112
|
+
#define PRIo64 __PRI_64_LENGTH_MODIFIER__ "o"
|
|
113
|
+
#define PRIu64 __PRI_64_LENGTH_MODIFIER__ "u"
|
|
114
|
+
#define PRIx64 __PRI_64_LENGTH_MODIFIER__ "x"
|
|
115
|
+
#define PRIX64 __PRI_64_LENGTH_MODIFIER__ "X"
|
|
116
|
+
|
|
117
|
+
#else
|
|
118
|
+
// this system has inttypes.h by default
|
|
119
|
+
#include <inttypes.h>
|
|
120
|
+
#endif // defined(CAPSTONE_HAS_OSXKERNEL) || (defined(_MSC_VER) && (_MSC_VER <= 1700 || defined(_KERNEL_MODE)))
|
|
121
|
+
|
|
122
|
+
#endif
|