2013-11-27 12:11:31 +08:00
|
|
|
(* Capstone Disassembler Engine
|
|
|
|
* By Nguyen Anh Quynh <aquynh@gmail.com>, 2013> *)
|
|
|
|
|
2014-09-21 23:23:38 +08:00
|
|
|
open Mips_const
|
|
|
|
|
2013-11-27 12:11:31 +08:00
|
|
|
(* architecture specific info of instruction *)
|
|
|
|
type mips_op_mem = {
|
|
|
|
base: int;
|
|
|
|
displ: 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 = {
|
|
|
|
op_count: int;
|
|
|
|
operands: mips_op array;
|
|
|
|
}
|