247 Commits

Author SHA1 Message Date
Nguyen Anh Quynh
538b7bfbd1 arm: BX & BLX write to PC. see #1126 2018-05-28 20:30:15 +08:00
Alberto Garcia Illera
3c8e828b14 prefix cs_ to global variables to avoid link problems (#1108)
* prefix cs_ to global variables to avoid link problems

* force Capstone to be build using MT

* fix identation
2018-03-29 22:17:37 +08:00
Matt Suiche
0441af5ce7 Resolve some casting issues with Visual Studio. 2017-09-05 22:20:57 +07:00
Alfredo Beaumont
5fc444c073 Add name to relative branch group in supported architectures. (#982) 2017-08-01 16:49:43 +08:00
Nguyen Anh Quynh
6cd9313c70 arm: UADD8 updates flags. fix #980 2017-07-31 01:05:28 +07:00
Alfredo Beaumont
f82395b959 Relative branch group (#964)
* Add a new group for relative branching instructions

* x86: Add relative branch group to appropiate instructions

* Rename RELATIVE_BRANCH to BRANCH_RELATIVE

* aarch64: Add relative branch group to appropiate instructions

* arm: Add relative branch group to appropiate instructions

* m68k: Add relative branch group to appropiate instructions

* mips: Add relative branch group to appropiate instructions
2017-07-30 19:05:03 +08:00
Nguyen Anh Quynh
663b210cb7 arm: another fix for #913 2017-05-05 09:53:29 +08:00
Nguyen Anh Quynh
a71f763b09 arm: POP {reg} read/write SP register. this fixes #913 2017-05-04 17:20:01 +08:00
noword
8d5436b4e3 fix compiling error in MS VS2015 (#869)
for issue #868
2017-04-26 05:52:28 +08:00
Nguyen Anh Quynh
695e60be9d arm: add IMM operand for printPostIdxImm8s4Operand(). issue #861 2017-02-22 09:27:16 +08:00
Nguyen Anh Quynh
76b94cba23 switch endian mode with cs_option() for Arm/Arm64/Mips/Sparc. fix issue #849 2017-02-01 11:19:00 +08:00
Nguyen Anh Quynh
25a6bab761 arm: groups for Thumb SETEND instruction. ported from #843 2017-01-19 09:13:49 +08:00
Nguyen Anh Quynh
6e247def0b arm: fix operand access info for Bcc & BL. see issue #826 2016-12-13 18:20:01 +07:00
Nguyen Anh Quynh
e22c6c6100 arm: fix access info for RET. see issue #825 2016-12-13 18:02:51 +07:00
Nguyen Anh Quynh
06a4c383aa arm: fix decoding Thumb big-endian instructions. ported from PR #813 2016-11-14 21:37:23 +09:00
Nguyen Anh Quynh
53a4473c92 arm: update imm in printOperand() to fix error reported by @trufae in PR #764 2016-09-22 22:22:36 +08:00
Nguyen Anh Quynh
399dd9da81 Merge pull request #764 from akihikodaki/next
arm: treat ARM address as unsigned
2016-09-07 09:51:04 +08:00
Nguyen Anh Quynh
fe8572d80f arm: fix issue #767 2016-09-05 23:05:03 +08:00
Akihiko Odaki
e7e4e1dfda arm: treat ARM address as unsigned
It should be unsigned because:
* It does arithmetic operations
* Format strings have "%u" instead of "%d"

# Conflicts:
#	arch/ARM/ARMInstPrinter.c
#	bindings/python/test_arm.py
#	tests/test_arm.c
2016-09-04 00:13:50 +09:00
Nguyen Anh Quynh
c6ddb2b553 arm: fix issue #760 2016-09-02 01:05:57 +08:00
Nguyen Anh Quynh
65eec12d33 arm: fix issue #750 2016-08-17 16:23:40 +08:00
Nguyen Anh Quynh
383adcf41f cleanup 2016-08-17 16:20:52 +08:00
Nguyen Anh Quynh
452c4e934f arm: fix issue #747 2016-08-17 16:19:21 +08:00
Nguyen Anh Quynh
34ecce8b72 arm: fix issue #746 2016-08-15 20:00:40 +08:00
Nguyen Anh Quynh
08fd47e040 arm: fix issue #744 2016-08-13 13:25:52 +08:00
Nguyen Anh Quynh
c7df4c0920 arm: fix issue #740 2016-08-09 23:19:04 +08:00
tandasat
d4ef430b33 port Windows driver support 2016-05-11 21:48:32 -07:00
Nguyen Anh Quynh
a23f9d37ed 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
15768eafb0 fix some compilation warnings reported by MSVC 2016-03-08 00:49:15 +08:00
reyalpchdk
8b12b71cf5 Align thumb BLX immediate by discarding low bits 2016-01-16 21:32:09 -08:00
Ammar Ben Khadra
739505a945 Fix classification of ARM jump instructions
All jump instructions have been classified based on the direct
and indirect_branch flags.
2015-12-17 14:41:40 +01:00
Nguyen Anh Quynh
ddf5488d36 arm: another fix for #446. bug reported by @uxmal 2015-08-19 22:36:09 +08:00
Nguyen Anh Quynh
ed43e241c5 arm: fix issue #459 reported by Ahmed Garhy 2015-08-15 14:20:23 +08:00
Nguyen Anh Quynh
53a059b581 fix warnings on some unused functions when CAPTONE_DIET mode is turn on 2015-06-08 21:51:19 +08:00
Nikolay Igotti
1d9615de78 Fix Thumb disassembler memory corruption with IT sequence (issue #385) 2015-06-03 22:12:15 +08:00
Nguyen Anh Quynh
4caced62e6 arm: add missing group string for CALL & INT. bug reported by Ben Nagy 2015-05-27 16:14:49 +07:00
Nguyen Anh Quynh
106e0f1567 arm: fix an warning on conversion from uint64_t to bool. issue reported by @yegord 2015-05-24 21:33:45 +08:00
Nguyen Anh Quynh
c42effd51c arm: do not need to put ARM_GRP_JUMP into insns[], as it is autogenerated 2015-05-09 00:06:05 +08:00
Nguyen Anh Quynh
227cdd1e55 arm: ARM_GRP_JUMP is generated at run-time, so do not include it in insn[] 2015-05-08 23:51:35 +08:00
derrek
01a744c329 arm: Added instruction group ARM_GRP_INT, ARM_INS_SVC is now using it. 2015-05-08 13:08:55 +02:00
derrek
2dbe2e6847 Merge branch 'next' of https://github.com/aquynh/capstone into next 2015-05-08 13:04:15 +02:00
Nguyen Anh Quynh
52a6b8b23c arm: fix a similar issue with the last issue on MOVsr instructions 2015-05-02 11:46:53 +08:00
Nguyen Anh Quynh
91a1cb4b03 arm: correct the alias instruction id for MOVsi instructions. bug reported by @joelpx 2015-05-02 11:38:34 +08:00
Nguyen Anh Quynh
1182d25759 simplify ARCH_group_name() by using lookup table as suggested by @learn_more. also added the missing group name for GRP_PRIVILEGE 2015-04-27 12:13:34 +08:00
Ole André Vadla Ravnås
d2e6b5a1bf Fix warning reported by MSVC 2015-04-23 12:43:51 +02:00
derrek
67aee91887 arm: Changed CS_GRP_ prefix to ARM_GRP_ prefix, added ARM_GRP_CALL group. 2015-04-23 12:15:04 +02:00
derrek
49ff95bcfb arm: Fixed implicit read/written registers for SVC instructions. 2015-04-22 14:00:00 +02:00
derrek
5b78a6aeec Fixed/added ARM_GRP_JUMP and CS_GRP_CALL information. 2015-04-22 13:39:15 +02:00
Nguyen Anh Quynh
34c5ae39e1 arm: BLX should read PC & modify LR registers. bug reported by Zach Riggle 2015-04-21 09:47:07 +08:00
Vincent Bénony
d2f47d065f Remove enum for ASRS, LSRS, SUBS and MOVS
These instructions are now disassembled ASR, LSR, SUB and MOV, with the "update_flags" bit set.
2015-04-17 11:42:45 +02:00