diff options
Diffstat (limited to 'capstone/bindings/ocaml/sparc.ml')
-rw-r--r-- | capstone/bindings/ocaml/sparc.ml | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/capstone/bindings/ocaml/sparc.ml b/capstone/bindings/ocaml/sparc.ml new file mode 100644 index 000000000..17df4b387 --- /dev/null +++ b/capstone/bindings/ocaml/sparc.ml @@ -0,0 +1,27 @@ +(* Capstone Disassembly Engine + * By Guillaume Jeanne <guillaume.jeanne@ensimag.fr>, 2014> *) + +open Sparc_const + +type sparc_op_mem = { + base: int; + index: int; + disp: int; +} + +type sparc_op_value = + | SPARC_OP_INVALID of int + | SPARC_OP_REG of int + | SPARC_OP_IMM of int + | SPARC_OP_MEM of sparc_op_mem + +type sparc_op = { + value: sparc_op_value; +} + +type cs_sparc = { + cc: int; + hint: int; + operands: sparc_op array; +} + |