Nguyen Anh Quynh
4d22779f1c
add the missing include/ppc.h
2013-12-31 21:01:01 +08:00
Nguyen Anh Quynh
04ac9c3725
arm,arm64,mips,x86: rename PPC_getFeatureBits() to getFeatureBits()
2013-12-31 18:15:12 +08:00
Nguyen Anh Quynh
ec79f401b1
ppc: rename PPC_getFeatureBits() to getFeatureBits()
2013-12-31 18:00:20 +08:00
Nguyen Anh Quynh
9c5b328cdc
ppc: rename ppc_cc to ppc_bc
2013-12-30 00:52:55 +08:00
Nguyen Anh Quynh
bacf4c8156
add the missing arch/PowerPC directory
2013-12-30 00:29:32 +08:00
Nguyen Anh Quynh
42c6b1acc7
initial support for PPC
2013-12-30 00:15:25 +08:00
Nguyen Anh Quynh
ec4ead2c02
function pointers in arch_init[] should be able to report errors
2013-12-28 14:34:21 +08:00
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
2013-12-24 16:49:36 +08:00
Nguyen Anh Quynh
2b53b20272
x86: patch in acc registers for xchg. bug reported by felixwilhelm
2013-12-24 09:09:20 +08:00
Nguyen Anh Quynh
f954f871e8
initialize all_arch in constructors
2013-12-22 18:49:22 +08:00
Nguyen Anh Quynh
d345839bce
support cs_option() for arm64 module
2013-12-22 11:10:56 +08:00
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
2013-12-22 10:40:58 +08:00
Nguyen Anh Quynh
13a7d95763
add missing arch/*/module.c
2013-12-21 12:19:44 +08:00
Nguyen Anh Quynh
f185180436
cleaner implementation for arch modularization
2013-12-21 12:16:47 +08:00
Nguyen Anh Quynh
abc02059e3
make all module code static
2013-12-21 10:06:59 +08:00
danghvu
7711858da6
Minor fix credit
2013-12-20 01:23:17 -06:00
danghvu
29e01a6895
arch/*/include.h -> arch/*/module.h
2013-12-20 00:20:57 -06:00
danghvu
a2e7ef1b73
Fix coding style
2013-12-19 23:12:30 -06:00
danghvu
0b6ea044ff
Move cs_option dispatch into arch specific
2013-12-19 23:07:26 -06:00
danghvu
34d49d935b
Support compilation of individual arch
2013-12-19 12:10:24 -06:00
Nguyen Anh Quynh
e832bd8996
arm: support alias registers SB, SL, FP & IP
2013-12-19 16:43:32 +08:00
Nguyen Anh Quynh
2578d3b9e6
mips: use alias registers
2013-12-19 12:26:05 +08:00
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
2013-12-15 22:05:01 +08:00
Nguyen Anh Quynh
3d5930f39e
arm: fix some int types and string specifiers
2013-12-15 21:12:19 +08:00
Nguyen Anh Quynh
d14d3973f4
coding style for C code
2013-12-15 21:11:17 +08:00
Nguyen Anh Quynh
7013f4c53d
mips: print negative immediate when it is negative
2013-12-15 18:53:32 +08:00
Nguyen Anh Quynh
1f44928d97
mips: fix for micromips
2013-12-15 14:04:59 +08:00
Nguyen Anh Quynh
ea8c5af48e
arm64: the left-over fix of the last commit
2013-12-15 00:40:29 +08:00
Nguyen Anh Quynh
748a70a50b
mips: turn off MicroMips by default
2013-12-15 00:16:32 +08:00
Nguyen Anh Quynh
4d3e852fbb
detail option: provide instruction id even when detail option is OFF
2013-12-14 10:45:09 +08:00
Nguyen Anh Quynh
a209e67f8a
support to turn on/off building instruction details
2013-12-14 00:23:41 +08:00
Nguyen Anh Quynh
bed90914e2
x86: calculate op_size properly in special cases regarding rax, eax, ax, al registers
2013-12-13 18:28:38 +08:00
Nguyen Anh Quynh
94990c9ef5
x86: print '0' rather than '-0'
2013-12-13 15:56:08 +08:00
Nguyen Anh Quynh
be90639c00
x86: properly translate immediate numbers based on their encoding. INT is the exception
2013-12-13 15:37:57 +08:00
Nguyen Anh Quynh
4fe4281f0d
x86: take care negative immediate (no prefix 0x) when print number greater than -10
2013-12-13 12:26:26 +08:00
Nguyen Anh Quynh
a4c16a6fd5
mips: print immediate under 10 without prefix 0x
2013-12-13 12:05:40 +08:00
Nguyen Anh Quynh
f22557ba88
x86: print immediate without prefix 0x if the number is under 10
2013-12-13 09:37:52 +08:00
Nguyen Anh Quynh
70bab7e61d
x86: cleaner fix for 16bit instruction with data override 'reverse'
2013-12-13 01:23:49 +08:00
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
2013-12-13 01:11:48 +08:00
Nguyen Anh Quynh
1f24586535
arm64: turn off debug output
2013-12-12 16:00:58 +08:00
Nguyen Anh Quynh
a01d1546d6
x86: handle outs instruction in 16bit mode
2013-12-12 15:54:30 +08:00
Nguyen Anh Quynh
4d85f29e08
x86: properly output insb/insd instruction with the right mode. bug reported by Pancake
2013-12-12 14:56:15 +08:00
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
2013-12-12 11:02:50 +08:00
Nguyen Anh Quynh
c961464af3
Merge branch 'const-strings' of https://github.com/radare/capstone into const
2013-12-12 06:11:06 +08:00
Nguyen Anh Quynh
b385284a8f
arm64: friendly display immediates under 10 without prefix 0x
2013-12-12 05:47:06 +08:00
pancake
f0e4eed89d
Use const on all read-only buffers
2013-12-11 22:14:42 +01:00
Nguyen Anh Quynh
fff0abb629
arm64: clean up
2013-12-11 23:24:08 +08:00
Nguyen Anh Quynh
ad89d25d05
mips: optimize Mips_map_register() to O(1). suggested by Pancake
2013-12-11 23:20:34 +08:00
Nguyen Anh Quynh
2b4258997f
arm64: avoiding duplicate call on AArch64_map_insn() in AArch64_printInst()
2013-12-11 21:57:54 +08:00
Nguyen Anh Quynh
66f6c2283e
mips: fix NEGU alias instruction. bug reported by Pancake
2013-12-11 21:37:24 +08:00