Commit Graph

4328 Commits

Author SHA1 Message Date
naq
550a598058 cstest: add issue 1505 2019-06-09 01:06:09 +08:00
naq
9785281f7d cstest: fix issues.cs 2019-06-08 12:36:57 +08:00
naq
a0111dc909 x86: fix missing opcode byte in #1505 2019-06-08 12:21:50 +08:00
Catena cyber
3fc1d8ed86 Fixes MOS groups count (#1503) 2019-06-05 10:32:19 +08:00
ksherlock
05b3fbf2d7 updated 6502 support. (#1498)
* updated 6502 support. some improvements to the base 6502 support but also adds support for 65c02, w65c02, and 65816.

* add CS_OPT_SYNTAX_MOTOROLA.

This will use "$" as a hex prefix instead of "0x"

* remove excess blank lines
2019-06-03 23:20:51 +08:00
Nguyen Anh Quynh
19e088393f tests: 2019 2019-05-30 20:49:10 +08:00
Travis Finkenauer
0574f899e5 [RISCV] Use CS_ASSERT (#1493)
* makefile: set CAPSTONE_DEBUG for debug build

Also fix long longs

* riscv: replace assert with CS_ASSERT

* cmake: add CAPSTONE_DEBUG option
2019-05-23 08:25:36 +07:00
Wolfgang Schwotzer
f9ebfae858 [M680X] Fix #1483: errors logged to stderr, using abort (2) (#1489)
- This is not suitable for an application framework
  especially for kernel code.
- All these error conditions do not occur under normal conditions.
  They only can occur if a maintainer (in the future) would make
  inappropriate changes to the M680X code base.
- Added CS_ASSERT macro which allows to use assertions when debugging
  by defining CAPSTONE_DEBUG.
- Updated compiler documenation
2019-05-20 10:22:27 +07:00
Travis Finkenauer
3fa14cf86d Add editorconfig to maintain consistent style (#1486)
EditorConfig should help us maintain consistent style across different
editors. Many editors have native support; others have plugins.

Website: https://editorconfig.org/
2019-05-18 19:30:55 +07:00
Nguyen Anh Quynh
a095f344ce ppc: mnemonic with dot postfix should update CR0. issue #1478 2019-05-17 11:50:11 +08:00
Nguyen Anh Quynh
72e70daeb7 ppc: add missing condition registers of BDNZT. fixes issue #970 2019-05-17 11:36:55 +08:00
Nguyen Anh Quynh
0e2eb9cc6d Merge branch 'next' of github.com:aquynh/capstone into next 2019-05-17 09:56:19 +08:00
Nguyen Anh Quynh
942e5eb8a1 ppc: fix bdnzflr operand 2 missing. issue #969 2019-05-17 09:56:03 +08:00
Jeremy Ng
a1eeb338ba Update COMPILE.TXT (#1482)
there are clearly 7 options, not 5 options. just updating the numbers.
2019-05-17 09:41:43 +08:00
Nguyen Anh Quynh
8cf0aa1cfe arm: printAliasInstr() properly handle memory operands (similar to the last commit for ARM64 2019-05-16 21:34:39 +08:00
Nguyen Anh Quynh
832180d695 arm64: LDR operands[1] is memory operand. fix issue #1481 2019-05-16 21:29:51 +08:00
Nguyen Anh Quynh
e3edf79e7e ppc: BDZLA is absolute branch. fix issue #968 2019-05-16 11:06:24 +08:00
Nguyen Anh Quynh
e9c0772028 ppc: fix TBEGIN decoder. issue #1478 2019-05-16 10:42:43 +08:00
Nguyen Anh Quynh
57502b0ea0 arm64: fix a segfault. issue #1480 2019-05-15 21:04:13 +08:00
Ammar
69e26b50eb x86: fix call/jmp access mode of mem operand (#1479)
sets CS_AC_READ for memory operand of call and jmp instructions
2019-05-14 23:11:32 +08:00
Nguyen Anh Quynh
1ede71254d cstest: add tests for xacquire/xrelease xchg 2019-05-14 10:59:07 +08:00
Nguyen Anh Quynh
dd9c231698 x86: recognize xacquire/xrelease for XCHG 2019-05-14 10:49:27 +08:00
Nguyen Anh Quynh
eb25f46d6a x86: recognize xrelease lock 2019-05-14 09:59:23 +08:00
Nguyen Anh Quynh
d5dd80e979 x86: recognize xacquire prefix. issue #1477 2019-05-13 22:27:05 +08:00
Nguyen Anh Quynh
7d72c1e1da Merge branch 'next' of github.com:aquynh/capstone into next 2019-05-13 13:52:09 +08:00
Nguyen Anh Quynh
9e2912899a ppc: add JUMP group for some branch instructions 2019-05-11 11:52:43 +08:00
Nguyen Anh Quynh
7ce9c792b1 ppc: fix target address of bdnz. issue #1468 2019-05-11 10:18:36 +08:00
Nguyen Anh Quynh
b6924f4b86 synctools: udpate somes scripts 2019-05-10 16:51:23 +08:00
Nguyen Anh Quynh
10c5081482 synctools: fix genall-arch.sh for Arm & Arm64 2019-05-10 16:39:36 +08:00
Nguyen Anh Quynh
39d8db0762 ppc: cleanup 2019-05-10 14:43:01 +08:00
Nguyen Anh Quynh
c40e2fa375 ppc: fix target address for bdnzt 2019-05-10 14:38:51 +08:00
Nguyen Anh Quynh
d6d2abd17a ppc: cleanup debug code 2019-05-10 01:06:47 +08:00
Nguyen Anh Quynh
30627ba853 ppc: alias for Bcc instructions. issue #1468 2019-05-10 00:57:03 +08:00
Nguyen Anh Quynh
8623090df7 Merge branch 'next' of github.com:aquynh/capstone into next 2019-05-09 22:20:48 +08:00
Nguyen Anh Quynh
faa962426f ppc: proper map internal register ID to public register ID 2019-05-09 18:26:45 +08:00
Nguyen Anh Quynh
b1e459b0bd ppc: fix some mappings in PPCMappingInsn.inc 2019-05-09 18:08:08 +08:00
Nguyen Anh Quynh
68858b841e ppc: indentation 2019-05-09 12:34:06 +08:00
Michael Bikovitsky
5e43a5a438 Fix user data alignment in MEMBLOCK (#1471)
* Fix user data alignment in MEMBLOCK

Kernel memory allocations on Windows should be aligned on MEMORY_ALLOCATION_ALIGNMENT (16 bytes on x64 and 8 bytes on x86).

* Fix user data alignment in CS_WINKERNEL_MEMBLOCK
2019-05-09 10:24:47 +08:00
Nguyen Anh Quynh
d399bd3fb8 cstest: do not use CS_OPT_SYNTAX_NOREGNAME in ppc64-encoding.s.cs 2019-05-09 00:39:37 +08:00
Nguyen Anh Quynh
195b3f2315 cstool: add PPC32 mode 2019-05-08 18:17:00 +08:00
Nguyen Anh Quynh
4b9d4857d7 ppc: fix suite/MC/PowerPC/ppc64-encoding.s.cs 2019-05-08 14:38:11 +08:00
Nguyen Anh Quynh
b41a66f921 python: add PPC modes CS_MODE_SPE & CS_MODE_BOOKE 2019-05-08 14:03:10 +08:00
Nguyen Anh Quynh
0c31f14db1 ppc: print condition register bits. issue #1469 2019-05-08 13:56:40 +08:00
Nguyen Anh Quynh
d59d1e75d1 Merge branch 'next' of github.com:aquynh/capstone into next 2019-05-07 16:31:48 +08:00
Nguyen Anh Quynh
ac63e2b80c ppc: add issue #1456 for B to issues.cs 2019-05-07 16:31:25 +08:00
Catena cyber
829a461743 Right endianness for ppc platforms (#1473)
* Right endianness for ppc platforms

* Right mode CS_MODE_64 for ppc
2019-05-07 15:12:23 +07:00
Nguyen Anh Quynh
6077ee133f ppc: fix target address of B. issue #1468 2019-05-07 16:08:45 +08:00
Nguyen Anh Quynh
71370554ac add suite/synctools 2019-05-07 12:26:19 +08:00
Nguyen Anh Quynh
c36674a5c3 remove deprecated API cs_disasm_ex() 2019-05-06 18:05:30 +08:00
Nguyen Anh Quynh
bbb8d3d570 x86: LOCK prefix for 16bit case of ADC/ADD/AND/OR/XOR/SUB in issue #1472 2019-05-06 17:39:44 +08:00