• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1(* Capstone Disassembly Engine
2 * M680X Backend by Wolfgang Schwotzer <wolfgang.schwotzer@gmx.net> 2017 *)
3
4open M680x_const
5
6
7(* architecture specific info of instruction *)
8type 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
18type m680x_op_rel = {
19	addr_rel: int;
20	offset: int;
21}
22
23type m680x_op_ext = {
24	addr_ext: int;
25	indirect: bool;
26}
27
28type 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
38type m680x_op = {
39	value: m680x_op_value;
40	size: int;
41	access: int;
42}
43
44type cs_m680x = {
45	flags: int;
46	operands: m680x_op array;
47}
48
49