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
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
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
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
a01d1546d6
x86: handle outs instruction in 16bit mode
11 years ago
pancake
f0e4eed89d
Use const on all read-only buffers
11 years ago
Nguyen Anh Quynh
10fd59eacf
cleanup & remove dead code in arm, arm64 & mips. dead code was reported by Pancake
11 years ago
Nguyen Anh Quynh
462f291b9f
ARM: Fix bunch of issues
...
- Bugs
- start switching to more friendly asm: for number under 10, print without hex in front
11 years ago
Nguyen Anh Quynh
ff771f6c84
arm: fix a typo in calling DecodeT2CPSInstruction()
11 years ago
Nguyen Anh Quynh
723fa80890
arm: some hardware features must be mutually exclusive
11 years ago
Nguyen Anh Quynh
a253c7a8e8
x86: map EFLAGS to string of 'flags', 'eflags' or 'rflags' depending on current CS_MODE
11 years ago
Nguyen Anh Quynh
87bb421d3b
arm: return lowercase string for instrution name
11 years ago
Nguyen Anh Quynh
6677b994e7
arm: fix a wrong calculation on sign of .disp value in mem reference
11 years ago
Nguyen Anh Quynh
f35e2ad35c
add @regs_read_count , @regs_write_count , @groups_count to @cs_insn . bump API to 1.4
11 years ago
pancake
c04f873791
Use uint64_t instead of size_t for addresses
11 years ago
Nguyen Anh Quynh
23bc1f356a
fix some potential format string bugs in arm64, arm & mips
11 years ago
Nguyen Anh Quynh
ec0ed8ee94
semantics: add insn group JUMP, so now we can check if this insn is branching
11 years ago
Nguyen Anh Quynh
7c7a8bc523
arm: move static variable ITBlock to cs_struct, so make arm code truly thread-safe
11 years ago
Nguyen Anh Quynh
5ef8b2a7de
arm: fix param of MCRegisterInfo_InitMCRegisterInfo() in ARM_init()
11 years ago
Nguyen Anh Quynh
257dfb6571
arm: fix wrong calculation on update_flags due to dropped support for cs_reg_write() with 0 as handle
11 years ago
Nguyen Anh Quynh
173ed2b1cb
arm: upgrade core engine
11 years ago
Nguyen Anh Quynh
b42a657873
change cs_disasm() and cs_disasm_dyn() to be portable API. fix related code using these API
11 years ago
Nguyen Anh Quynh
741a9de722
arm: print immediate as 32bit rather than 64bit number. fix the bug reported by LongLD
11 years ago
Nguyen Anh Quynh
26ee41aa67
initial import
11 years ago