#include <stdio.h>
#include <capstone/capstone.h>
Go to the source code of this file.
◆ get_bc_name()
| static const char* get_bc_name |
( |
int |
bc | ) |
|
|
static |
Definition at line 10 of file cstool_ppc.c.
@ PPC_BC_SO
summary overflow
@ PPC_BC_NS
not summary overflow
References PPC_BC_EQ, PPC_BC_GE, PPC_BC_GT, PPC_BC_INVALID, PPC_BC_LE, PPC_BC_LT, PPC_BC_NE, PPC_BC_NS, PPC_BC_NU, PPC_BC_SO, and PPC_BC_UN.
Referenced by print_insn_detail_ppc().
◆ print_insn_detail_ppc()
| void print_insn_detail_ppc |
( |
csh |
handle, |
|
|
cs_insn * |
ins |
|
) |
| |
Definition at line 39 of file cstool_ppc.c.
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.
References cs_reg_name(), get_bc_name(), handle, i, NULL, PPC_OP_CRX, PPC_OP_IMM, PPC_OP_MEM, PPC_OP_REG, PPC_REG_INVALID, printf(), and PRIx64.
Referenced by print_details().
◆ print_string_hex()
| void print_string_hex |
( |
char * |
comment, |
|
|
unsigned char * |
str, |
|
|
size_t |
len |
|
) |
| |