mirror of
https://github.com/open-goal/jak-project
synced 2026-08-19 06:02:15 -04:00
bfc4c18ada
- Adds `capstone` as a disassembling library that could eventually replace Zydis (for now left that alone) - Replicates all of the existing x86 tests to ARM64, fixed a bunch of underlying issues along the way - There are a very small handful of tests remaining that need to be enabled / fixed
31 lines
826 B
Markdown
Vendored
Generated
31 lines
826 B
Markdown
Vendored
Generated
This has been tested with OpenJDK version 6 & 7 on Ubuntu-12.04 and
|
|
Arch Linux-3.11, 64-bit.
|
|
|
|
- OpenJDK is required to compile and run this test code.
|
|
For example, install OpenJDK 6 with:
|
|
|
|
`$ sudo apt-get install openjdk-6-jre-headless openjdk-6-jdk`
|
|
|
|
- Java Native Access is required to run the code, you can install it with:
|
|
|
|
`$ sudo apt-get install libjna-java`
|
|
|
|
- To compile and run this Java test code:
|
|
|
|
```
|
|
$ make
|
|
$ ./run.sh
|
|
```
|
|
|
|
|
|
This directory contains some test code to show how to use Capstone API.
|
|
|
|
- TestBasic.java
|
|
This code shows the most simple form of API where we only want to get basic
|
|
information out of disassembled instruction, such as address, mnemonic and
|
|
operand string.
|
|
|
|
- Test<arch>.java
|
|
These code show how to retrieve architecture-specific information for each
|
|
architecture.
|