#include <stdio.h>
#include <capstone/capstone.h>
Go to the source code of this file.
◆ print_insn_detail_sparc()
void print_insn_detail_sparc |
( |
csh |
handle, |
|
|
cs_insn * |
ins |
|
) |
| |
Definition at line 10 of file cstool_sparc.c.
16 if (ins->detail ==
NULL)
19 sparc = &(ins->detail->sparc);
23 for (
i = 0;
i <
sparc->op_count;
i++) {
25 switch((
int)
op->type) {
35 printf(
"\t\toperands[%u].type: MEM\n",
i);
37 printf(
"\t\t\toperands[%u].mem.base: REG = %s\n",
40 printf(
"\t\t\toperands[%u].mem.index: REG = %s\n",
42 if (
op->mem.disp != 0)
43 printf(
"\t\t\toperands[%u].mem.disp: 0x%x\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,...)
@ SPARC_OP_MEM
= CS_OP_MEM (Memory operand).
@ SPARC_OP_IMM
= CS_OP_IMM (Immediate operand).
@ SPARC_OP_REG
= CS_OP_REG (Register operand).
References cs_reg_name(), handle, i, NULL, printf(), PRIx64, SPARC_OP_IMM, SPARC_OP_MEM, SPARC_OP_REG, and X86_REG_INVALID.
Referenced by print_details().
◆ print_string_hex()
void print_string_hex |
( |
char * |
comment, |
|
|
unsigned char * |
str, |
|
|
size_t |
len |
|
) |
| |