Rizin
unix-like reverse engineering framework and cli tools
|
Go to the source code of this file.
Macros | |
#define | USE_INTERNAL_PPC(x) ((x)->options & VLE_INTERNAL_PPC) |
#define | E_NONE 0 |
#define | E_BD15 1 |
#define | E_BD15b 2 |
#define | E_BD15c 3 |
#define | E_BD24 4 |
#define | E_D 5 |
#define | E_D8 6 |
#define | E_D8_N 7 |
#define | E_I16A 8 |
#define | E_I16L 9 |
#define | E_I16LS 10 |
#define | E_IA16 11 |
#define | E_IA16U 12 |
#define | E_LI20 13 |
#define | E_M 14 |
#define | E_SCI8 15 |
#define | E_SCI8CR 16 |
#define | E_SCI8I 17 |
#define | E_X 18 |
#define | E_XCR 19 |
#define | E_XL 20 |
#define | E_XLSP 21 |
#define | E_XRA 22 |
#define | E_MASK_X 0x03FFF800 |
#define | E_MASK_XL 0x03FFF801 |
#define | E_MASK_D 0x03FFFFFF |
#define | E_MASK_D8 0x03FF00FF |
#define | E_MASK_I16A 0x03FF07FF |
#define | E_MASK_SCI8 0x03FF07FF |
#define | E_MASK_I16L 0x03FF07FF |
#define | E_MASK_BD24 0x03FFFFFE |
#define | E_MASK_BD15 0x000CFFFE |
#define | E_MASK_IA16 0x03FF07FF |
#define | E_MASK_LI20 0x03FF7FFF |
#define | E_MASK_M 0x03FFFFFE |
#define | F_NONE 0 |
#define | F_X 1 |
#define | F_XO 2 |
#define | F_EVX 3 |
#define | F_CMP 4 |
#define | F_DCBF 5 |
#define | F_DCBL 6 |
#define | F_DCI 7 |
#define | F_EXT 8 |
#define | F_A 9 |
#define | F_XFX 10 |
#define | F_XER 11 |
#define | F_MFPR 12 |
#define | F_MTPR 13 |
#define | F_X_EI 14 |
#define | F_XRA 15 |
#define | F_MASK_X 0x03FFF800 |
#define | F_MASK_XO 0x03FFF800 |
#define | F_MASK_EVX 0x03FFF800 |
#define | F_MASK_CMP 0x039FF800 |
#define | F_MASK_DCBF 0x00FFF800 |
#define | F_MASK_DCBL 0x01FFF800 |
#define | F_MASK_DCI 0x00FFF800 |
#define | F_MASK_EXT 0x03FF0000 |
#define | F_MASK_A 0x01FFFFC0 |
#define | F_MASK_XFX 0x03FFF800 |
#define | F_MASK_XER 0x03FFF800 |
#define | F_MASK_MFPR 0x03FFF800 |
#define | F_MASK_MTPR 0x03FFF800 |
Functions | |
static void | set_e_fields (vle_t *v, const e_vle_t *p, ut32 data) |
static void | set_ppc_fields (vle_t *v, const ppc_t *p, ut32 data) |
static vle_t * | find_ppc (const ut8 *buffer) |
static vle_t * | find_e (const ut8 *buffer) |
static vle_t * | find_se (const ut8 *buffer) |
int | vle_init (vle_handle *handle, const ut8 *buffer, const ut32 size) |
int | vle_option (vle_handle *handle, ut32 option) |
vle_t * | vle_next (vle_handle *handle) |
void | vle_free (vle_t *instr) |
void | vle_snprint (char *str, int size, ut32 addr, vle_t *instr) |
Variables | |
const ppc_t | ppc_ops [] |
const e_vle_t | e_ops [] |
const se_vle_t | se_ops [] |
Definition at line 813 of file vle.c.
References vle_t::analysis_op, e_ops, i, vle_t::n, vle_t::name, NULL, p, RZ_NEW0, set_e_fields(), and vle_t::size.
Referenced by vle_next().
Definition at line 793 of file vle.c.
References vle_t::analysis_op, i, vle_t::n, vle_t::name, NULL, p, ppc_ops, RZ_NEW0, set_ppc_fields(), and vle_t::size.
Referenced by vle_next().
Definition at line 833 of file vle.c.
References vle_t::analysis_op, vle_t::fields, i, k, vle_t::n, vle_t::name, NULL, p, RZ_NEW0, se_ops, vle_t::size, vle_field_t::type, TYPE_JMP, TYPE_REG, and vle_field_t::value.
Referenced by vle_next().
void vle_free | ( | vle_t * | instr | ) |
Definition at line 911 of file vle.c.
References free().
Referenced by analop_vle(), and decompile_vle().
Definition at line 870 of file vle.c.
References mcore_handle::end, handle, mcore_handle::inc, mcore_handle::pos, and VLE_DEFAULTS.
Referenced by analop_vle(), and decompile_vle().
vle_t* vle_next | ( | vle_handle * | handle | ) |
Definition at line 889 of file vle.c.
References mcore_handle::end, find_e(), find_ppc(), find_se(), handle, mcore_handle::inc, NULL, op, mcore_handle::pos, and USE_INTERNAL_PPC.
Referenced by analop_vle(), and decompile_vle().
int vle_option | ( | vle_handle * | handle, |
ut32 | option | ||
) |
Definition at line 915 of file vle.c.
References add(), addr, vle_t::fields, i, n, vle_t::n, vle_t::name, PFMT32x, snprintf, cmd_descs_generate::str, vle_field_t::type, TYPE_CR, TYPE_IMM, TYPE_JMP, TYPE_MEM, TYPE_REG, and vle_field_t::value.
Referenced by decompile_vle().
Definition at line 77 of file vle.c.
Referenced by find_ppc().