Rizin
unix-like reverse engineering framework and cli tools
|
Go to the source code of this file.
Classes | |
struct | op_code |
struct | op_basic |
struct | op_nbasic |
union | op |
Functions | |
static int | needWord (ut8 type) |
static int | valPrint (char *out, size_t size_out, ut8 type, ut16 value) |
static int | instrPrint (char *out, size_t size_out, const op *o) |
static int | instrGet (ut16 in, op *o, ut16 a, ut16 b) |
static int | instrGetCycles (const op *o) |
int | dcpu16_disasm (char *out, size_t size_out, const ut16 *inp, int len, int *cost) |
Variables | |
static const int | opCycle [] |
static const int | opCycleB [] = { 0, 2 } |
static const char * | opName [] |
static const char * | opNameB [] = { "reserved", "jsr" } |
static const char * | regs [] |
Definition at line 130 of file dis.c.
References op::b, delta, instrGet(), instrGetCycles(), instrPrint(), op_basic::opcode, and out.
Referenced by disassemble().
Definition at line 94 of file dis.c.
References op_basic::a, op_nbasic::a, a, op_basic::a_type, op_nbasic::a_type, op_basic::b, op::b, b, op_basic::b_type, op::code, in, op::n, needWord(), op_code::opcode, and op_nbasic::opcode.
Referenced by dcpu16_disasm().
Definition at line 124 of file dis.c.
References op_basic::a_type, op_nbasic::a_type, op::b, op_basic::b_type, op::code, op::n, needWord(), op_code::opcode, op_basic::opcode, op_nbasic::opcode, opCycle, and opCycleB.
Referenced by dcpu16_disasm().
Definition at line 77 of file dis.c.
References op_basic::a, op_nbasic::a, op_basic::a_type, op_nbasic::a_type, op_basic::b, op::b, op_basic::b_type, op::code, op::n, op_code::opcode, op_basic::opcode, op_nbasic::opcode, opName, opNameB, out, snprintf, and valPrint().
Referenced by dcpu16_disasm().
Definition at line 57 of file dis.c.
References type.
Referenced by instrGet(), and instrGetCycles().
Definition at line 38 of file dis.c.
Referenced by instrGetCycles().
Definition at line 41 of file dis.c.
Referenced by instrGetCycles().
|
static |
Definition at line 43 of file dis.c.
Referenced by instrPrint().
|
static |
Definition at line 50 of file dis.c.
Referenced by instrPrint().
|
static |
Definition at line 52 of file dis.c.
Referenced by valPrint().