7 #include <capstone/capstone.h>
17 if (ins->detail ==
NULL)
20 mips = &(ins->detail->mips);
24 for (
i = 0;
i <
mips->op_count;
i++) {
26 switch((
int)
op->type) {
36 printf(
"\t\toperands[%u].type: MEM\n",
i);
38 printf(
"\t\t\toperands[%u].mem.base: REG = %s\n",
40 if (
op->mem.disp != 0)
41 printf(
"\t\t\toperands[%u].mem.disp: 0x%" PRIx64 "\n",
i,
op->mem.disp);
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,...)
@ MIPS_OP_REG
= CS_OP_REG (Register operand).
@ MIPS_OP_IMM
= CS_OP_IMM (Immediate operand).
@ MIPS_OP_MEM
= CS_OP_MEM (Memory operand).