Commit Graph

57 Commits

Author SHA1 Message Date
1085073f8f x86: remove disp_size, imm_size, op_size. add size to each operand. thanks Gabriel Quadros for some nice ideas 2014-06-18 12:16:24 +08:00
5329a6ffd4 directly update cs_insn from MCInst interface to avoid multiple memcpy() 2014-06-08 23:35:52 +07:00
0ad226e332 x86: fix a conflict when merging -next to -optimize branch 2014-06-06 00:59:15 +08:00
0e534bf0ff x86: correct the related comment of the last commit 2014-06-05 17:05:16 +07:00
9417ad6cd5 x86: printDstIdx() should only print segment in non-64bit mode. bug reported by Filipe Cabecinhas (@filcab) 2014-06-05 17:03:52 +07:00
b76233c648 avoid using vsnprintf when possible for SStream_concat() to improve performance. based on the idea of Dang Hoang Vu. 2014-06-04 18:31:02 +08:00
7a65ad7e4b x86: detail operands for 'fstpnce st(0), st(0)' & 'fstpst(7), st(0)' 2014-05-21 16:18:56 +08:00
c5cad6cab3 avoid using stdbool.h to support compilers without C99 support 2014-05-15 21:40:24 +08:00
0ffd811d67 merge next branch 2014-05-14 14:33:03 +08:00
8598a219f3 enable arch code from source with CAPSTONE_HAS_* for MSVC to pick up 2014-05-14 11:26:41 +08:00
bb0744df5d do not initialize some local vars unnecessarily. this problem was introduced when we fixed C89 issues for MSVC 2014-05-12 13:41:49 +08:00
2d34251889 x86: handle 16bit segment bound for JMP. bug reported by Pancake & Anton Kochkov 2014-05-11 15:33:11 +08:00
42706a39e2 indentation with tab 2014-05-09 07:33:35 +08:00
779d4c75d9 first changes to get a successfully compiled version of capstone on VS2012 2014-05-08 23:44:49 +01:00
e93179b851 x86: BOUND instruction uses dword & qword for boundary array, but not memory reference 2014-04-25 11:18:40 +08:00
81a6df4d00 x86: temporarily revert a part of commit 2be9b8791a due to some broken output 2014-04-01 07:24:33 +08:00
6d3d8005aa x86: do not print memory offset in negative form. bug reported by Le Dinh Long 2014-03-29 17:26:51 +08:00
125f504174 x86: print offset value in memory reference instruction properly when offset is negative. bug reported by Le Dinh Long 2014-03-29 12:02:21 +08:00
e51cf36636 x86: do not print negative immediate. request of Le Dinh Long 2014-03-27 12:36:46 +08:00
59b5489d8e x86: rename X86_COMPACT to X86_REDUCE. suggested by Pancake 2014-03-27 10:54:44 +08:00
9518148e6f add X86_COMPACT option. also add CS_SUPPORT_X86_COMPACT. made Python support this change 2014-03-25 23:20:41 +08:00
017df604dc arm64, mips, x86: print -9, not -0x9 2014-03-20 15:38:51 +08:00
27b9a96fd0 x86: make printAliasInstr() return string, not id 2014-02-19 10:13:47 +08:00
85cddef303 x86: optimize handling special instructions with accumulate registers 2014-02-18 11:59:36 +08:00
005c5148a6 x86: eliminate X86_get_insn_id2() 2014-02-18 11:11:46 +08:00
a86a1279ff Merge branch 'msvc0' into next1 2014-02-17 23:11:58 +08:00
13f40d26a2 x86: upgrade core 2014-02-07 22:06:33 +08:00
eaeee31f64 Merge branch 'msvc' into test 2014-01-23 22:10:41 +08:00
46018db884 Initial set of changes to support building with MSVC 2013. Right now there's a bunch fo assumptions in the .vcxproj file and some things are not as clean as they should be, but it does build a full build and works (at least the x86 side). The point of this initial checkpoint is to make sure that nothing breaks on the GCC side, that everyone is ok with the changes to the source (or if better fixes/typing can be done). 2014-01-22 09:45:00 -08:00
3732725342 rename mapping.c, mapping.h, module.c to have arch prefix. suggested by Alex Ionescu 2014-01-20 09:52:05 +08:00
f328f30fd9 rename mapping.c, mapping.h, module.c to have arch prefix. suggested by Alex Ionescu 2014-01-20 09:47:21 +08:00
d68a30f4c3 x86: remove 'opaque' in the output of some instructions 2014-01-19 22:40:58 +08:00
9dfdae6421 x86: add new instructions: FSETPM, SALC, GETSEC & INT1. bug reported by Pancake 2014-01-19 22:40:31 +08:00
38c1322bde x86: remove 'opaque' in the output of some instructions 2014-01-19 17:23:08 +08:00
a9ffb440f8 replace strdup() with our cs_strdup(), which call cs_mem_malloc() internally 2014-01-15 18:27:01 +08:00
3d56b823ed extend @op_str of cs_insn_flat following the core change 2014-01-14 07:22:06 +08:00
e51e227409 ppc & x86: add third dummy MRI argument to printInstruction() to make it consistent with other archs 2014-01-12 20:27:54 +08:00
a8eb7a5ca5 rename memory function pointer types to have cs_ prefix. also rename internal function pointers my_* to have cs_mem_ prefix - suggested by Pancake 2014-01-11 12:55:31 +08:00
c7404075ff move internal memory management declarations from utils.h to cs_priv.h 2014-01-05 11:35:47 +08:00
24bf0d9079 add new option CS_OPT_MEM for cs_option(): this enable user-defined dynamic memory management. idea proposed by Pancake 2014-01-05 11:19:04 +08:00
42c6b1acc7 initial support for PPC 2013-12-30 00:15:25 +08:00
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
2b53b20272 x86: patch in acc registers for xchg. bug reported by felixwilhelm 2013-12-24 09:09:20 +08:00
a209e67f8a support to turn on/off building instruction details 2013-12-14 00:23:41 +08:00
bed90914e2 x86: calculate op_size properly in special cases regarding rax, eax, ax, al registers 2013-12-13 18:28:38 +08:00
94990c9ef5 x86: print '0' rather than '-0' 2013-12-13 15:56:08 +08:00
be90639c00 x86: properly translate immediate numbers based on their encoding. INT is the exception 2013-12-13 15:37:57 +08:00
f22557ba88 x86: print immediate without prefix 0x if the number is under 10 2013-12-13 09:37:52 +08:00
a01d1546d6 x86: handle outs instruction in 16bit mode 2013-12-12 15:54:30 +08:00
a253c7a8e8 x86: map EFLAGS to string of 'flags', 'eflags' or 'rflags' depending on current CS_MODE 2013-12-09 10:26:18 +08:00