Commit graph

46 commits

Author SHA1 Message Date
Wolfgang Schwotzer
e8d1f1d4d2 M680X: Target ready for pull request (#1034)
* Added new M680X target. Supports M6800/1/2/3/9, HD6301

* M680X: Reformat for coding guide lines. Set alphabetical order in HACK.TXT

* M680X: Prepare for python binding. Move cs_m680x, m680x_insn to m680x_info. Chec
> k cpu type, no default.

* M680X: Add python bindings. Added python tests.

* M680X: Added cpu types to usage message.

* cstool: Avoid segfault for invalid <arch+mode>.

* Make test_m680x.c/test_m680x.py output comparable (diff params: -bu). Keep xprint.py untouched.

* M680X: Update CMake/make for m680x support. Update .gitignore.

* M680X: Reduce compiler warnings.

* M680X: Reduce compiler warnings.

* M680X: Reduce compiler warnings.

* M680X: Make test_m680x.c/test_m680x.py output comparable (diff params: -bu).

* M680X: Add ocaml bindings and tests.

* M680X: Add java bindings and tests.

* M680X: Added tests for all indexed addressing modes. C/Python/Ocaml

* M680X: Naming, use page1 for PAGE1 instructions (without prefix).

* M680X: Naming, use page1 for PAGE1 instructions (without prefix).

* M680X: Used M680X_FIRST_OP_IN_MNEM in tests C/python/java/ocaml.

* M680X: Added access property to cs_m680x_op.

* M680X: Added operand size.

* M680X: Remove compiler warnings.

* M680X: Added READ/WRITE access property per operator.

* M680X: Make reg_inherent_hdlr independent of CPU type.

* M680X: Add HD6309 support + bug fixes

* M680X: Remove errors and warning.

* M680X: Add Bcc/LBcc to group BRAREL (relative branch).

* M680X: Add group JUMP to BVS/BVC/LBVS/LBVC. Remove BRAREL from BRN/LBRN.

* M680X: Remove LBRN from group BRAREL.

* M680X: Refactored cpu_type initialization for better readability.

* M680X: Add two operands for insn having two reg. in mnemonic. e.g. ABX.

* M680X: Remove typo in cstool.c

* M680X: Some format improvements in changed_regs.

* M680X: Remove insn id string list from tests (C/python/java/ocaml).

* M680X: SEXW, set access of reg. D to WRITE.

* M680X: Sort changed_regs in increasing m680x_insn order.

* M680X: Add M68HC11 support + Reduced from two to one INDEXED operand.

* M680X: cstool, also write '(in mnemonic)' for second reg. operand.

* M680X: Add BRN/LBRN to group JUMP and BRAREL.

* M680X: For Bcc/LBcc/BRSET/BRCLR set reg. CC to read access.

* M680X: Correctly print negative immediate values with option CS_OPT_UNSIGNED.

* M680X: Rename some instruction handlers.

* M680X: Add M68HC05 support.

* M680X: Dont print prefix '<' for direct addr. mode.

* M680X: Add M68HC08 support + resorted tables + bug fixes.

* M680X: Add Freescale HCS08 support.

* M680X: Changed group names, avoid spaces.

* M680X: Refactoring, rename addessing mode handlers.

* M680X: indexed addr. mode, changed pre/post inc-/decrement representation.

* M680X: Rename some M6809/HD6309 specific functions.

* M680X: Add CPU12 (68HC12/HCS12) support.

* M680X: Correctly display illegal instruction as FCB .

* M680X: bugfix: BRA/BRN/BSR/LBRA/LBRN/LBSR does not read CC reg.

* M680X: bugfix: Correctly check for sufficient code size for M6809 indexed addressing.

* M680X: Better support for changing insn id within handler for addessing mode.

* M680X: Remove warnings.

* M680X: In set_changed_regs_read_write_counts use own access_mode.

* M680X: Split cpu specific tables into separate *.inc files.

* M680X: Remove warnings.

* M680X: Removed address_mode. Addressing mode is available in operand.type

* M680X: Bugfix: BSET/BCLR/BRSET/BRCLR correct read/modify CC reg.

* M680X: Remove register TMP1. It is first visible in CPU12X.

* M680X: Performance improvement + bug fixes.

* M680X: Performance improvement, make cpu_tables const static.

* M680X: Simplify operand decoding by using two handlers.

* M680X: Replace M680X_OP_INDEX by M680X_OP_CONSTANT + bugfix in java/python/ocaml bindings.

* M680X: Format with astyle.

* M680X: Update documentation.

* M680X: Corrected author for m680x specific files.

* M680X: Make max. number of architectures single source.
2017-10-21 21:44:36 +08:00
Fotis Loukos
ae6f2d1411 Added support for the TMS320C64x architecture. 2017-04-14 17:00:40 +03:00
Andrew Dutcher
b2504b963e Python setup: Clean up some merge failures, adapt for changes on next branch 2016-10-26 23:15:42 -07:00
Andrew Dutcher
816f131d27 Python: Make cython work with extreme prejudice 2016-10-25 21:49:58 -07:00
Andrew Dutcher
3b5b5ff58c Python: make setup work as expected 2016-10-25 21:48:18 -07:00
Pranith Kumar
ddaeb354ee Fix error return code 2016-06-29 11:08:13 -04:00
Pranith Kumar
4a3af7b1c8 Handle python test failure properly 2016-04-30 13:12:16 -04:00
jmechnich
52294728e5 bugfix: removed leading ./ from OBJDIR to avoid corrupting setup.py install 2016-03-25 22:31:13 +01:00
Daniel Collin
2ee675c10a This adds M68K support to Capstone 2015-10-02 20:47:00 +02:00
Nguyen Anh Quynh
1319f0c6d7 python: rename test.py to test_basic.py 2015-06-03 22:14:59 +08:00
Hank Leininger
1c0288043c Add DESTDIR support for the python binding.
Without this patch, DESTDIR is ignored, so build systems that use a
staging sandbox prior to installing in real-root, such as Gentoo,
cannot build the python binding.

Caveats:

1) I wrote/tested this against the 3.0.2 release, not current HEAD.

2) It might be preferable to do DESTDIR ?= / at the top of the Makefile,
   so that the if/else/fi can be squashed back out.

3) The install_cython target probably needs a similar change; untested.

4) Other bindings might need something similar.
2015-04-07 13:16:55 +08:00
Nguyen Anh Quynh
4544ba1f02 cython: support cs_regs_access() API 2015-04-02 22:54:52 +08:00
Nguyen Anh Quynh
a87c0b01ad python: rename Windows package from capstone-win to capstone-windows 2015-02-04 10:34:38 +08:00
Nguyen Anh Quynh
59bc84de1d python: distribute msvcr120.dll for Windows installer 2015-02-04 10:33:55 +08:00
Nguyen Anh Quynh
58a8369067 python: clean prebuilt core in install targets of Makefile 2015-02-04 10:33:43 +08:00
Nguyen Anh Quynh
35ceed7b8f python: fix installer 2015-02-04 10:33:29 +08:00
Nguyen Anh Quynh
0498085a1c python: add README.pypi* 2015-02-04 10:31:54 +08:00
Nguyen Anh Quynh
00eb3dea4f python: setup.py only copies source if prebuilt libs are not existent 2015-02-04 10:31:28 +08:00
Nguyen Anh Quynh
bf54d4b1a8 python: add targets 'sdist' & 'sdist3' to Makefile 2015-01-30 14:20:09 +08:00
Nguyen Anh Quynh
8113cda2f9 python: delete src/ in Makefile 2015-01-30 13:27:25 +08:00
Nguyen Anh Quynh
6b9b032081 python: fix setup.py, so we only copy the core with sdist, thus normal build/compile process does not build the core 2015-01-30 10:21:09 +08:00
Nguyen Tan Cong
dfe827e86a reverse -b option in Makefile; parse parameters with parse_known_args to ignore error when passing extra options; fixbug python3: use print statement 2015-01-30 00:25:08 +07:00
Nguyen Tan Cong
7c03cd88ed Edit Makefile to appropriate with new setup.py 2015-01-29 23:21:35 +07:00
Nguyen Anh Quynh
984d45068c Makefile: add 'check' target 2014-10-01 16:42:29 +08:00
danghvu
ebeec9d9c2 Cython: update installation and tests to v3 2014-09-29 11:55:01 -05:00
Nguyen Anh Quynh
553bb488d7 python: support XCore 2014-05-26 23:47:45 +08:00
danghvu
0c478ab2f9 Fix Makefile to use && as well in bindings 2014-05-12 14:35:54 -05:00
Ole André Vadla Ravnås
e3ef6659ed Makefile: add support for building python binding out-of-tree 2014-05-01 00:53:01 +02:00
Nguyen Anh Quynh
e5d30e6980 python: add install3 target for installing Python3 package 2014-04-14 16:33:04 +08:00
Nguyen Anh Quynh
aaaf3458d3 python: update clean target for *.pyx files 2014-01-13 20:44:09 +08:00
danghvu
e61c504a9e Clean up addition cython code 2014-01-13 15:50:58 +07:00
danghvu
cfd41dd6f5 Improve cython by using CCsInsn when possible 2014-01-13 15:50:58 +07:00
Nguyen Anh Quynh
5dba289478 python: revert the directory name change, so rename 'cython' back to 'pyx' 2014-01-10 10:32:25 +08:00
Nguyen Anh Quynh
f042e5722b python: rename pyx/ to cython/ 2014-01-10 09:40:55 +08:00
Nguyen Anh Quynh
71fe283ec0 python: make clean should not remove everything in pyx/ 2014-01-09 10:24:22 +08:00
Nguyen Anh Quynh
f7f15a8f4e python: cleaning pkg directory before installing 2014-01-09 08:14:42 +08:00
Nguyen Anh Quynh
b3923cf8b6 python: copying code from capstone/ to pyx/ rather than duplicating code 2014-01-08 23:18:28 +08:00
Nguyen Anh Quynh
6b8445bd11 python: proper support for cython 2014-01-08 22:55:06 +08:00
Nguyen Anh Quynh
821247001b python: another fix for cython 2014-01-08 18:41:43 +08:00
Nguyen Anh Quynh
99d365fd88 python: cython support - thanks to Tan Sheng Di for helps 2014-01-08 15:56:53 +08:00
Nguyen Anh Quynh
88db228cc9 bindings: do not delete constant files when on clean target of Makefile 2013-12-03 15:01:15 +08:00
Nguyen Anh Quynh
75c4475462 bindings: auto generate constants with 'make' 2013-12-03 13:39:49 +08:00
Nguyen Anh Quynh
210e94dbed python: add install target to Makefile 2013-12-02 20:24:38 +08:00
Nguyen Anh Quynh
bc1e2f4079 python: 'make' alone does not install python module 2013-12-02 18:08:07 +08:00
danghvu
cfb0120936 Add support for python in const_generator.py 2013-12-01 14:10:28 -06:00
Nguyen Anh Quynh
26ee41aa67 initial import 2013-11-27 12:11:31 +08:00