Definition at line 69 of file 8051_disas.c.
83 ut8 val1 = 0, val2 = 0;
88 if ((arg1 ==
A_RI) || (arg1 ==
A_RN)) {
101 }
else if ((arg1 ==
A_RI) || (arg1 ==
A_RN)) {
109 }
else if ((arg2 ==
A_RI) || (arg2 ==
A_RN)) {
113 }
else if (arg1 ==
A_BIT) {
124 return strdup(
"truncated");
137 }
else if (arg1 ==
A_BIT) {
162 return strdup(
"truncated");
static char * _replace_register(char *disasm, ut8 arg, ut8 val)
static ut64 arg_offset(ut64 bank, ut16 pc, ut8 offset)
static ut64 arg_addr11(ut64 bank, ut16 pc, const ut8 *buf)
static ut64 apply_bank(ut64 ref, ut16 addr)
Construct an address with the higher bits from ref (determining the bank) and the lower from addr (of...
static _8051_op_t _8051_ops[]
return strdup("=SP r13\n" "=LR r14\n" "=PC r15\n" "=A0 r0\n" "=A1 r1\n" "=A2 r2\n" "=A3 r3\n" "=ZF zf\n" "=SF nf\n" "=OF vf\n" "=CF cf\n" "=SN or0\n" "gpr lr .32 56 0\n" "gpr pc .32 60 0\n" "gpr cpsr .32 64 0 ____tfiae_________________qvczn\n" "gpr or0 .32 68 0\n" "gpr tf .1 64.5 0 thumb\n" "gpr ef .1 64.9 0 endian\n" "gpr jf .1 64.24 0 java\n" "gpr qf .1 64.27 0 sticky_overflow\n" "gpr vf .1 64.28 0 overflow\n" "gpr cf .1 64.29 0 carry\n" "gpr zf .1 64.30 0 zero\n" "gpr nf .1 64.31 0 negative\n" "gpr itc .4 64.10 0 if_then_count\n" "gpr gef .4 64.16 0 great_or_equal\n" "gpr r0 .32 0 0\n" "gpr r1 .32 4 0\n" "gpr r2 .32 8 0\n" "gpr r3 .32 12 0\n" "gpr r4 .32 16 0\n" "gpr r5 .32 20 0\n" "gpr r6 .32 24 0\n" "gpr r7 .32 28 0\n" "gpr r8 .32 32 0\n" "gpr r9 .32 36 0\n" "gpr r10 .32 40 0\n" "gpr r11 .32 44 0\n" "gpr r12 .32 48 0\n" "gpr r13 .32 52 0\n" "gpr r14 .32 56 0\n" "gpr r15 .32 60 0\n" "gpr r16 .32 64 0\n" "gpr r17 .32 68 0\n")
RZ_API char * rz_str_newf(const char *fmt,...) RZ_PRINTF_CHECK(1
RZ_API char * rz_str_new(const char *str)
References _8051_ops, _replace_register(), A_ADDR11, A_ADDR16, A_BIT, A_DIRECT, A_IMM16, A_NONE, A_OFFSET, A_RI, A_RN, apply_bank(), _8051_op_t::arg1, _8051_op_t::arg2, _8051_op_t::arg3, arg_addr11(), arg_bit(), arg_offset(), i, len, _8051_op_t::len, mask, _8051_op_t::mask, NULL, pc, rz_str_new(), rz_str_newf(), strdup(), and _8051_op_t::string.
Referenced by disassemble(), and i8051_op().