Commit graph

348 commits

Author SHA1 Message Date
Nguyen Anh Quynh
64328e3f56 x86: add UD0 instruction 2017-05-07 11:17:23 +08:00
Fotis Loukos
0850d55211 Added support for the TMS320C64x architecture. 2017-04-14 17:00:40 +03:00
Nguyen Anh Quynh
52fa6009e4 fix some warnings on VS2010 on redefining INTxx_MIN, INTxx_MAX 2017-03-06 14:41:06 +08:00
Nguyen Anh Quynh
755ec4b658 arm64: rename enum arm64_mrs_reg to arm64_sysreg 2017-02-22 15:33:40 +08:00
BartmanAbyss
35c96234cf (M68k) make displacements signed (#836)
* (M68k) make displacements signed

* (M68k) revert group changes

* (m68k) signed displacement in python bindings
2017-01-01 01:11:48 +08:00
Ben Cheney
b1b9f2c064 Fix build under VS2012 (i.e. MSC_VER = 1700)
cstool.c currently imports inttypes.h, which breaks
building on older Visual Studio versions (I've been
testing 2012). This commit removes the explicit include
of inttypes.h, which is already handled in platform.h
(which is included by capstone.h). A define for the
function strtoull (used by cstool) has also been added
to platform.h for the case where MSC_VER <= 1700.

I don't know what effect this will have on OS X builds
as I'm unable to test on that platform.

Also, cstool.c doesn't need to include stdio.h
because it's already included by capstone.h.
2016-12-21 11:00:25 +08:00
Gabor Buella
5bc875afc6 x86: fix X86_REL_ADDR macro - handle two-byte jump instructions 2016-11-22 10:22:13 +08:00
Nguyen Anh Quynh
10618e3e6a add CS_VERSION_{MAJOR, MINOR, EXTRA} 2016-10-25 14:29:21 +08:00
Nguyen Anh Quynh
3ba8c4d2d9 improve dependency on header files *.h, and remove clean from make.sh. see PR #793 2016-10-23 02:09:14 +08:00
Satoshi Tanda
565b6c3363 fix typo, style
Signed-off-by: Satoshi Tanda <tanda.sat@gmail.com>
2016-09-28 07:33:14 -07:00
qc1iu
69f4a36585 fix annotation. 2016-09-07 09:48:42 +08:00
mrexodia
f38cc69aac
changed fcompi to fcomip and fucompi to fucomip 2016-08-30 23:10:04 +02:00
Nguyen Anh Quynh
e147e3a051 arm64: add NEGS & NGCS alias instructions. this fixes issue #752 2016-08-23 14:01:17 +08:00
McLovi9
abded301c4 Update capstone.h
VS2015: error: C2440: 'initializing': cannot convert from 'const char [4]' to 'char *'
2016-08-12 22:58:16 +02:00
Nguyen Anh Quynh
dabc9f2990 x86: properly handle SSE/AVX instructions 2016-07-15 20:37:19 +08:00
Niels Boehm
7d4c660959 Fix typo in m68k constant for immediate operand. 2016-06-15 08:25:59 +02:00
Nguyen Anh Quynh
84c14d177b fix merging conflict 2016-05-22 08:58:33 +08:00
Nguyen Anh Quynh
2f3241d376 Merge pull request #669 from zachriggle/next-mips
Add MIPS_GRP_INT and MIPS_GRP_CALL
2016-05-14 09:36:49 +08:00
tandasat
8e9519c56a fix merge error 2016-05-12 04:28:28 -07:00
tandasat
c45f1db564 Merge remote-tracking branch 'upstream/next' into next 2016-05-11 22:52:34 -07:00
tandasat
45e5eab646 port Windows driver support 2016-05-11 21:48:32 -07:00
Inokentiy Babushkin
358156320b Changed register pair handling in M68K header
* instead of using bit operations, we now leverage the size of the
  enclosing union to avoid running code and provide a more convenient
  interface to the library user.
2016-05-08 23:19:47 +02:00
Zach Riggle
5cb3fe320e Add MIPS_GRP_XXX aliases for generic types. 2016-05-03 07:30:31 -07:00
Ruslan Kabatsayev
cbf5d3d440 Remove never used cs_x86_op::fp 2016-04-23 14:45:24 +03:00
Nguyen Anh Quynh
f3b886315b Merge branch 'next' of https://github.com/koutheir/capstone into koutheir-next 2016-04-12 23:05:37 +07:00
Nguyen Anh Quynh
c509fd10b1 m68k: fix conflicts when merging with #625 2016-04-12 19:58:29 +07:00
Nguyen Anh Quynh
74b596a9ec m68k: fix spelling error in comments of m68k.h 2016-04-12 18:45:04 +08:00
Nguyen Anh Quynh
548a10d6c3 Merge branch 'next' of https://github.com/aquynh/capstone into next 2016-04-12 18:42:46 +08:00
Nguyen Anh Quynh
969f784660 arm: change data type of cs_arm_op.reg back to int because this field can also take arm_sysreg value 2016-04-12 13:46:19 +08:00
Nguyen Anh Quynh
035214b194 arm64: change access field type to uint8_t 2016-04-12 13:41:38 +08:00
Ben Nagy
fb1855f34f Add ENDING constants to be consistent with other archs 2016-04-12 12:27:54 +09:30
Ben Nagy
ea030cbe22 fix spelling error in comments 2016-04-12 11:16:18 +09:30
Nicolas PLANEL
c856f151e9 [M68K] typo on m68k_address_mode private struct 2016-04-11 22:14:52 +10:00
Daniel Collin
1bca054aa8 Various fixes
* Fixed a break indentation
* Fixed incorrect enum value for M68K_GRP_IRET
* Fixed so groups_count is set to 0 at init
* Added group_count printing in python example
2016-04-10 16:16:28 +02:00
Daniel Collin
988bb63113 [M68K] Added basic groups
Added support for basic groups in the M68K backend. Also did some minor cleanups/whitespace fixes while at it.

Relates to this issue https://github.com/aquynh/capstone/issues/494
2016-04-10 10:55:21 +02:00
Koutheir Attouchi
b914a1be3f Added support for building binaries for Windows CE 7 on ARMv7 (a.k.a., Windows Embedded Compact 7) and for Windows CE 8 on ARMv7 (a.k.a., Windows Embedded Compact 2013).
Added support for building binaries for Windows CE 7 on ARMv7 (a.k.a., Windows Embedded Compact 7) and for Windows CE 8 on ARMv7 (a.k.a., Windows Embedded Compact 2013).

Added support for building binaries for Windows CE 7 on ARMv7 (a.k.a., Windows Embedded Compact 7) and for Windows CE 8 on ARMv7 (a.k.a., Windows Embedded Compact 2013).

Replaced header inclusions of "stdint.h" and "intrin.h" by selective inclusions to support platforms that do not provide those headers. The header "platform.h" handles the platform test.
Updated the build script for Windows CE 7 on ARMv7.
2016-04-07 17:05:00 +02:00
Inokentiy Babushkin
9325590b13 Fixed xcore header to comply with bindings
and fixed whitespace
2016-04-07 12:23:56 +02:00
Inokentiy Babushkin
c26c5751df Fixed systemz header to comply with bindings 2016-04-07 12:19:20 +02:00
Inokentiy Babushkin
f1287c8e22 Fixed sparc header to comply with bindings 2016-04-07 12:15:49 +02:00
Inokentiy Babushkin
41b09c34cd Fixed register types
In some architecture headers, register values were
represented as `unsigned int`/`uint8_t` or other types
instead of the corresponding enums. This commit fixes most (all)
occurences of this problem.
2016-04-04 23:07:01 +02:00
Nguyen Anh Quynh
256090a8c8 add CS_OPT_UNSIGNED option to print immediate in unsigned form. only ARM is supported for now (issue #585) 2016-03-14 13:52:23 +08:00
Nguyen Anh Quynh
6de6425072 Merge branch 'arm64_reg_access' of https://github.com/pranith/capstone into pranith-arm64_reg_access 2016-01-19 17:22:04 +08:00
Nguyen Anh Quynh
3722c74f69 cosmetic change in capstone.h 2016-01-12 11:48:48 +08:00
Pranith Kumar
653827bf5a Add register access info for ARM64
Signed-off-by: Pranith Kumar <bobby.prani@gmail.com>
2016-01-06 15:54:10 -05:00
Nguyen Anh Quynh
1f723204c6 m68k: coding style 2015-10-05 23:13:48 +08:00
Nguyen Anh Quynh
93a007dc0e m68k: fix prototype guard for m68k.h 2015-10-04 14:52:38 +08:00
Nguyen Anh Quynh
ac63d5b995 m68k: cleanup & code style 2015-10-04 14:34:51 +08:00
Daniel Collin
2ee675c10a This adds M68K support to Capstone 2015-10-02 20:47:00 +02:00
pancake
8848ea3f68 Fix build for cygwin 2015-09-22 16:33:27 +02:00
Nguyen Anh Quynh
8aba4cd913 add error code CS_ERR_X86_MASM 2015-08-09 10:52:18 -07:00