26 Commits

Author SHA1 Message Date
null-cell b45b16a725 edits config to support RISCV - known from v4 2023-03-16 17:29:33 +01:00
Nguyen Anh Quynh 0c84b47dcf kstool 2020 2020-06-13 14:08:50 +08:00
el poto rico c1f6742540 Add binary output option (-b) to kstool (#453)
* Add binary output option (-b) to kstool

Using -b option, kstool will print the encoded instructions to stdout
in binary format.

For example:

```
kstool -b arm64 "CCMP X0, X1, 4, EQ" 0xcafebaba | xxd
00000000: 0400 41fa                                ..A.
```

For `getopt`, this commit reuse the getopt.c from capstone-engine.

* Fix build for MSVC
2020-06-13 13:11:43 +08:00
mike-au-451 3ecb98cdfb Fix input from stdin. (#389) 2018-12-08 08:57:49 +07:00
Catena cyber e649026ff3 Remove Sparc64 as it is unsupported (#376) 2018-09-17 20:52:59 +08:00
Catena cyber 0f19fa9acd Only frees instruction if allocated (#375)
* Only frees instruction if allocated

* Avoids memory leak in ks_close for EVM
2018-09-13 12:22:39 +08:00
Nguyen Anh Quynh 80d46cee40 add Ethereum VM architecture 2018-03-31 00:08:28 +08:00
Nguyen Anh Quynh 6cfa9af9ee Revert "fix an MSVC warning for kstool.c"
This reverts commit f4778cff54.
2016-11-17 00:10:19 +08:00
Nguyen Anh Quynh f4778cff54 fix an MSVC warning for kstool.c 2016-11-16 08:04:50 -08:00
Nguyen Anh Quynh 986b7367f7 arm: handle V8 mode 2016-10-30 23:26:10 +08:00
Nguyen Anh Quynh ba96155275 add KS_VERSION_{MAJOR, MINOR, EXTRA} 2016-10-25 14:52:19 +08:00
Nguyen Anh Quynh d3eff122c6 kstool: bump version to 0.9.1 2016-07-13 11:19:35 +08:00
Nguyen Anh Quynh 19d82bc631 kstool: simplify syntax 2016-07-13 11:13:32 +08:00
Nguyen Anh Quynh dd32731c06 kstool: start-address argument is optional 2016-07-12 10:13:50 +08:00
Nguyen Anh Quynh d2f15c95c2 kstool: use %zu rather than %lu for printf(). this makes MSVC happy 2016-07-09 01:03:46 +08:00
Nguyen Anh Quynh 8a5badff0f cleanup & fix kstool.cpp 2016-07-09 00:36:32 +08:00
brendabrandy 3625751c46 added the ability to specify starting address in command line 2016-07-01 12:16:58 -04:00
Nguyen Anh Quynh 752370ba4f kstool: fix its version to match with the core version 2016-06-27 02:01:43 +08:00
Nguyen Anh Quynh 464e83588d kstool: fix issue #177 2016-06-05 10:34:31 +08:00
Nguyen Anh Quynh cc5fd72ccf make kstool compile on Windows 2016-05-31 01:38:03 -07:00
Nguyen Anh Quynh b4ef06613d Merge pull request #87 from dutchcoders/feature-read-from-stdin
allow kstool input from stdin
2016-05-27 07:29:56 +07:00
Remco 0977dd1017 fixed comments 2016-05-24 18:32:51 +02:00
Remco 07cef06983 allow kstool input from stdin 2016-05-24 17:53:17 +02:00
Ingmar Steen fc6ff81e80 The aarch64 target is actually little endian. 2016-05-24 10:01:32 +02:00
Nguyen Anh Quynh 44e15bf1df kstool: remove banner in output 2016-05-23 13:42:04 +08:00
Nguyen Anh Quynh df61510ee1 rename kstool.c to kstool.cpp 2016-05-14 15:09:27 +08:00