4 #ifndef __TMS320_DASM_H__
5 #define __TMS320_DASM_H__
7 #define IDA_COMPATIBLE_MODE 1
85 #define i_list_last(x) !(((x)->i_list || (x)->m_list || (x)->f_list || (x)->syntax))
95 #define m_list_last(x) !(((x)->f || (x)->n || (x)->v))
100 #define f_list_last(x) !(((x)->f || (x)->v))
124 #define TMS320_S_INVAL 0x01
129 #define def_field(name, size) \
130 unsigned int bf_##name##_valid : 1; \
131 unsigned int bf_##name##_value : size
209 #define TMS320_F_CPU_C54X 0x0000001
210 #define TMS320_F_CPU_C55X 0x0000002
211 #define TMS320_F_CPU_C55X_PLUS 0x0000003
212 #define TMS320_F_CPU_MASK 0x00000FF
214 #define tms320_f_get_cpu(d) ((d)->features & TMS320_F_CPU_MASK)
215 #define tms320_f_set_cpu(d, v) ((d)->features = ((d)->features & ~TMS320_F_CPU_MASK) | (v))
218 #define field_valid(d, name) \
219 (d)->f.bf_##name##_valid
220 #define field_value(d, name) \
221 (d)->f.bf_##name##_value
224 #define set_field_value(d, name, value) \
226 field_valid(d, name) = 1; \
227 field_value(d, name) = value; \
230 #define set_field_value(d, name, value) \
232 field_valid(d, name) = 1; \
233 field_value(d, name) = value; \
240 #define INSN_MASK(af, an, av) \
241 { .f = af, .n = an, .v = av }
242 #define INSN_FLAG(af, av) \
243 { .f = af, .v = TMS320_FLAG_##av }
244 #define INSN_SYNTAX(...) (char *)#__VA_ARGS__
int tms320_dasm(tms320_dasm_t *, const ut8 *, int)
int tms320_dasm_init(tms320_dasm_t *)
int tms320_dasm_fini(tms320_dasm_t *)
#define def_field(name, size)
ut64(WINAPI *w32_GetEnabledXStateFeatures)()
static const z80_opcode dd[]