| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
open M680x_const |
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
type m680x_op_idx = { |
| 9 |
base_reg: int; |
| 10 |
offset_reg: int; |
| 11 |
offset: int; |
| 12 |
offset_addr: int; |
| 13 |
offset_bits: int; |
| 14 |
inc_dec: int; |
| 15 |
flags: int; |
| 16 |
} |
| 17 |
|
| 18 |
type m680x_op_rel = { |
| 19 |
addr_rel: int; |
| 20 |
offset: int; |
| 21 |
} |
| 22 |
|
| 23 |
type m680x_op_ext = { |
| 24 |
addr_ext: int; |
| 25 |
indirect: bool; |
| 26 |
} |
| 27 |
|
| 28 |
type m680x_op_value = |
| 29 |
| M680X_OP_INVALID of int |
| 30 |
| M680X_OP_IMMEDIATE of int |
| 31 |
| M680X_OP_REGISTER of int |
| 32 |
| M680X_OP_INDEXED of m680x_op_idx |
| 33 |
| M680X_OP_RELATIVE of m680x_op_rel |
| 34 |
| M680X_OP_EXTENDED of m680x_op_ext |
| 35 |
| M680X_OP_DIRECT of int |
| 36 |
| M680X_OP_CONSTANT of int |
| 37 |
|
| 38 |
type m680x_op = { |
| 39 |
value: m680x_op_value; |
| 40 |
size: int; |
| 41 |
access: int; |
| 42 |
} |
| 43 |
|
| 44 |
type cs_m680x = { |
| 45 |
flags: int; |
| 46 |
operands: m680x_op array; |
| 47 |
} |
| 48 |
|