Commit Graph

42 Commits

Author SHA1 Message Date
tandasat
7f73a2e044 Addressed compile errors occur when built as C++11 2016-03-31 18:12:34 -07:00
Cr4sh
9d60607645 inttypes.h fix 2015-03-29 18:29:06 +08:00
Yegor Derevenets
ced9d24e35 Workaround missing <inttypes.h> on MSVC 2010 2014-09-21 17:27:11 +02:00
Nguyen Anh Quynh
0beb0d494b api: get back the old API cs_disasm() & mark cs_disasm_ex() deprecated. cs_disasm_ex() will be removed in the future 2014-08-27 22:55:29 +08:00
Mr. eXoDia
9be1f93f88 fixed warnings in MSVC x64 compilation 2014-08-26 23:51:12 +08:00
Nguyen Anh Quynh
9f6ed7155a x86: add @rex to cs_x86 struct. updated python & java binding for this change 2014-07-01 10:13:28 +08:00
Nguyen Anh Quynh
1a66fecdbc x86: support avx_sae & avx_rm in cs_x86 struct. this also updates Python & Java bindings following the core's change 2014-06-26 12:09:15 +08:00
Nguyen Anh Quynh
92a3d4c079 x86: add AVX's zero_opmask to cs_x86_op struct. updated Python & Java bindings for this change 2014-06-25 23:10:39 +08:00
Nguyen Anh Quynh
f1ec52628e x86: provide size for X86_OP_IMM operand. thank Gabriel Quadros for some suggestions 2014-06-25 22:03:18 +08:00
Nguyen Anh Quynh
4c5eabc32b x86: support SSE_CC & AVX_CC in cs_x86 struct. this also updates Python & Java bindings 2014-06-24 23:50:41 +08:00
Nguyen Anh Quynh
0d716450fc x86: add avx_bcast to cs_x86_op to support AVX512 instructions. this also updates Python & Java binding 2014-06-24 22:51:56 +08:00
Nguyen Anh Quynh
bb6440c5ef x86: extend cs_x86.opcode to 4 bytes to contain EVEX opcode. this also updates Python binding following this interface change 2014-06-24 21:46:54 +08:00
Nguyen Anh Quynh
14ba46bfab x86: add segment to x86_op_mem struct. this fixes a bug in generating detail for instructions with segment override. bug reported by Sean Heelan. 2014-06-24 14:32:01 +08:00
Nguyen Anh Quynh
d948dd42b8 tests/test_x86: prefix[] size is now 4, not 5 2014-06-20 13:55:24 +08:00
Nguyen Anh Quynh
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
Nguyen Anh Quynh
cb2c4f90bf test_x86: output sib_base, sib_index, sib_scale separately 2014-05-17 13:12:29 +08:00
Axel 0vercl0k Souchet
e47b8121fe test_x86.c now works on VS2012 2014-05-09 21:03:29 +01:00
Nguyen Anh Quynh
5b556e5fcf tests: C89 2014-04-11 10:15:26 +08:00
Nguyen Anh Quynh
54015f45bc tests: add sanity check on insn->detail, since it can be NULL when SKIPDATA option is ON 2014-04-10 00:02:04 +08:00
Nguyen Anh Quynh
226d7dca64 change API cs_close() to take pointer to handle as argument. this lets us invalidate the closed handle 2014-02-27 22:20:39 +08:00
Nguyen Anh Quynh
491469155e tests: continue to next tests rather than quit when failing to initialize a test 2014-02-22 16:54:44 +08:00
Nguyen Anh Quynh
ceae16d5a9 tests: report error when cs_open() failure 2014-01-19 16:04:23 +08:00
Nguyen Anh Quynh
39b812d9e9 switch detail to be CS_OPT_OFF by default 2014-01-07 23:36:26 +08:00
Nguyen Anh Quynh
04c19beefe rename API cs_disasm_dyn() to cs_disasm_ex(), and intentionally breaks compatibility with 1.0 2013-12-25 13:26:22 +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
bdaf3b5089 x86: delete useless constant values assigned for instructions in x86.h 2013-12-09 00:55:49 +08:00
Nguyen Anh Quynh
b4ce38355a x86: map xstorerng alias instruction back to xstore. bug reported by Nicolas Ruff 2013-12-06 08:06:21 +08:00
Nguyen Anh Quynh
641b78375f x86: fix relative call. bug reported by Joxean Koret 2013-12-04 16:56:40 +08:00
Nguyen Anh Quynh
c618db4473 change option names for cs_option(), and update python binding accordingly to support new cs_option() 2013-12-04 00:05:04 +08:00
Nguyen Anh Quynh
b8ce68ec05 change cs_option() API to be more flexible with option value 2013-12-03 23:45:08 +08:00
Nguyen Anh Quynh
01aba002e3 add cs_option() API. move ATT & Intel syntax here, rather than having them as CS_MODE, which is wrong 2013-12-03 21:00:09 +08:00
Nguyen Anh Quynh
6d552e5540 x86: fix bug in relative jump. reported by Joxean 2013-12-03 18:23:53 +08:00
Nguyen Anh Quynh
5df9e4be91 tests: change variable address's type to uint64_t 2013-12-03 15:02:12 +08:00
Nguyen Anh Quynh
7b7b40c879 tests: now @address is uint64_t, no need to typecast for PRIx64 anymore 2013-12-03 12:24:06 +08:00
Nguyen Anh Quynh
d57fa4f68e x86: added bunch of test insn (commented) 2013-12-03 00:45:39 +08:00
Nguyen Anh Quynh
9c950c15d6 x86: fix all the shift rotate insns with 1 as immediate: shl, shr, sar, ror, rol. thus, removed the hack on this insns. 2013-12-02 23:20:07 +08:00
Nguyen Anh Quynh
8fcec67893 x86: do not sign-extend immediate. this fixes the issues reported by LongLD 2013-12-02 22:03:30 +08:00
Nguyen Anh Quynh
b9b3d29ff5 x86: print segment register in some insns with memory references. This fixes the bug reported by Edgar & Attila 2013-12-02 16:21:55 +08:00
Nguyen Anh Quynh
cc6cf65980 tests: add some test insn (commented) 2013-12-01 09:01:52 +08:00
Nguyen Anh Quynh
723687ea0e tests: typecast size_t to uint64_t for printf, since MingW doesnt support zu specifier 2013-11-29 22:36:45 +08:00
Nguyen Anh Quynh
b42a657873 change cs_disasm() and cs_disasm_dyn() to be portable API. fix related code using these API 2013-11-29 17:40:07 +08:00
Nguyen Anh Quynh
26ee41aa67 initial import 2013-11-27 12:11:31 +08:00