5 #include <capstone/capstone.h>
15 if (ins->detail ==
NULL)
18 tms320c64x = &(ins->detail->tms320c64x);
24 switch((
int)
op->type) {
31 printf(
"\t\toperands[%u].type: IMM = 0x%x\n",
i,
op->imm);
34 printf(
"\t\toperands[%u].type: MEM\n",
i);
36 printf(
"\t\t\toperands[%u].mem.base: REG = %s\n",
38 printf(
"\t\t\toperands[%u].mem.disptype: ",
i);
41 printf(
"\t\t\toperands[%u].mem.disp: %u\n",
i,
op->mem.disp);
45 printf(
"\t\t\toperands[%u].mem.disp: %u\n",
i,
op->mem.disp);
51 printf(
"\t\t\toperands[%u].mem.unit: %u\n",
i,
op->mem.unit);
52 printf(
"\t\t\toperands[%u].mem.direction: ",
i);
59 printf(
"\t\t\toperands[%u].mem.modify: ",
i);
68 printf(
"\t\t\toperands[%u].mem.scaled: %u\n",
i,
op->mem.scaled);
77 printf(
"\tFunctional unit: ");
92 printf(
"No Functional Unit\n");
99 printf(
"\tCrosspath: 1\n");
103 printf(
"\tParallel: %s\n", (tms320c64x->
parallel == 1) ?
"true" :
"false");
static mcore_handle handle
CAPSTONE_EXPORT const char *CAPSTONE_API cs_reg_name(csh ud, unsigned int reg)
_Use_decl_annotations_ int __cdecl printf(const char *const _Format,...)
cs_tms320c64x_op operands[8]
operands for this instruction.
struct cs_tms320c64x::@364 funit
struct cs_tms320c64x::@363 condition
@ TMS320C64X_MEM_DISP_INVALID
@ TMS320C64X_MEM_DISP_CONSTANT
@ TMS320C64X_MEM_DISP_REGISTER
@ TMS320C64X_MEM_DIR_INVALID
@ TMS320C64X_MEM_MOD_POST
@ TMS320C64X_MEM_MOD_INVALID
@ TMS320C64X_OP_REG
= CS_OP_REG (Register operand).
@ TMS320C64X_OP_REGPAIR
Register pair for double word ops.
@ TMS320C64X_OP_IMM
= CS_OP_IMM (Immediate operand).
@ TMS320C64X_OP_MEM
= CS_OP_MEM (Memory operand).