Nguyen Anh Quynh
cf0813809a
x86: more simplification on managing MCOperand. this also fixes a bug in handling memory reference instructions
11 years ago
Nguyen Anh Quynh
0e534bf0ff
x86: correct the related comment of the last commit
11 years ago
Nguyen Anh Quynh
9417ad6cd5
x86: printDstIdx() should only print segment in non-64bit mode. bug reported by Filipe Cabecinhas ( @filcab )
11 years ago
Nguyen Anh Quynh
e70a043a04
x86: more simplification for better performance
11 years ago
Nguyen Anh Quynh
937e48314c
x86: avoid malloc/free MCOperand with new API of MCInst: MCInst_addOperand0, MCInst_CreateReg0, MCInst_CreateImm0
11 years ago
Nguyen Anh Quynh
a62b9a07e4
x86: use SStream_concat0() where possible to improve performance - for AT&T and X86_REDUCE
11 years ago
Nguyen Anh Quynh
46b6693d36
x86: save prefixes to avoid expensive copying loop. based on idea of Dang Hoang Vu
11 years ago
Nguyen Anh Quynh
b76233c648
avoid using vsnprintf when possible for SStream_concat() to improve performance. based on the idea of Dang Hoang Vu.
11 years ago
Jay Oster
368c45b4c6
x86 instruction groups: Add SYSEXIT and SYSRET to the X86_GRP_IRET group
11 years ago
Jay Oster
6b00344f23
x86 instruction groups: Fix RET/IRET mapping.
11 years ago
Nguyen Anh Quynh
0577bb728c
x86: ATT syntax does not print word size pointer like Intel syntax
11 years ago
Jay Oster
6f74ccc97a
Add new x86 instruction groups
...
- VM: Virtual Machine
- INT: Interrupts
- IRET: Interupt returns
- CALL: Subroutine call
- RET: Subroutine return
Includes a special case for writes to port 0xb2, which triggers an SMI
11 years ago
Nguyen Anh Quynh
c70442edc6
arm: shift info associates with the right op in LDR instruction. bug reported by Daniel Colascione
11 years ago
Nguyen Anh Quynh
a04ee4feb8
arm: add missing the check for detail mode in the last commit
11 years ago
Nguyen Anh Quynh
b79d915a38
arm: add missing operand info for Thumb instruction vldr. bug reported by Daniel Colascione
11 years ago
Nguyen Anh Quynh
bb71c13098
arm: add missing operand info for Thumb instruction LDR involving label. bug reported by Daniel Colascione
11 years ago
Nguyen Anh Quynh
6eb55cf52e
arm: add operand details for 'mov pc, lr'. bug reported by Daniel Colascione
11 years ago
Nguyen Anh Quynh
48b6cb4ce5
arm: CC_AL is the default code condition for instructions without CC. bug reported by Daniel Colascione
11 years ago
Nguyen Anh Quynh
5e2e660be7
fix some warnings reported by Coverity
11 years ago
Nguyen Anh Quynh
2c20a1b5a3
ppc: wrong comparison in printOperand(). bug found by Coverity
11 years ago
Nguyen Anh Quynh
b70e121ce3
x86: FP instructions are only available when X86_REDUCE mode is off
11 years ago
Nguyen Anh Quynh
d0023197eb
cmake: support Sparc, SystemZ & XCore
11 years ago
Nguyen Anh Quynh
3a5965eb05
xcore: fix some warnings with Diet mode
11 years ago
Nguyen Anh Quynh
0150f06553
x86: fix a warning on Diet mode
11 years ago
Nguyen Anh Quynh
9148420b0d
replace strcasecmp() with strcmp()
11 years ago
Nguyen Anh Quynh
d69f9ded5b
x86: delete dead code
11 years ago
Nguyen Anh Quynh
b2e566ac88
xcore: use strcpy() rather than strncpy()
11 years ago
Nguyen Anh Quynh
2a33afe6e8
msvc: make MSVC shutup on strncpy()
11 years ago
Nguyen Anh Quynh
dc1af545c0
msvc: fix warnings
11 years ago
Nguyen Anh Quynh
be2b788dc1
xcore: handle details for some special tricky instructions
11 years ago
Nguyen Anh Quynh
f721e3124d
Disassembler -> Disassembly
11 years ago
Nguyen Anh Quynh
04f2ec6d0f
cleanup redundant headers included
11 years ago
Nguyen Anh Quynh
2cf9c524da
x86: MOV64rr belongs to GRP_MODE64 group. bug reported by Jason Oster
11 years ago
Nguyen Anh Quynh
553bb488d7
python: support XCore
11 years ago
Nguyen Anh Quynh
c80d840ffc
add XCore architecture
11 years ago
Nguyen Anh Quynh
3dc080c2b6
systemz: cleanup SystemZGenDisassemblerTables.inc
11 years ago
Nguyen Anh Quynh
5d6383e335
sparc: SPARC_CC_ICC_N should not have the same value as SPARC_CC_INVALID. bug reported by Jason Oster
11 years ago
Jason Oster
6380446222
Add `r0l` register to SystemZMapping.c
11 years ago
Nguyen Anh Quynh
4ebd062ee3
x86: cleanup unused code
11 years ago
Nguyen Anh Quynh
fed098f9a7
x86: eliminate irrelevant prefixes in x86.prefix[] - such as f2/f3 prefixed irrelevant instructions
11 years ago
Nguyen Anh Quynh
1e93adf5c3
x86: add CL operand into details for 'SHL *, CL' instruction
11 years ago
Nguyen Anh Quynh
7a65ad7e4b
x86: detail operands for 'fstpnce st(0), st(0)' & 'fstpst(7), st(0)'
11 years ago
Nguyen Anh Quynh
b6e3f01bb8
x86: handle REP MOVSD/CMPSD/SCASD/LODSD/STOSD properly (due to confused 128bit media instructions having the same mnemonics)
11 years ago
Nguyen Anh Quynh
3a86d92e7c
x86: correct instructions related to REP prefix
11 years ago
Nguyen Anh Quynh
1d6f7ee50e
x86: prefix REP/REPNE are only relevant for MOVS/CMPS/SCAS/LDOS/STOS/INS/OUTS instructions
11 years ago
Jason Oster
984ed7e9e8
MIPS: Add HI, LO, and PC registers to MipsMapping.c
...
- Using MIPS_REG_HI, MIPS_REG_LO, and MIPS_REG_PC with cs_reg_name() caused out-of-bounds reads
11 years ago
Nguyen Anh Quynh
6456481508
x86: add immediate operand (1) for SHL/SHR/ROR/ROL/SAR/SAL in detail mode & Intel syntax
11 years ago
Nguyen Anh Quynh
f338657f17
x86: set syntax variable when changing syntax with cs_option()
11 years ago
Nguyen Anh Quynh
1922b2f74b
arm64: clean reg_name_maps[]
11 years ago
Nguyen Anh Quynh
c5cad6cab3
avoid using stdbool.h to support compilers without C99 support
11 years ago