Nguyen Anh Quynh
ee143c8c6c
fix a crashed bug in cs_close(): call destroy function before freeing handle's memory
11 years ago
Nguyen Anh Quynh
b265406960
cache insns for fast lookup in mapping.c. based on the idea of Dang Hoang Vu
11 years ago
Nguyen Anh Quynh
57ab21b558
rename some old header guards from SB to CS
11 years ago
Nguyen Anh Quynh
5f1f90c559
fix for the last commit, and make the test code no longer specify ppc code as 64bit
11 years ago
Nguyen Anh Quynh
5742b1b814
ppc: support for PPC32 was already in
11 years ago
Nguyen Anh Quynh
cef6b27e95
remove -x from PPC files
11 years ago
Nguyen Anh Quynh
19b0de3c8d
moving static doing_mem variable into cs_struct to guarantee thread-safe when handling memory operands
11 years ago
Nguyen Anh Quynh
4d22779f1c
add the missing include/ppc.h
11 years ago
Nguyen Anh Quynh
04ac9c3725
arm,arm64,mips,x86: rename PPC_getFeatureBits() to getFeatureBits()
11 years ago
Nguyen Anh Quynh
ec79f401b1
ppc: rename PPC_getFeatureBits() to getFeatureBits()
11 years ago
Nguyen Anh Quynh
9c5b328cdc
ppc: rename ppc_cc to ppc_bc
11 years ago
Nguyen Anh Quynh
bacf4c8156
add the missing arch/PowerPC directory
11 years ago
Nguyen Anh Quynh
42c6b1acc7
initial support for PPC
11 years ago
Nguyen Anh Quynh
ec4ead2c02
function pointers in arch_init[] should be able to report errors
11 years ago
Nguyen Anh Quynh
4fe224b1ed
change API cs_disasm_dyn(): break cs_insn into 2 structures, and put all details into new structure cs_detail. this break API compatibility
11 years ago
Nguyen Anh Quynh
2b53b20272
x86: patch in acc registers for xchg. bug reported by felixwilhelm
11 years ago
Nguyen Anh Quynh
f954f871e8
initialize all_arch in constructors
11 years ago
Nguyen Anh Quynh
d345839bce
support cs_option() for arm64 module
11 years ago
Nguyen Anh Quynh
39a42eddfb
Change the way of supporting arch modularization
...
- Always use libapstone.so as library name, no matter which archs are compiled in.
- Add new API cs_support() to check if a particular arch is supported.
- Change cs_version(): return hexical version which encodes both major & minor version.
the return value can be comparable.
- Bump API version to 1.1
11 years ago
Nguyen Anh Quynh
13a7d95763
add missing arch/*/module.c
11 years ago
Nguyen Anh Quynh
f185180436
cleaner implementation for arch modularization
11 years ago
Nguyen Anh Quynh
abc02059e3
make all module code static
11 years ago
danghvu
7711858da6
Minor fix credit
11 years ago
danghvu
29e01a6895
arch/*/include.h -> arch/*/module.h
11 years ago
danghvu
a2e7ef1b73
Fix coding style
11 years ago
danghvu
0b6ea044ff
Move cs_option dispatch into arch specific
11 years ago
danghvu
34d49d935b
Support compilation of individual arch
11 years ago
Nguyen Anh Quynh
e832bd8996
arm: support alias registers SB, SL, FP & IP
11 years ago
Nguyen Anh Quynh
2578d3b9e6
mips: use alias registers
11 years ago
Nguyen Anh Quynh
4626224a33
mips: update doing_mem status, regardless of detail option, since that is also used to avoid printing zero offset in mem reference
11 years ago
Nguyen Anh Quynh
3d5930f39e
arm: fix some int types and string specifiers
11 years ago
Nguyen Anh Quynh
d14d3973f4
coding style for C code
11 years ago
Nguyen Anh Quynh
7013f4c53d
mips: print negative immediate when it is negative
11 years ago
Nguyen Anh Quynh
1f44928d97
mips: fix for micromips
11 years ago
Nguyen Anh Quynh
ea8c5af48e
arm64: the left-over fix of the last commit
11 years ago
Nguyen Anh Quynh
748a70a50b
mips: turn off MicroMips by default
11 years ago
Nguyen Anh Quynh
4d3e852fbb
detail option: provide instruction id even when detail option is OFF
11 years ago
Nguyen Anh Quynh
a209e67f8a
support to turn on/off building instruction details
11 years ago
Nguyen Anh Quynh
bed90914e2
x86: calculate op_size properly in special cases regarding rax, eax, ax, al registers
11 years ago
Nguyen Anh Quynh
94990c9ef5
x86: print '0' rather than '-0'
11 years ago
Nguyen Anh Quynh
be90639c00
x86: properly translate immediate numbers based on their encoding. INT is the exception
11 years ago
Nguyen Anh Quynh
4fe4281f0d
x86: take care negative immediate (no prefix 0x) when print number greater than -10
11 years ago
Nguyen Anh Quynh
a4c16a6fd5
mips: print immediate under 10 without prefix 0x
11 years ago
Nguyen Anh Quynh
f22557ba88
x86: print immediate without prefix 0x if the number is under 10
11 years ago
Nguyen Anh Quynh
70bab7e61d
x86: cleaner fix for 16bit instruction with data override 'reverse'
11 years ago
Nguyen Anh Quynh
04da0090a7
x86: quick hack to fix 16bit issue with data override 'reverse'. this might fix bunch of bugs reported by Joxean & Pancake
11 years ago
Nguyen Anh Quynh
1f24586535
arm64: turn off debug output
11 years ago
Nguyen Anh Quynh
a01d1546d6
x86: handle outs instruction in 16bit mode
11 years ago
Nguyen Anh Quynh
4d85f29e08
x86: properly output insb/insd instruction with the right mode. bug reported by Pancake
11 years ago
Nguyen Anh Quynh
9fa7a6e326
x86: dirty fix for relative call for 16bit mode. need to be properly fixed in future. bug reported by Joxean and Pancake
11 years ago