mirror of
https://github.com/open-goal/jak-project
synced 2026-08-30 09:21:48 -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
25 lines
410 B
OCaml
Vendored
Generated
25 lines
410 B
OCaml
Vendored
Generated
(* Capstone Disassembly Engine
|
|
* By Nguyen Anh Quynh <aquynh@gmail.com>, 2013-2014 *)
|
|
|
|
open Mips_const
|
|
|
|
(* architecture specific info of instruction *)
|
|
type mips_op_mem = {
|
|
base: int;
|
|
disp: int
|
|
}
|
|
|
|
type mips_op_value =
|
|
| MIPS_OP_INVALID of int
|
|
| MIPS_OP_REG of int
|
|
| MIPS_OP_IMM of int
|
|
| MIPS_OP_MEM of mips_op_mem
|
|
|
|
type mips_op = {
|
|
value: mips_op_value;
|
|
}
|
|
|
|
type cs_mips = {
|
|
operands: mips_op array;
|
|
}
|