6 #include <capstone/capstone.h>
45 if (ins->detail ==
NULL)
48 ppc = &(ins->detail->ppc);
50 printf(
"\top_count: %u\n",
ppc->op_count);
52 for (
i = 0;
i <
ppc->op_count;
i++) {
54 switch((
int)
op->type) {
64 printf(
"\t\toperands[%u].type: MEM\n",
i);
66 printf(
"\t\t\toperands[%u].mem.base: REG = %s\n",
68 if (
op->mem.disp != 0)
69 printf(
"\t\t\toperands[%u].mem.disp: 0x%x\n",
i,
op->mem.disp);
73 printf(
"\t\toperands[%u].type: CRX\n",
i);
74 printf(
"\t\t\toperands[%u].crx.scale: %d\n",
i,
op->crx.scale);
88 printf(
"\tUpdate-CR0: True\n");
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,...)
@ PPC_OP_REG
= CS_OP_REG (Register operand).
@ PPC_OP_IMM
= CS_OP_IMM (Immediate operand).
@ PPC_OP_MEM
= CS_OP_MEM (Memory operand).
@ PPC_OP_CRX
Condition Register field.
@ PPC_BC_SO
summary overflow
@ PPC_BC_NS
not summary overflow