5 #ifndef _INCLUDE_XAP_DIS_H_
6 #define _INCLUDE_XAP_DIS_H_
10 #define __packed __attribute__((__packed__))
17 #if __sun || defined(_MSC_VER)
19 #warning XXX related to sunstudio :O
64 #define OPCODE_SHIFT 4
65 #define OPCODE_MASK 0xF
66 #define OPERAND_SHIFT 8
68 #define INST_NOP 0x0000
69 #define INST_BRK 0x0004
70 #define INST_SLEEP 0x0008
72 #define INST_SIF 0x000C
73 #define INST_RTS 0x00E2
74 #define INST_BRXL 0xfe09
75 #define INST_BC 0xff09
82 #define DATA_MODE_IMMEDIATE 0
83 #define DATA_MODE_DIRECT 1
84 #define DATA_MODE_INDEXED_X 2
85 #define DATA_MODE_INDEXED_Y 3
87 #define ADDR_MODE_RELATIVE 0
88 #define ADDR_MODE_X_RELATIVE 2
static void xap_decode(struct state *s, struct directive *d)
struct instruction d_inst
struct directive * d_next
struct directive * l_refs[666]
const unsigned char * s_buf
unsigned int s_prefix_val
struct directive * s_nopd