#include <stdio.h>
#include <capstone/capstone.h>
Go to the source code of this file.
◆ print_insn_detail_sysz()
void print_insn_detail_sysz |
( |
csh |
handle, |
|
|
cs_insn * |
ins |
|
) |
| |
Definition at line 10 of file cstool_systemz.c.
16 if (ins->detail ==
NULL)
19 sysz = &(ins->detail->sysz);
25 switch((
int)
op->type) {
32 printf(
"\t\toperands[%u].type: ACREG = %u\n",
i,
op->reg);
38 printf(
"\t\toperands[%u].type: MEM\n",
i);
40 printf(
"\t\t\toperands[%u].mem.base: REG = %s\n",
43 printf(
"\t\t\toperands[%u].mem.index: REG = %s\n",
45 if (
op->mem.length != 0)
46 printf(
"\t\t\toperands[%u].mem.length: 0x%" PRIx64 "\n",
i,
op->mem.length);
47 if (
op->mem.disp != 0)
48 printf(
"\t\t\toperands[%u].mem.disp: 0x%" PRIx64 "\n",
i,
op->mem.disp);
55 printf(
"\tCode condition: %u\n", sysz->
cc);
static mcore_handle handle
@ SYSZ_OP_MEM
= CS_OP_MEM (Memory operand).
@ SYSZ_OP_IMM
= CS_OP_IMM (Immediate operand).
@ SYSZ_OP_ACREG
Access register operand.
@ SYSZ_OP_REG
= CS_OP_REG (Register operand).
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_sysz_op operands[6]
operands for this instruction.
References cs_sysz::cc, cs_reg_name(), handle, i, NULL, cs_sysz::op_count, cs_sysz::operands, printf(), PRIx64, SYSZ_OP_ACREG, SYSZ_OP_IMM, SYSZ_OP_MEM, SYSZ_OP_REG, and SYSZ_REG_INVALID.
Referenced by print_details().
◆ print_string_hex()
void print_string_hex |
( |
char * |
comment, |
|
|
unsigned char * |
str, |
|
|
size_t |
len |
|
) |
| |