Go to the documentation of this file.
8 "UNCHANGED",
"READ",
"WRITE",
"READ ; WRITE",
15 if (
detail->regs_read_count > 0) {
18 for (
i = 0;
i <
detail->regs_read_count; ++
i) {
26 if (
detail->regs_write_count > 0) {
29 for (
i = 0;
i <
detail->regs_write_count; ++
i) {
40 cs_detail *
detail = insn->detail;
45 result = (
char *)malloc(
sizeof(
char));
60 switch ((
int)
op->type) {
70 comment =
" (in mnemonic)";
84 add_str(&
result,
" ; operands[%u].type: DIRECT = 0x%02X",
i,
op->direct_addr);
88 add_str(&
result,
" ; operands[%u].type: EXTENDED %s = 0x%04X",
i,
op->ext.indirect ?
"INDIRECT" :
"",
op->ext.address);
92 add_str(&
result,
" ; operands[%u].type: RELATIVE = 0x%04X",
i,
op->rel.address);
104 if ((
op->idx.offset_bits != 0) &&
115 if (
op->idx.inc_dec) {
116 const char *post_pre =
op->idx.
flags &
118 const char *inc_dec = (
op->idx.inc_dec > 0) ?
119 "increment" :
"decrement";
121 add_str(&
result,
" ; %s %s: %d", post_pre, inc_dec, abs(
op->idx.inc_dec));
@ M680X_OP_CONSTANT
Used e.g. for a bit index or page number.
@ M680X_OP_EXTENDED
= Extended addressing operand.
@ M680X_OP_DIRECT
= Direct addressing operand.
static void print_read_write_regs(char *result, csh *handle, cs_detail *detail)
@ M680X_OP_IMMEDIATE
= Immediate operand.
char * get_detail_m680x(csh *handle, cs_mode mode, cs_insn *insn)
#define M680X_FIRST_OP_IN_MNEM
static const char * s_access[]
uint8_t op_count
number of operands for the instruction or 0
#define M680X_IDX_POST_INC_DEC
const CAPSTONE_EXPORT char *CAPSTONE_API cs_reg_name(csh ud, unsigned int reg)
@ M680X_REG_PC
M6800/1/2/3/9, M6301/9.
void add_str(char **src, const char *format,...)
uint8_t flags
See: M680X instruction flags.
The M680X instruction and it's operands.
#define M680X_IDX_INDIRECT
@ CS_AC_INVALID
Uninitialized/invalid access type.
cs_m680x_op operands[M680X_OPERAND_COUNT]
operands for this insn.
#define M680X_SECOND_OP_IN_MNEM
@ M680X_OP_RELATIVE
= Relative addressing operand.
@ M680X_OP_INDEXED
= Indexed addressing operand.
@ M680X_OP_REGISTER
= Register operand.
grpc
Author(s):
autogenerated on Fri May 16 2025 02:59:17