diff options
Diffstat (limited to 'capstone/bindings/ocaml/mips.ml')
-rw-r--r-- | capstone/bindings/ocaml/mips.ml | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/capstone/bindings/ocaml/mips.ml b/capstone/bindings/ocaml/mips.ml new file mode 100644 index 000000000..f0995e352 --- /dev/null +++ b/capstone/bindings/ocaml/mips.ml @@ -0,0 +1,24 @@ +(* 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; +} |