aboutsummaryrefslogtreecommitdiffstats
path: root/capstone/bindings/ocaml/mips.ml
blob: f0995e3525d90ee4b5d28634e35b66d268708244 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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;
}