Commit Graph

35 Commits

Author SHA1 Message Date
Sebastian Macke 8663d75c56 MOS65XX: Add binding for python
Signed-off-by: Sebastian Macke <sebastian@macke.de>
2018-12-06 22:53:43 +01:00
Nguyen Anh Quynh 2b4aec9c76 bindings: make bindings/const_generator.py compatible with recent reformat of C headers 2018-10-01 20:29:39 +08:00
Nguyen Anh Quynh afffa5d741 merge next to master 2018-07-20 12:36:50 +08:00
Nguyen Anh Quynh ed1246d79b add Ethereum VM architecture 2018-03-31 17:29:22 +08:00
Wolfgang Schwotzer 22b4d0eb41 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 0a159f1865 TMS320C64x support at tests and const generator. 2017-04-14 17:03:28 +03:00
Nguyen Anh Quynh 3e1ecc2368 Merge branch 'm68k' into next 2015-10-06 21:54:43 +08:00
Nicolas PLANEL 8b25b0abcf file.write() need bytes when file is opened in binary mode 2015-10-04 00:31:25 +08:00
Nicolas PLANEL 101bc4e2b8 file.write() need bytes when file is opened in binary mode
Avoid "TypeError: a bytes-like object is required, not 'str'" error during
write().
As the outfile need to be opened in binary mode, so python 3 require bytes
stream as argument in outfile.write().
Fixed by set all output string write to utf-8 encoding.

Signed-off-by: Nicolas PLANEL <nplanel@gmail.com>
2015-10-03 15:05:32 +10:00
Nguyen Anh Quynh 57bf77af66 bindings: add M68k_const.java & m68k_const.ml 2015-10-03 11:32:24 +08:00
Daniel Collin 2ee675c10a This adds M68K support to Capstone 2015-10-02 20:47:00 +02:00
learn_more f6ded668b4 Fix for EFlags missing in x86 target: aquynh/capstone#439 2015-08-02 20:12:51 +02:00
learn_more 78de4fa6b0 Make sure that running the tool on windows gives the same output (newline conversion) 2015-08-02 20:10:35 +02:00
learn_more 8c7b320a24 add target all for const_generator 2015-08-02 20:09:59 +02:00
Nguyen Anh Quynh 10647aef58 bindings: update java/ocaml/python after the latest changes in the core for the new API 2015-03-25 17:35:59 +08:00
Nguyen Anh Quynh 72d3c4fb81 bindings: change include dir after the patch of @pancake 2015-02-28 08:42:40 +08:00
Nguyen Anh Quynh e483c6e31d ocaml: update constants 2014-09-22 00:07:58 +08:00
Nguyen Anh Quynh a22d300c57 ocaml: add missing ARM64 instructions to arm64_const.ml. also handle arithmetic operations |, << properly for Ocaml in const_generator.py 2014-09-21 23:35:00 +08:00
Nguyen Anh Quynh 586be76d73 ocaml: separate constants into separate files, which are actually autogen by const_generator.py 2014-09-21 23:23:38 +08:00
Nguyen Anh Quynh 553bb488d7 python: support XCore 2014-05-26 23:47:45 +08:00
Nguyen Anh Quynh 749046bbdc python: initial Python3 support 2014-04-12 01:15:10 +08:00
fenuks 110ab1debd Python 3 support 2014-04-11 11:00:33 +02:00
Nguyen Anh Quynh 1c8405dbd7 python: add SystemZ support 2014-03-23 11:17:24 +08:00
Nguyen Anh Quynh 1055a2e22a python: support Sparc 2014-03-10 14:37:08 +08:00
danghvu 5611de05a9 Fix const generator to account for PPC enum style 2014-01-05 03:35:43 +07:00
Nguyen Anh Quynh 7957ed1def arm64: add some alias registers. attn: bindings 2013-12-15 00:32:20 +08:00
Nguyen Anh Quynh d912f91390 add a newline between constant types in autogen constants 2013-12-05 00:02:37 +08:00
Nguyen Anh Quynh a2f825ff07 support comments in autogen files, so constant files are more friendly 2013-12-04 23:56:24 +08:00
danghvu b09c122c14 Use casting instead of isdigit, incase negative number 2013-12-04 00:30:45 -06:00
danghvu b4b6fea875 Fix a bug const generator does not account for assigning number as enum const 2013-12-04 00:19:48 -06:00
Nguyen Anh Quynh 96a056d18b bindings: more flexible autogen on generating filenames containing constants 2013-12-02 18:37:46 +08:00
Nguyen Anh Quynh 99cfce9b1a bindings: add project info into autogen files 2013-12-02 18:07:08 +08:00
Nguyen Anh Quynh ac6d1da5b0 bindings: add author info to const_generator.py 2013-12-02 17:44:48 +08:00
danghvu cfb0120936 Add support for python in const_generator.py 2013-12-01 14:10:28 -06:00
danghvu 8054c9e065 Add a script to generate constant for binding 2013-12-01 14:10:28 -06:00