crabstone 3.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/CHANGES.md +61 -0
- data/LICENSE +25 -0
- data/MANIFEST +312 -0
- data/README.md +103 -0
- data/Rakefile +27 -0
- data/bin/genconst +66 -0
- data/bin/genreg +99 -0
- data/crabstone.gemspec +27 -0
- data/examples/hello_world.rb +43 -0
- data/lib/arch/arm.rb +128 -0
- data/lib/arch/arm64.rb +167 -0
- data/lib/arch/arm64_const.rb +1055 -0
- data/lib/arch/arm64_registers.rb +295 -0
- data/lib/arch/arm_const.rb +777 -0
- data/lib/arch/arm_registers.rb +149 -0
- data/lib/arch/mips.rb +78 -0
- data/lib/arch/mips_const.rb +850 -0
- data/lib/arch/mips_registers.rb +208 -0
- data/lib/arch/ppc.rb +90 -0
- data/lib/arch/ppc_const.rb +1181 -0
- data/lib/arch/ppc_registers.rb +209 -0
- data/lib/arch/sparc.rb +79 -0
- data/lib/arch/sparc_const.rb +461 -0
- data/lib/arch/sparc_registers.rb +121 -0
- data/lib/arch/systemz.rb +79 -0
- data/lib/arch/sysz_const.rb +779 -0
- data/lib/arch/sysz_registers.rb +66 -0
- data/lib/arch/x86.rb +107 -0
- data/lib/arch/x86_const.rb +1698 -0
- data/lib/arch/x86_registers.rb +265 -0
- data/lib/arch/xcore.rb +78 -0
- data/lib/arch/xcore_const.rb +185 -0
- data/lib/arch/xcore_registers.rb +57 -0
- data/lib/crabstone.rb +564 -0
- data/test/MC/AArch64/basic-a64-instructions.s.cs +2014 -0
- data/test/MC/AArch64/gicv3-regs.s.cs +111 -0
- data/test/MC/AArch64/neon-2velem.s.cs +113 -0
- data/test/MC/AArch64/neon-3vdiff.s.cs +143 -0
- data/test/MC/AArch64/neon-aba-abd.s.cs +28 -0
- data/test/MC/AArch64/neon-across.s.cs +40 -0
- data/test/MC/AArch64/neon-add-pairwise.s.cs +11 -0
- data/test/MC/AArch64/neon-add-sub-instructions.s.cs +21 -0
- data/test/MC/AArch64/neon-bitwise-instructions.s.cs +17 -0
- data/test/MC/AArch64/neon-compare-instructions.s.cs +136 -0
- data/test/MC/AArch64/neon-crypto.s.cs +15 -0
- data/test/MC/AArch64/neon-extract.s.cs +3 -0
- data/test/MC/AArch64/neon-facge-facgt.s.cs +13 -0
- data/test/MC/AArch64/neon-frsqrt-frecp.s.cs +7 -0
- data/test/MC/AArch64/neon-halving-add-sub.s.cs +25 -0
- data/test/MC/AArch64/neon-max-min-pairwise.s.cs +37 -0
- data/test/MC/AArch64/neon-max-min.s.cs +37 -0
- data/test/MC/AArch64/neon-mla-mls-instructions.s.cs +19 -0
- data/test/MC/AArch64/neon-mov.s.cs +74 -0
- data/test/MC/AArch64/neon-mul-div-instructions.s.cs +24 -0
- data/test/MC/AArch64/neon-perm.s.cs +43 -0
- data/test/MC/AArch64/neon-rounding-halving-add.s.cs +13 -0
- data/test/MC/AArch64/neon-rounding-shift.s.cs +15 -0
- data/test/MC/AArch64/neon-saturating-add-sub.s.cs +29 -0
- data/test/MC/AArch64/neon-saturating-rounding-shift.s.cs +15 -0
- data/test/MC/AArch64/neon-saturating-shift.s.cs +15 -0
- data/test/MC/AArch64/neon-scalar-abs.s.cs +8 -0
- data/test/MC/AArch64/neon-scalar-add-sub.s.cs +3 -0
- data/test/MC/AArch64/neon-scalar-by-elem-mla.s.cs +13 -0
- data/test/MC/AArch64/neon-scalar-by-elem-mul.s.cs +13 -0
- data/test/MC/AArch64/neon-scalar-by-elem-saturating-mla.s.cs +15 -0
- data/test/MC/AArch64/neon-scalar-by-elem-saturating-mul.s.cs +18 -0
- data/test/MC/AArch64/neon-scalar-compare.s.cs +12 -0
- data/test/MC/AArch64/neon-scalar-cvt.s.cs +34 -0
- data/test/MC/AArch64/neon-scalar-dup.s.cs +23 -0
- data/test/MC/AArch64/neon-scalar-extract-narrow.s.cs +10 -0
- data/test/MC/AArch64/neon-scalar-fp-compare.s.cs +21 -0
- data/test/MC/AArch64/neon-scalar-mul.s.cs +13 -0
- data/test/MC/AArch64/neon-scalar-neg.s.cs +6 -0
- data/test/MC/AArch64/neon-scalar-recip.s.cs +11 -0
- data/test/MC/AArch64/neon-scalar-reduce-pairwise.s.cs +3 -0
- data/test/MC/AArch64/neon-scalar-rounding-shift.s.cs +3 -0
- data/test/MC/AArch64/neon-scalar-saturating-add-sub.s.cs +25 -0
- data/test/MC/AArch64/neon-scalar-saturating-rounding-shift.s.cs +9 -0
- data/test/MC/AArch64/neon-scalar-saturating-shift.s.cs +9 -0
- data/test/MC/AArch64/neon-scalar-shift-imm.s.cs +42 -0
- data/test/MC/AArch64/neon-scalar-shift.s.cs +3 -0
- data/test/MC/AArch64/neon-shift-left-long.s.cs +13 -0
- data/test/MC/AArch64/neon-shift.s.cs +22 -0
- data/test/MC/AArch64/neon-simd-copy.s.cs +42 -0
- data/test/MC/AArch64/neon-simd-ldst-multi-elem.s.cs +197 -0
- data/test/MC/AArch64/neon-simd-ldst-one-elem.s.cs +129 -0
- data/test/MC/AArch64/neon-simd-misc.s.cs +213 -0
- data/test/MC/AArch64/neon-simd-post-ldst-multi-elem.s.cs +107 -0
- data/test/MC/AArch64/neon-simd-shift.s.cs +151 -0
- data/test/MC/AArch64/neon-tbl.s.cs +21 -0
- data/test/MC/AArch64/trace-regs.s.cs +383 -0
- data/test/MC/ARM/arm-aliases.s.cs +7 -0
- data/test/MC/ARM/arm-arithmetic-aliases.s.cs +50 -0
- data/test/MC/ARM/arm-it-block.s.cs +2 -0
- data/test/MC/ARM/arm-memory-instructions.s.cs +138 -0
- data/test/MC/ARM/arm-shift-encoding.s.cs +50 -0
- data/test/MC/ARM/arm-thumb-trustzone.s.cs +3 -0
- data/test/MC/ARM/arm-trustzone.s.cs +3 -0
- data/test/MC/ARM/arm_addrmode2.s.cs +15 -0
- data/test/MC/ARM/arm_addrmode3.s.cs +9 -0
- data/test/MC/ARM/arm_instructions.s.cs +25 -0
- data/test/MC/ARM/basic-arm-instructions-v8.s.cs +10 -0
- data/test/MC/ARM/basic-arm-instructions.s.cs +997 -0
- data/test/MC/ARM/basic-thumb-instructions.s.cs +130 -0
- data/test/MC/ARM/basic-thumb2-instructions-v8.s.cs +1 -0
- data/test/MC/ARM/basic-thumb2-instructions.s.cs +1242 -0
- data/test/MC/ARM/crc32-thumb.s.cs +7 -0
- data/test/MC/ARM/crc32.s.cs +7 -0
- data/test/MC/ARM/dot-req.s.cs +3 -0
- data/test/MC/ARM/fp-armv8.s.cs +52 -0
- data/test/MC/ARM/idiv-thumb.s.cs +3 -0
- data/test/MC/ARM/idiv.s.cs +3 -0
- data/test/MC/ARM/load-store-acquire-release-v8-thumb.s.cs +15 -0
- data/test/MC/ARM/load-store-acquire-release-v8.s.cs +15 -0
- data/test/MC/ARM/mode-switch.s.cs +7 -0
- data/test/MC/ARM/neon-abs-encoding.s.cs +15 -0
- data/test/MC/ARM/neon-absdiff-encoding.s.cs +39 -0
- data/test/MC/ARM/neon-add-encoding.s.cs +119 -0
- data/test/MC/ARM/neon-bitcount-encoding.s.cs +15 -0
- data/test/MC/ARM/neon-bitwise-encoding.s.cs +126 -0
- data/test/MC/ARM/neon-cmp-encoding.s.cs +88 -0
- data/test/MC/ARM/neon-convert-encoding.s.cs +27 -0
- data/test/MC/ARM/neon-crypto.s.cs +16 -0
- data/test/MC/ARM/neon-dup-encoding.s.cs +13 -0
- data/test/MC/ARM/neon-minmax-encoding.s.cs +57 -0
- data/test/MC/ARM/neon-mov-encoding.s.cs +76 -0
- data/test/MC/ARM/neon-mul-accum-encoding.s.cs +39 -0
- data/test/MC/ARM/neon-mul-encoding.s.cs +72 -0
- data/test/MC/ARM/neon-neg-encoding.s.cs +15 -0
- data/test/MC/ARM/neon-pairwise-encoding.s.cs +47 -0
- data/test/MC/ARM/neon-reciprocal-encoding.s.cs +13 -0
- data/test/MC/ARM/neon-reverse-encoding.s.cs +13 -0
- data/test/MC/ARM/neon-satshift-encoding.s.cs +75 -0
- data/test/MC/ARM/neon-shift-encoding.s.cs +238 -0
- data/test/MC/ARM/neon-shiftaccum-encoding.s.cs +97 -0
- data/test/MC/ARM/neon-shuffle-encoding.s.cs +59 -0
- data/test/MC/ARM/neon-sub-encoding.s.cs +82 -0
- data/test/MC/ARM/neon-table-encoding.s.cs +9 -0
- data/test/MC/ARM/neon-v8.s.cs +38 -0
- data/test/MC/ARM/neon-vld-encoding.s.cs +213 -0
- data/test/MC/ARM/neon-vst-encoding.s.cs +120 -0
- data/test/MC/ARM/neon-vswp.s.cs +3 -0
- data/test/MC/ARM/neont2-abs-encoding.s.cs +15 -0
- data/test/MC/ARM/neont2-absdiff-encoding.s.cs +39 -0
- data/test/MC/ARM/neont2-add-encoding.s.cs +65 -0
- data/test/MC/ARM/neont2-bitcount-encoding.s.cs +15 -0
- data/test/MC/ARM/neont2-bitwise-encoding.s.cs +15 -0
- data/test/MC/ARM/neont2-cmp-encoding.s.cs +17 -0
- data/test/MC/ARM/neont2-convert-encoding.s.cs +19 -0
- data/test/MC/ARM/neont2-dup-encoding.s.cs +19 -0
- data/test/MC/ARM/neont2-minmax-encoding.s.cs +57 -0
- data/test/MC/ARM/neont2-mov-encoding.s.cs +58 -0
- data/test/MC/ARM/neont2-mul-accum-encoding.s.cs +41 -0
- data/test/MC/ARM/neont2-mul-encoding.s.cs +31 -0
- data/test/MC/ARM/neont2-neg-encoding.s.cs +15 -0
- data/test/MC/ARM/neont2-pairwise-encoding.s.cs +43 -0
- data/test/MC/ARM/neont2-reciprocal-encoding.s.cs +13 -0
- data/test/MC/ARM/neont2-reverse-encoding.s.cs +13 -0
- data/test/MC/ARM/neont2-satshift-encoding.s.cs +75 -0
- data/test/MC/ARM/neont2-shift-encoding.s.cs +80 -0
- data/test/MC/ARM/neont2-shiftaccum-encoding.s.cs +97 -0
- data/test/MC/ARM/neont2-shuffle-encoding.s.cs +23 -0
- data/test/MC/ARM/neont2-sub-encoding.s.cs +23 -0
- data/test/MC/ARM/neont2-table-encoding.s.cs +9 -0
- data/test/MC/ARM/neont2-vld-encoding.s.cs +51 -0
- data/test/MC/ARM/neont2-vst-encoding.s.cs +48 -0
- data/test/MC/ARM/simple-fp-encoding.s.cs +157 -0
- data/test/MC/ARM/thumb-fp-armv8.s.cs +51 -0
- data/test/MC/ARM/thumb-hints.s.cs +12 -0
- data/test/MC/ARM/thumb-neon-crypto.s.cs +16 -0
- data/test/MC/ARM/thumb-neon-v8.s.cs +38 -0
- data/test/MC/ARM/thumb-shift-encoding.s.cs +19 -0
- data/test/MC/ARM/thumb.s.cs +19 -0
- data/test/MC/ARM/thumb2-b.w-encodingT4.s.cs +2 -0
- data/test/MC/ARM/thumb2-branches.s.cs +85 -0
- data/test/MC/ARM/thumb2-mclass.s.cs +41 -0
- data/test/MC/ARM/thumb2-narrow-dp.ll.cs +379 -0
- data/test/MC/ARM/thumb2-pldw.s.cs +2 -0
- data/test/MC/ARM/vfp4-thumb.s.cs +13 -0
- data/test/MC/ARM/vfp4.s.cs +13 -0
- data/test/MC/ARM/vpush-vpop-thumb.s.cs +9 -0
- data/test/MC/ARM/vpush-vpop.s.cs +9 -0
- data/test/MC/Mips/hilo-addressing.s.cs +4 -0
- data/test/MC/Mips/micromips-alu-instructions-EB.s.cs +33 -0
- data/test/MC/Mips/micromips-alu-instructions.s.cs +33 -0
- data/test/MC/Mips/micromips-branch-instructions-EB.s.cs +11 -0
- data/test/MC/Mips/micromips-branch-instructions.s.cs +11 -0
- data/test/MC/Mips/micromips-expansions.s.cs +20 -0
- data/test/MC/Mips/micromips-jump-instructions-EB.s.cs +5 -0
- data/test/MC/Mips/micromips-jump-instructions.s.cs +6 -0
- data/test/MC/Mips/micromips-loadstore-instructions-EB.s.cs +9 -0
- data/test/MC/Mips/micromips-loadstore-instructions.s.cs +9 -0
- data/test/MC/Mips/micromips-loadstore-unaligned-EB.s.cs +5 -0
- data/test/MC/Mips/micromips-loadstore-unaligned.s.cs +5 -0
- data/test/MC/Mips/micromips-movcond-instructions-EB.s.cs +5 -0
- data/test/MC/Mips/micromips-movcond-instructions.s.cs +5 -0
- data/test/MC/Mips/micromips-multiply-instructions-EB.s.cs +5 -0
- data/test/MC/Mips/micromips-multiply-instructions.s.cs +5 -0
- data/test/MC/Mips/micromips-shift-instructions-EB.s.cs +9 -0
- data/test/MC/Mips/micromips-shift-instructions.s.cs +9 -0
- data/test/MC/Mips/micromips-trap-instructions-EB.s.cs +13 -0
- data/test/MC/Mips/micromips-trap-instructions.s.cs +13 -0
- data/test/MC/Mips/mips-alu-instructions.s.cs +53 -0
- data/test/MC/Mips/mips-control-instructions-64.s.cs +33 -0
- data/test/MC/Mips/mips-control-instructions.s.cs +33 -0
- data/test/MC/Mips/mips-coprocessor-encodings.s.cs +17 -0
- data/test/MC/Mips/mips-dsp-instructions.s.cs +43 -0
- data/test/MC/Mips/mips-expansions.s.cs +20 -0
- data/test/MC/Mips/mips-fpu-instructions.s.cs +93 -0
- data/test/MC/Mips/mips-jump-instructions.s.cs +1 -0
- data/test/MC/Mips/mips-memory-instructions.s.cs +17 -0
- data/test/MC/Mips/mips-register-names.s.cs +33 -0
- data/test/MC/Mips/mips64-alu-instructions.s.cs +47 -0
- data/test/MC/Mips/mips64-instructions.s.cs +3 -0
- data/test/MC/Mips/mips64-register-names.s.cs +33 -0
- data/test/MC/Mips/mips_directives.s.cs +12 -0
- data/test/MC/Mips/nabi-regs.s.cs +12 -0
- data/test/MC/Mips/set-at-directive.s.cs +6 -0
- data/test/MC/Mips/test_2r.s.cs +16 -0
- data/test/MC/Mips/test_2rf.s.cs +33 -0
- data/test/MC/Mips/test_3r.s.cs +243 -0
- data/test/MC/Mips/test_3rf.s.cs +83 -0
- data/test/MC/Mips/test_bit.s.cs +49 -0
- data/test/MC/Mips/test_cbranch.s.cs +11 -0
- data/test/MC/Mips/test_ctrlregs.s.cs +33 -0
- data/test/MC/Mips/test_elm.s.cs +16 -0
- data/test/MC/Mips/test_elm_insert.s.cs +4 -0
- data/test/MC/Mips/test_elm_insve.s.cs +5 -0
- data/test/MC/Mips/test_i10.s.cs +5 -0
- data/test/MC/Mips/test_i5.s.cs +45 -0
- data/test/MC/Mips/test_i8.s.cs +11 -0
- data/test/MC/Mips/test_lsa.s.cs +5 -0
- data/test/MC/Mips/test_mi10.s.cs +24 -0
- data/test/MC/Mips/test_vec.s.cs +8 -0
- data/test/MC/PowerPC/ppc64-encoding-bookII.s.cs +25 -0
- data/test/MC/PowerPC/ppc64-encoding-bookIII.s.cs +35 -0
- data/test/MC/PowerPC/ppc64-encoding-ext.s.cs +535 -0
- data/test/MC/PowerPC/ppc64-encoding-fp.s.cs +110 -0
- data/test/MC/PowerPC/ppc64-encoding-vmx.s.cs +170 -0
- data/test/MC/PowerPC/ppc64-encoding.s.cs +202 -0
- data/test/MC/PowerPC/ppc64-operands.s.cs +32 -0
- data/test/MC/README +6 -0
- data/test/MC/Sparc/sparc-alu-instructions.s.cs +47 -0
- data/test/MC/Sparc/sparc-atomic-instructions.s.cs +7 -0
- data/test/MC/Sparc/sparc-ctrl-instructions.s.cs +11 -0
- data/test/MC/Sparc/sparc-fp-instructions.s.cs +59 -0
- data/test/MC/Sparc/sparc-mem-instructions.s.cs +25 -0
- data/test/MC/Sparc/sparc-vis.s.cs +2 -0
- data/test/MC/Sparc/sparc64-alu-instructions.s.cs +13 -0
- data/test/MC/Sparc/sparc64-ctrl-instructions.s.cs +102 -0
- data/test/MC/Sparc/sparcv8-instructions.s.cs +7 -0
- data/test/MC/Sparc/sparcv9-instructions.s.cs +1 -0
- data/test/MC/SystemZ/insn-good-z196.s.cs +589 -0
- data/test/MC/SystemZ/insn-good.s.cs +2265 -0
- data/test/MC/SystemZ/regs-good.s.cs +45 -0
- data/test/MC/X86/3DNow.s.cs +29 -0
- data/test/MC/X86/address-size.s.cs +5 -0
- data/test/MC/X86/avx512-encodings.s.cs +12 -0
- data/test/MC/X86/intel-syntax-encoding.s.cs +30 -0
- data/test/MC/X86/x86-32-avx.s.cs +833 -0
- data/test/MC/X86/x86-32-fma3.s.cs +169 -0
- data/test/MC/X86/x86-32-ms-inline-asm.s.cs +27 -0
- data/test/MC/X86/x86_64-avx-clmul-encoding.s.cs +11 -0
- data/test/MC/X86/x86_64-avx-encoding.s.cs +1058 -0
- data/test/MC/X86/x86_64-bmi-encoding.s.cs +51 -0
- data/test/MC/X86/x86_64-encoding.s.cs +59 -0
- data/test/MC/X86/x86_64-fma3-encoding.s.cs +169 -0
- data/test/MC/X86/x86_64-fma4-encoding.s.cs +98 -0
- data/test/MC/X86/x86_64-hle-encoding.s.cs +3 -0
- data/test/MC/X86/x86_64-imm-widths.s.cs +27 -0
- data/test/MC/X86/x86_64-rand-encoding.s.cs +13 -0
- data/test/MC/X86/x86_64-rtm-encoding.s.cs +4 -0
- data/test/MC/X86/x86_64-sse4a.s.cs +1 -0
- data/test/MC/X86/x86_64-tbm-encoding.s.cs +40 -0
- data/test/MC/X86/x86_64-xop-encoding.s.cs +152 -0
- data/test/README +6 -0
- data/test/test.rb +205 -0
- data/test/test.rb.SPEC +235 -0
- data/test/test_arm.rb +202 -0
- data/test/test_arm.rb.SPEC +275 -0
- data/test/test_arm64.rb +150 -0
- data/test/test_arm64.rb.SPEC +116 -0
- data/test/test_detail.rb +228 -0
- data/test/test_detail.rb.SPEC +322 -0
- data/test/test_exhaustive.rb +80 -0
- data/test/test_mips.rb +118 -0
- data/test/test_mips.rb.SPEC +91 -0
- data/test/test_ppc.rb +137 -0
- data/test/test_ppc.rb.SPEC +84 -0
- data/test/test_sanity.rb +83 -0
- data/test/test_skipdata.rb +111 -0
- data/test/test_skipdata.rb.SPEC +58 -0
- data/test/test_sparc.rb +113 -0
- data/test/test_sparc.rb.SPEC +116 -0
- data/test/test_sysz.rb +111 -0
- data/test/test_sysz.rb.SPEC +61 -0
- data/test/test_x86.rb +189 -0
- data/test/test_x86.rb.SPEC +579 -0
- data/test/test_xcore.rb +100 -0
- data/test/test_xcore.rb.SPEC +75 -0
- metadata +393 -0
data/test/test_xcore.rb
ADDED
@@ -0,0 +1,100 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
# Library by Nguyen Anh Quynh
|
4
|
+
# Original binding by Nguyen Anh Quynh and Tan Sheng Di
|
5
|
+
# Additional binding work by Ben Nagy
|
6
|
+
# (c) 2013 COSEINC. All Rights Reserved.
|
7
|
+
|
8
|
+
require 'crabstone'
|
9
|
+
require 'stringio'
|
10
|
+
|
11
|
+
module TestXCore
|
12
|
+
|
13
|
+
XCORE_CODE = "\xfe\x0f\xfe\x17\x13\x17\xc6\xfe\xec\x17\x97\xf8\xec\x4f\x1f\xfd\xec\x37\x07\xf2\x45\x5b\xf9\xfa\x02\x06\x1b\x10\x09\xfd\xec\xa7"
|
14
|
+
|
15
|
+
include Crabstone
|
16
|
+
include Crabstone::XCore
|
17
|
+
|
18
|
+
@platforms = [
|
19
|
+
Hash[
|
20
|
+
'arch' => ARCH_XCORE,
|
21
|
+
'mode' => MODE_BIG_ENDIAN,
|
22
|
+
'code' => XCORE_CODE,
|
23
|
+
'comment' => "XCore"
|
24
|
+
],
|
25
|
+
]
|
26
|
+
|
27
|
+
def self.uint32 i
|
28
|
+
Integer(i) & 0xffffffff
|
29
|
+
end
|
30
|
+
|
31
|
+
def self.print_detail cs, insn, sio
|
32
|
+
if insn.op_count > 0
|
33
|
+
sio.puts "\top_count: #{insn.op_count}"
|
34
|
+
insn.operands.each_with_index do |op,idx|
|
35
|
+
case op[:type]
|
36
|
+
when OP_REG
|
37
|
+
sio.puts "\t\toperands[#{idx}].type: REG = #{cs.reg_name(op.value)}"
|
38
|
+
when OP_IMM
|
39
|
+
sio.puts "\t\toperands[#{idx}].type: IMM = 0x#{self.uint32(op.value).to_s(16)}"
|
40
|
+
when OP_MEM
|
41
|
+
sio.puts "\t\toperands[#{idx}].type: MEM"
|
42
|
+
if op.value[:base].nonzero?
|
43
|
+
sio.puts "\t\t\toperands[#{idx}].mem.base: REG = %s" % cs.reg_name(op.value[:base])
|
44
|
+
end
|
45
|
+
if op.value[:index].nonzero?
|
46
|
+
sio.puts "\t\t\toperands[#{idx}].mem.index: REG = %s" % cs.reg_name(op.value[:index])
|
47
|
+
end
|
48
|
+
if op.value[:disp].nonzero?
|
49
|
+
sio.puts "\t\t\toperands[#{idx}].mem.disp: 0x%x" % (self.uint32(op.value[:disp]))
|
50
|
+
end
|
51
|
+
if op.value[:direct] != 1
|
52
|
+
sio.puts "\t\t\toperands[#{idx}].mem.direct: -1"
|
53
|
+
end
|
54
|
+
end
|
55
|
+
end
|
56
|
+
end
|
57
|
+
sio.puts
|
58
|
+
end
|
59
|
+
|
60
|
+
ours = StringIO.new
|
61
|
+
|
62
|
+
begin
|
63
|
+
cs = Disassembler.new(0,0)
|
64
|
+
print "XCore Test: Capstone v #{cs.version.join('.')} - "
|
65
|
+
ensure
|
66
|
+
cs.close
|
67
|
+
end
|
68
|
+
|
69
|
+
#Test through all modes and architectures
|
70
|
+
@platforms.each do |p|
|
71
|
+
ours.puts "****************"
|
72
|
+
ours.puts "Platform: #{p['comment']}"
|
73
|
+
ours.puts "Code:#{p['code'].bytes.map {|b| "0x%.2x" % b}.join(' ')} "
|
74
|
+
ours.puts "Disasm:"
|
75
|
+
|
76
|
+
cs = Disassembler.new(p['arch'], p['mode'])
|
77
|
+
cs.decomposer = true
|
78
|
+
cache = nil
|
79
|
+
|
80
|
+
cs.disasm(p['code'], 0x1000).each {|insn|
|
81
|
+
ours.puts "0x#{insn.address.to_s(16)}:\t#{insn.mnemonic}\t#{insn.op_str}"
|
82
|
+
self.print_detail(cs, insn, ours)
|
83
|
+
cache = insn.address + insn.size
|
84
|
+
}
|
85
|
+
|
86
|
+
cs.close
|
87
|
+
ours.printf("0x%x:\n", cache)
|
88
|
+
ours.puts
|
89
|
+
end
|
90
|
+
|
91
|
+
ours.rewind
|
92
|
+
theirs = File.binread(__FILE__ + ".SPEC")
|
93
|
+
if ours.read == theirs
|
94
|
+
puts "#{__FILE__}: PASS"
|
95
|
+
else
|
96
|
+
ours.rewind
|
97
|
+
puts ours.read
|
98
|
+
puts "#{__FILE__}: FAIL"
|
99
|
+
end
|
100
|
+
end
|
@@ -0,0 +1,75 @@
|
|
1
|
+
****************
|
2
|
+
Platform: XCore
|
3
|
+
Code:0xfe 0x0f 0xfe 0x17 0x13 0x17 0xc6 0xfe 0xec 0x17 0x97 0xf8 0xec 0x4f 0x1f 0xfd 0xec 0x37 0x07 0xf2 0x45 0x5b 0xf9 0xfa 0x02 0x06 0x1b 0x10 0x09 0xfd 0xec 0xa7
|
4
|
+
Disasm:
|
5
|
+
0x1000: get r11, ed
|
6
|
+
op_count: 2
|
7
|
+
operands[0].type: REG = r11
|
8
|
+
operands[1].type: REG = ed
|
9
|
+
|
10
|
+
0x1002: ldw et, sp[4]
|
11
|
+
op_count: 2
|
12
|
+
operands[0].type: REG = et
|
13
|
+
operands[1].type: MEM
|
14
|
+
operands[1].mem.base: REG = sp
|
15
|
+
operands[1].mem.disp: 0x4
|
16
|
+
|
17
|
+
0x1004: setd res[r3], r4
|
18
|
+
op_count: 2
|
19
|
+
operands[0].type: MEM
|
20
|
+
operands[0].mem.base: REG = r3
|
21
|
+
operands[1].type: REG = r4
|
22
|
+
|
23
|
+
0x1006: init t[r2]:lr, r1
|
24
|
+
op_count: 2
|
25
|
+
operands[0].type: MEM
|
26
|
+
operands[0].mem.base: REG = r2
|
27
|
+
operands[0].mem.index: REG = lr
|
28
|
+
operands[1].type: REG = r1
|
29
|
+
|
30
|
+
0x100a: divu r9, r1, r3
|
31
|
+
op_count: 3
|
32
|
+
operands[0].type: REG = r9
|
33
|
+
operands[1].type: REG = r1
|
34
|
+
operands[2].type: REG = r3
|
35
|
+
|
36
|
+
0x100e: lda16 r9, r3[-r11]
|
37
|
+
op_count: 2
|
38
|
+
operands[0].type: REG = r9
|
39
|
+
operands[1].type: MEM
|
40
|
+
operands[1].mem.base: REG = r3
|
41
|
+
operands[1].mem.index: REG = r11
|
42
|
+
operands[1].mem.direct: -1
|
43
|
+
|
44
|
+
0x1012: ldw dp, dp[0x81c5]
|
45
|
+
op_count: 2
|
46
|
+
operands[0].type: REG = dp
|
47
|
+
operands[1].type: MEM
|
48
|
+
operands[1].mem.base: REG = dp
|
49
|
+
operands[1].mem.disp: 0x81c5
|
50
|
+
|
51
|
+
0x1016: lmul r11, r0, r2, r5, r8, r10
|
52
|
+
op_count: 6
|
53
|
+
operands[0].type: REG = r11
|
54
|
+
operands[1].type: REG = r0
|
55
|
+
operands[2].type: REG = r2
|
56
|
+
operands[3].type: REG = r5
|
57
|
+
operands[4].type: REG = r8
|
58
|
+
operands[5].type: REG = r10
|
59
|
+
|
60
|
+
0x101a: add r1, r2, r3
|
61
|
+
op_count: 3
|
62
|
+
operands[0].type: REG = r1
|
63
|
+
operands[1].type: REG = r2
|
64
|
+
operands[2].type: REG = r3
|
65
|
+
|
66
|
+
0x101c: ldaw r8, r2[-9]
|
67
|
+
op_count: 2
|
68
|
+
operands[0].type: REG = r8
|
69
|
+
operands[1].type: MEM
|
70
|
+
operands[1].mem.base: REG = r2
|
71
|
+
operands[1].mem.disp: 0x9
|
72
|
+
operands[1].mem.direct: -1
|
73
|
+
|
74
|
+
0x1020:
|
75
|
+
|
metadata
ADDED
@@ -0,0 +1,393 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: crabstone
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 3.0.3
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Ben Nagy
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2017-06-06 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: ffi
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: test-unit
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
description: |2+
|
42
|
+
|
43
|
+
Capstone is a disassembly engine written by Nguyen Anh Quynh, available here
|
44
|
+
https://github.com/aquynh/capstone. This is the Ruby FFI binding. We test
|
45
|
+
against MRI 2.0.0, 2.1.0 and JRuby 1.7.8. AFAIK it works with rubinius
|
46
|
+
2.2.1.
|
47
|
+
|
48
|
+
email: crabstone@ben.iagu.net
|
49
|
+
executables: []
|
50
|
+
extensions: []
|
51
|
+
extra_rdoc_files:
|
52
|
+
- CHANGES.md
|
53
|
+
- README.md
|
54
|
+
- MANIFEST
|
55
|
+
files:
|
56
|
+
- CHANGES.md
|
57
|
+
- LICENSE
|
58
|
+
- MANIFEST
|
59
|
+
- README.md
|
60
|
+
- Rakefile
|
61
|
+
- bin/genconst
|
62
|
+
- bin/genreg
|
63
|
+
- crabstone.gemspec
|
64
|
+
- examples/hello_world.rb
|
65
|
+
- lib/arch/arm.rb
|
66
|
+
- lib/arch/arm64.rb
|
67
|
+
- lib/arch/arm64_const.rb
|
68
|
+
- lib/arch/arm64_registers.rb
|
69
|
+
- lib/arch/arm_const.rb
|
70
|
+
- lib/arch/arm_registers.rb
|
71
|
+
- lib/arch/mips.rb
|
72
|
+
- lib/arch/mips_const.rb
|
73
|
+
- lib/arch/mips_registers.rb
|
74
|
+
- lib/arch/ppc.rb
|
75
|
+
- lib/arch/ppc_const.rb
|
76
|
+
- lib/arch/ppc_registers.rb
|
77
|
+
- lib/arch/sparc.rb
|
78
|
+
- lib/arch/sparc_const.rb
|
79
|
+
- lib/arch/sparc_registers.rb
|
80
|
+
- lib/arch/systemz.rb
|
81
|
+
- lib/arch/sysz_const.rb
|
82
|
+
- lib/arch/sysz_registers.rb
|
83
|
+
- lib/arch/x86.rb
|
84
|
+
- lib/arch/x86_const.rb
|
85
|
+
- lib/arch/x86_registers.rb
|
86
|
+
- lib/arch/xcore.rb
|
87
|
+
- lib/arch/xcore_const.rb
|
88
|
+
- lib/arch/xcore_registers.rb
|
89
|
+
- lib/crabstone.rb
|
90
|
+
- test/MC/AArch64/basic-a64-instructions.s.cs
|
91
|
+
- test/MC/AArch64/gicv3-regs.s.cs
|
92
|
+
- test/MC/AArch64/neon-2velem.s.cs
|
93
|
+
- test/MC/AArch64/neon-3vdiff.s.cs
|
94
|
+
- test/MC/AArch64/neon-aba-abd.s.cs
|
95
|
+
- test/MC/AArch64/neon-across.s.cs
|
96
|
+
- test/MC/AArch64/neon-add-pairwise.s.cs
|
97
|
+
- test/MC/AArch64/neon-add-sub-instructions.s.cs
|
98
|
+
- test/MC/AArch64/neon-bitwise-instructions.s.cs
|
99
|
+
- test/MC/AArch64/neon-compare-instructions.s.cs
|
100
|
+
- test/MC/AArch64/neon-crypto.s.cs
|
101
|
+
- test/MC/AArch64/neon-extract.s.cs
|
102
|
+
- test/MC/AArch64/neon-facge-facgt.s.cs
|
103
|
+
- test/MC/AArch64/neon-frsqrt-frecp.s.cs
|
104
|
+
- test/MC/AArch64/neon-halving-add-sub.s.cs
|
105
|
+
- test/MC/AArch64/neon-max-min-pairwise.s.cs
|
106
|
+
- test/MC/AArch64/neon-max-min.s.cs
|
107
|
+
- test/MC/AArch64/neon-mla-mls-instructions.s.cs
|
108
|
+
- test/MC/AArch64/neon-mov.s.cs
|
109
|
+
- test/MC/AArch64/neon-mul-div-instructions.s.cs
|
110
|
+
- test/MC/AArch64/neon-perm.s.cs
|
111
|
+
- test/MC/AArch64/neon-rounding-halving-add.s.cs
|
112
|
+
- test/MC/AArch64/neon-rounding-shift.s.cs
|
113
|
+
- test/MC/AArch64/neon-saturating-add-sub.s.cs
|
114
|
+
- test/MC/AArch64/neon-saturating-rounding-shift.s.cs
|
115
|
+
- test/MC/AArch64/neon-saturating-shift.s.cs
|
116
|
+
- test/MC/AArch64/neon-scalar-abs.s.cs
|
117
|
+
- test/MC/AArch64/neon-scalar-add-sub.s.cs
|
118
|
+
- test/MC/AArch64/neon-scalar-by-elem-mla.s.cs
|
119
|
+
- test/MC/AArch64/neon-scalar-by-elem-mul.s.cs
|
120
|
+
- test/MC/AArch64/neon-scalar-by-elem-saturating-mla.s.cs
|
121
|
+
- test/MC/AArch64/neon-scalar-by-elem-saturating-mul.s.cs
|
122
|
+
- test/MC/AArch64/neon-scalar-compare.s.cs
|
123
|
+
- test/MC/AArch64/neon-scalar-cvt.s.cs
|
124
|
+
- test/MC/AArch64/neon-scalar-dup.s.cs
|
125
|
+
- test/MC/AArch64/neon-scalar-extract-narrow.s.cs
|
126
|
+
- test/MC/AArch64/neon-scalar-fp-compare.s.cs
|
127
|
+
- test/MC/AArch64/neon-scalar-mul.s.cs
|
128
|
+
- test/MC/AArch64/neon-scalar-neg.s.cs
|
129
|
+
- test/MC/AArch64/neon-scalar-recip.s.cs
|
130
|
+
- test/MC/AArch64/neon-scalar-reduce-pairwise.s.cs
|
131
|
+
- test/MC/AArch64/neon-scalar-rounding-shift.s.cs
|
132
|
+
- test/MC/AArch64/neon-scalar-saturating-add-sub.s.cs
|
133
|
+
- test/MC/AArch64/neon-scalar-saturating-rounding-shift.s.cs
|
134
|
+
- test/MC/AArch64/neon-scalar-saturating-shift.s.cs
|
135
|
+
- test/MC/AArch64/neon-scalar-shift-imm.s.cs
|
136
|
+
- test/MC/AArch64/neon-scalar-shift.s.cs
|
137
|
+
- test/MC/AArch64/neon-shift-left-long.s.cs
|
138
|
+
- test/MC/AArch64/neon-shift.s.cs
|
139
|
+
- test/MC/AArch64/neon-simd-copy.s.cs
|
140
|
+
- test/MC/AArch64/neon-simd-ldst-multi-elem.s.cs
|
141
|
+
- test/MC/AArch64/neon-simd-ldst-one-elem.s.cs
|
142
|
+
- test/MC/AArch64/neon-simd-misc.s.cs
|
143
|
+
- test/MC/AArch64/neon-simd-post-ldst-multi-elem.s.cs
|
144
|
+
- test/MC/AArch64/neon-simd-shift.s.cs
|
145
|
+
- test/MC/AArch64/neon-tbl.s.cs
|
146
|
+
- test/MC/AArch64/trace-regs.s.cs
|
147
|
+
- test/MC/ARM/arm-aliases.s.cs
|
148
|
+
- test/MC/ARM/arm-arithmetic-aliases.s.cs
|
149
|
+
- test/MC/ARM/arm-it-block.s.cs
|
150
|
+
- test/MC/ARM/arm-memory-instructions.s.cs
|
151
|
+
- test/MC/ARM/arm-shift-encoding.s.cs
|
152
|
+
- test/MC/ARM/arm-thumb-trustzone.s.cs
|
153
|
+
- test/MC/ARM/arm-trustzone.s.cs
|
154
|
+
- test/MC/ARM/arm_addrmode2.s.cs
|
155
|
+
- test/MC/ARM/arm_addrmode3.s.cs
|
156
|
+
- test/MC/ARM/arm_instructions.s.cs
|
157
|
+
- test/MC/ARM/basic-arm-instructions-v8.s.cs
|
158
|
+
- test/MC/ARM/basic-arm-instructions.s.cs
|
159
|
+
- test/MC/ARM/basic-thumb-instructions.s.cs
|
160
|
+
- test/MC/ARM/basic-thumb2-instructions-v8.s.cs
|
161
|
+
- test/MC/ARM/basic-thumb2-instructions.s.cs
|
162
|
+
- test/MC/ARM/crc32-thumb.s.cs
|
163
|
+
- test/MC/ARM/crc32.s.cs
|
164
|
+
- test/MC/ARM/dot-req.s.cs
|
165
|
+
- test/MC/ARM/fp-armv8.s.cs
|
166
|
+
- test/MC/ARM/idiv-thumb.s.cs
|
167
|
+
- test/MC/ARM/idiv.s.cs
|
168
|
+
- test/MC/ARM/load-store-acquire-release-v8-thumb.s.cs
|
169
|
+
- test/MC/ARM/load-store-acquire-release-v8.s.cs
|
170
|
+
- test/MC/ARM/mode-switch.s.cs
|
171
|
+
- test/MC/ARM/neon-abs-encoding.s.cs
|
172
|
+
- test/MC/ARM/neon-absdiff-encoding.s.cs
|
173
|
+
- test/MC/ARM/neon-add-encoding.s.cs
|
174
|
+
- test/MC/ARM/neon-bitcount-encoding.s.cs
|
175
|
+
- test/MC/ARM/neon-bitwise-encoding.s.cs
|
176
|
+
- test/MC/ARM/neon-cmp-encoding.s.cs
|
177
|
+
- test/MC/ARM/neon-convert-encoding.s.cs
|
178
|
+
- test/MC/ARM/neon-crypto.s.cs
|
179
|
+
- test/MC/ARM/neon-dup-encoding.s.cs
|
180
|
+
- test/MC/ARM/neon-minmax-encoding.s.cs
|
181
|
+
- test/MC/ARM/neon-mov-encoding.s.cs
|
182
|
+
- test/MC/ARM/neon-mul-accum-encoding.s.cs
|
183
|
+
- test/MC/ARM/neon-mul-encoding.s.cs
|
184
|
+
- test/MC/ARM/neon-neg-encoding.s.cs
|
185
|
+
- test/MC/ARM/neon-pairwise-encoding.s.cs
|
186
|
+
- test/MC/ARM/neon-reciprocal-encoding.s.cs
|
187
|
+
- test/MC/ARM/neon-reverse-encoding.s.cs
|
188
|
+
- test/MC/ARM/neon-satshift-encoding.s.cs
|
189
|
+
- test/MC/ARM/neon-shift-encoding.s.cs
|
190
|
+
- test/MC/ARM/neon-shiftaccum-encoding.s.cs
|
191
|
+
- test/MC/ARM/neon-shuffle-encoding.s.cs
|
192
|
+
- test/MC/ARM/neon-sub-encoding.s.cs
|
193
|
+
- test/MC/ARM/neon-table-encoding.s.cs
|
194
|
+
- test/MC/ARM/neon-v8.s.cs
|
195
|
+
- test/MC/ARM/neon-vld-encoding.s.cs
|
196
|
+
- test/MC/ARM/neon-vst-encoding.s.cs
|
197
|
+
- test/MC/ARM/neon-vswp.s.cs
|
198
|
+
- test/MC/ARM/neont2-abs-encoding.s.cs
|
199
|
+
- test/MC/ARM/neont2-absdiff-encoding.s.cs
|
200
|
+
- test/MC/ARM/neont2-add-encoding.s.cs
|
201
|
+
- test/MC/ARM/neont2-bitcount-encoding.s.cs
|
202
|
+
- test/MC/ARM/neont2-bitwise-encoding.s.cs
|
203
|
+
- test/MC/ARM/neont2-cmp-encoding.s.cs
|
204
|
+
- test/MC/ARM/neont2-convert-encoding.s.cs
|
205
|
+
- test/MC/ARM/neont2-dup-encoding.s.cs
|
206
|
+
- test/MC/ARM/neont2-minmax-encoding.s.cs
|
207
|
+
- test/MC/ARM/neont2-mov-encoding.s.cs
|
208
|
+
- test/MC/ARM/neont2-mul-accum-encoding.s.cs
|
209
|
+
- test/MC/ARM/neont2-mul-encoding.s.cs
|
210
|
+
- test/MC/ARM/neont2-neg-encoding.s.cs
|
211
|
+
- test/MC/ARM/neont2-pairwise-encoding.s.cs
|
212
|
+
- test/MC/ARM/neont2-reciprocal-encoding.s.cs
|
213
|
+
- test/MC/ARM/neont2-reverse-encoding.s.cs
|
214
|
+
- test/MC/ARM/neont2-satshift-encoding.s.cs
|
215
|
+
- test/MC/ARM/neont2-shift-encoding.s.cs
|
216
|
+
- test/MC/ARM/neont2-shiftaccum-encoding.s.cs
|
217
|
+
- test/MC/ARM/neont2-shuffle-encoding.s.cs
|
218
|
+
- test/MC/ARM/neont2-sub-encoding.s.cs
|
219
|
+
- test/MC/ARM/neont2-table-encoding.s.cs
|
220
|
+
- test/MC/ARM/neont2-vld-encoding.s.cs
|
221
|
+
- test/MC/ARM/neont2-vst-encoding.s.cs
|
222
|
+
- test/MC/ARM/simple-fp-encoding.s.cs
|
223
|
+
- test/MC/ARM/thumb-fp-armv8.s.cs
|
224
|
+
- test/MC/ARM/thumb-hints.s.cs
|
225
|
+
- test/MC/ARM/thumb-neon-crypto.s.cs
|
226
|
+
- test/MC/ARM/thumb-neon-v8.s.cs
|
227
|
+
- test/MC/ARM/thumb-shift-encoding.s.cs
|
228
|
+
- test/MC/ARM/thumb.s.cs
|
229
|
+
- test/MC/ARM/thumb2-b.w-encodingT4.s.cs
|
230
|
+
- test/MC/ARM/thumb2-branches.s.cs
|
231
|
+
- test/MC/ARM/thumb2-mclass.s.cs
|
232
|
+
- test/MC/ARM/thumb2-narrow-dp.ll.cs
|
233
|
+
- test/MC/ARM/thumb2-pldw.s.cs
|
234
|
+
- test/MC/ARM/vfp4-thumb.s.cs
|
235
|
+
- test/MC/ARM/vfp4.s.cs
|
236
|
+
- test/MC/ARM/vpush-vpop-thumb.s.cs
|
237
|
+
- test/MC/ARM/vpush-vpop.s.cs
|
238
|
+
- test/MC/Mips/hilo-addressing.s.cs
|
239
|
+
- test/MC/Mips/micromips-alu-instructions-EB.s.cs
|
240
|
+
- test/MC/Mips/micromips-alu-instructions.s.cs
|
241
|
+
- test/MC/Mips/micromips-branch-instructions-EB.s.cs
|
242
|
+
- test/MC/Mips/micromips-branch-instructions.s.cs
|
243
|
+
- test/MC/Mips/micromips-expansions.s.cs
|
244
|
+
- test/MC/Mips/micromips-jump-instructions-EB.s.cs
|
245
|
+
- test/MC/Mips/micromips-jump-instructions.s.cs
|
246
|
+
- test/MC/Mips/micromips-loadstore-instructions-EB.s.cs
|
247
|
+
- test/MC/Mips/micromips-loadstore-instructions.s.cs
|
248
|
+
- test/MC/Mips/micromips-loadstore-unaligned-EB.s.cs
|
249
|
+
- test/MC/Mips/micromips-loadstore-unaligned.s.cs
|
250
|
+
- test/MC/Mips/micromips-movcond-instructions-EB.s.cs
|
251
|
+
- test/MC/Mips/micromips-movcond-instructions.s.cs
|
252
|
+
- test/MC/Mips/micromips-multiply-instructions-EB.s.cs
|
253
|
+
- test/MC/Mips/micromips-multiply-instructions.s.cs
|
254
|
+
- test/MC/Mips/micromips-shift-instructions-EB.s.cs
|
255
|
+
- test/MC/Mips/micromips-shift-instructions.s.cs
|
256
|
+
- test/MC/Mips/micromips-trap-instructions-EB.s.cs
|
257
|
+
- test/MC/Mips/micromips-trap-instructions.s.cs
|
258
|
+
- test/MC/Mips/mips-alu-instructions.s.cs
|
259
|
+
- test/MC/Mips/mips-control-instructions-64.s.cs
|
260
|
+
- test/MC/Mips/mips-control-instructions.s.cs
|
261
|
+
- test/MC/Mips/mips-coprocessor-encodings.s.cs
|
262
|
+
- test/MC/Mips/mips-dsp-instructions.s.cs
|
263
|
+
- test/MC/Mips/mips-expansions.s.cs
|
264
|
+
- test/MC/Mips/mips-fpu-instructions.s.cs
|
265
|
+
- test/MC/Mips/mips-jump-instructions.s.cs
|
266
|
+
- test/MC/Mips/mips-memory-instructions.s.cs
|
267
|
+
- test/MC/Mips/mips-register-names.s.cs
|
268
|
+
- test/MC/Mips/mips64-alu-instructions.s.cs
|
269
|
+
- test/MC/Mips/mips64-instructions.s.cs
|
270
|
+
- test/MC/Mips/mips64-register-names.s.cs
|
271
|
+
- test/MC/Mips/mips_directives.s.cs
|
272
|
+
- test/MC/Mips/nabi-regs.s.cs
|
273
|
+
- test/MC/Mips/set-at-directive.s.cs
|
274
|
+
- test/MC/Mips/test_2r.s.cs
|
275
|
+
- test/MC/Mips/test_2rf.s.cs
|
276
|
+
- test/MC/Mips/test_3r.s.cs
|
277
|
+
- test/MC/Mips/test_3rf.s.cs
|
278
|
+
- test/MC/Mips/test_bit.s.cs
|
279
|
+
- test/MC/Mips/test_cbranch.s.cs
|
280
|
+
- test/MC/Mips/test_ctrlregs.s.cs
|
281
|
+
- test/MC/Mips/test_elm.s.cs
|
282
|
+
- test/MC/Mips/test_elm_insert.s.cs
|
283
|
+
- test/MC/Mips/test_elm_insve.s.cs
|
284
|
+
- test/MC/Mips/test_i10.s.cs
|
285
|
+
- test/MC/Mips/test_i5.s.cs
|
286
|
+
- test/MC/Mips/test_i8.s.cs
|
287
|
+
- test/MC/Mips/test_lsa.s.cs
|
288
|
+
- test/MC/Mips/test_mi10.s.cs
|
289
|
+
- test/MC/Mips/test_vec.s.cs
|
290
|
+
- test/MC/PowerPC/ppc64-encoding-bookII.s.cs
|
291
|
+
- test/MC/PowerPC/ppc64-encoding-bookIII.s.cs
|
292
|
+
- test/MC/PowerPC/ppc64-encoding-ext.s.cs
|
293
|
+
- test/MC/PowerPC/ppc64-encoding-fp.s.cs
|
294
|
+
- test/MC/PowerPC/ppc64-encoding-vmx.s.cs
|
295
|
+
- test/MC/PowerPC/ppc64-encoding.s.cs
|
296
|
+
- test/MC/PowerPC/ppc64-operands.s.cs
|
297
|
+
- test/MC/README
|
298
|
+
- test/MC/Sparc/sparc-alu-instructions.s.cs
|
299
|
+
- test/MC/Sparc/sparc-atomic-instructions.s.cs
|
300
|
+
- test/MC/Sparc/sparc-ctrl-instructions.s.cs
|
301
|
+
- test/MC/Sparc/sparc-fp-instructions.s.cs
|
302
|
+
- test/MC/Sparc/sparc-mem-instructions.s.cs
|
303
|
+
- test/MC/Sparc/sparc-vis.s.cs
|
304
|
+
- test/MC/Sparc/sparc64-alu-instructions.s.cs
|
305
|
+
- test/MC/Sparc/sparc64-ctrl-instructions.s.cs
|
306
|
+
- test/MC/Sparc/sparcv8-instructions.s.cs
|
307
|
+
- test/MC/Sparc/sparcv9-instructions.s.cs
|
308
|
+
- test/MC/SystemZ/insn-good-z196.s.cs
|
309
|
+
- test/MC/SystemZ/insn-good.s.cs
|
310
|
+
- test/MC/SystemZ/regs-good.s.cs
|
311
|
+
- test/MC/X86/3DNow.s.cs
|
312
|
+
- test/MC/X86/address-size.s.cs
|
313
|
+
- test/MC/X86/avx512-encodings.s.cs
|
314
|
+
- test/MC/X86/intel-syntax-encoding.s.cs
|
315
|
+
- test/MC/X86/x86-32-avx.s.cs
|
316
|
+
- test/MC/X86/x86-32-fma3.s.cs
|
317
|
+
- test/MC/X86/x86-32-ms-inline-asm.s.cs
|
318
|
+
- test/MC/X86/x86_64-avx-clmul-encoding.s.cs
|
319
|
+
- test/MC/X86/x86_64-avx-encoding.s.cs
|
320
|
+
- test/MC/X86/x86_64-bmi-encoding.s.cs
|
321
|
+
- test/MC/X86/x86_64-encoding.s.cs
|
322
|
+
- test/MC/X86/x86_64-fma3-encoding.s.cs
|
323
|
+
- test/MC/X86/x86_64-fma4-encoding.s.cs
|
324
|
+
- test/MC/X86/x86_64-hle-encoding.s.cs
|
325
|
+
- test/MC/X86/x86_64-imm-widths.s.cs
|
326
|
+
- test/MC/X86/x86_64-rand-encoding.s.cs
|
327
|
+
- test/MC/X86/x86_64-rtm-encoding.s.cs
|
328
|
+
- test/MC/X86/x86_64-sse4a.s.cs
|
329
|
+
- test/MC/X86/x86_64-tbm-encoding.s.cs
|
330
|
+
- test/MC/X86/x86_64-xop-encoding.s.cs
|
331
|
+
- test/README
|
332
|
+
- test/test.rb
|
333
|
+
- test/test.rb.SPEC
|
334
|
+
- test/test_arm.rb
|
335
|
+
- test/test_arm.rb.SPEC
|
336
|
+
- test/test_arm64.rb
|
337
|
+
- test/test_arm64.rb.SPEC
|
338
|
+
- test/test_detail.rb
|
339
|
+
- test/test_detail.rb.SPEC
|
340
|
+
- test/test_exhaustive.rb
|
341
|
+
- test/test_mips.rb
|
342
|
+
- test/test_mips.rb.SPEC
|
343
|
+
- test/test_ppc.rb
|
344
|
+
- test/test_ppc.rb.SPEC
|
345
|
+
- test/test_sanity.rb
|
346
|
+
- test/test_skipdata.rb
|
347
|
+
- test/test_skipdata.rb.SPEC
|
348
|
+
- test/test_sparc.rb
|
349
|
+
- test/test_sparc.rb.SPEC
|
350
|
+
- test/test_sysz.rb
|
351
|
+
- test/test_sysz.rb.SPEC
|
352
|
+
- test/test_x86.rb
|
353
|
+
- test/test_x86.rb.SPEC
|
354
|
+
- test/test_xcore.rb
|
355
|
+
- test/test_xcore.rb.SPEC
|
356
|
+
homepage: https://github.com/bnagy/crabstone
|
357
|
+
licenses:
|
358
|
+
- BSD
|
359
|
+
metadata: {}
|
360
|
+
post_install_message:
|
361
|
+
rdoc_options: []
|
362
|
+
require_paths:
|
363
|
+
- lib
|
364
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
365
|
+
requirements:
|
366
|
+
- - ">="
|
367
|
+
- !ruby/object:Gem::Version
|
368
|
+
version: '0'
|
369
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
370
|
+
requirements:
|
371
|
+
- - ">="
|
372
|
+
- !ruby/object:Gem::Version
|
373
|
+
version: '0'
|
374
|
+
requirements: []
|
375
|
+
rubyforge_project:
|
376
|
+
rubygems_version: 2.5.2
|
377
|
+
signing_key:
|
378
|
+
specification_version: 4
|
379
|
+
summary: Ruby FFI bindings for the capstone disassembly engine
|
380
|
+
test_files:
|
381
|
+
- test/test_arm64.rb
|
382
|
+
- test/test_detail.rb
|
383
|
+
- test/test_xcore.rb
|
384
|
+
- test/test_x86.rb
|
385
|
+
- test/test.rb
|
386
|
+
- test/test_sanity.rb
|
387
|
+
- test/test_exhaustive.rb
|
388
|
+
- test/test_sysz.rb
|
389
|
+
- test/test_ppc.rb
|
390
|
+
- test/test_mips.rb
|
391
|
+
- test/test_sparc.rb
|
392
|
+
- test/test_skipdata.rb
|
393
|
+
- test/test_arm.rb
|