Rizin
unix-like reverse engineering framework and cli tools
|
Go to the source code of this file.
Macros | |
#define | GET_BIT(x, n) ((((x)) >> ((n))) & 1) |
Variables | |
static const char * | cr16_regs_names [] |
static const char * | instrs_4bit [] |
static const char * | cr16_conds [] |
static const char * | ld_sw [] |
static const char * | dedicated_regs [] |
static const char * | ops_biti [] |
Definition at line 329 of file cr16_disas.c.
References cmd, CR16_ADD, CR16_ADDU, CR16_AND, CR16_ASHU, CR16_BITI, CR16_CMP, cr16_get_opcode_low(), CR16_LSH, CR16_MOV, CR16_MUL, CR16_OR, CR16_SUB, CR16_SUBC, CR16_TYPE_ADD, CR16_TYPE_AND, CR16_TYPE_BIT, CR16_TYPE_CMP, CR16_TYPE_MOV, CR16_TYPE_MUL, CR16_TYPE_OR, CR16_TYPE_SHIFT, CR16_TYPE_SUB, CR16_TYPE_XOR, CR16_XOR, and in.
Referenced by cr16_decode_i_r(), and cr16_decode_r_r().
Definition at line 120 of file cr16_disas.c.
References instrs_4bit.
Referenced by cr16_print_4bit_opcode(), and cr16_print_4biti_opcode().
Definition at line 131 of file cr16_disas.c.
References cr16_regs_names, and reg.
Referenced by cr16_decode_i_r(), cr16_print_long_reg(), cr16_print_longregreg_reg(), cr16_print_med_reg(), cr16_print_reg_med(), cr16_print_reg_reg(), cr16_print_reg_reg_rel(), cr16_print_reg_rel_reg(), cr16_print_reg_short(), cr16_print_short_reg(), and cr16_print_short_reg_rel().
Definition at line 945 of file cr16_disas.c.
References c, cmd, CR16_BAL, cr16_get_dstreg(), CR16_INSTR_MAXLEN, cr16_regs_names, CR16_TBIT_R_R, len, rz_read_at_le16(), rz_read_le16(), and snprintf.
Referenced by cr16_decode_command().
Definition at line 849 of file cr16_disas.c.
References c, cmd, cr16_get_dstreg(), cr16_get_opcode_i(), CR16_INSTR_MAXLEN, cr16_regs_names, CR16_TYPE_BCOND, len, rz_read_le16(), and snprintf.
Referenced by cr16_decode_command().
Definition at line 742 of file cr16_disas.c.
References c, cmd, CR16_BCOND_2, cr16_get_cond(), cr16_get_opcode_i(), cr16_get_opcode_low(), CR16_INSTR_MAXLEN, CR16_TYPE_BCOND, CR16_TYPE_JUMP, GET_BIT, len, rz_read_at_le16(), rz_read_le16(), snprintf, st16, and st32.
Referenced by cr16_decode_command().
Definition at line 1118 of file cr16_disas.c.
References c, cmd, cr16_get_dstreg(), cr16_get_opcode_i(), cr16_get_srcreg(), CR16_INSTR_MAXLEN, cr16_regs_names, CR16_TYPE_BIT, len, ops_biti, reg, rz_read_at_le16(), rz_read_le16(), and snprintf.
Referenced by cr16_decode_command().
Definition at line 1184 of file cr16_disas.c.
References cmd, CR16_ADD, CR16_ADDC, CR16_ADDU, CR16_AND, CR16_ASHU, CR16_BAL, CR16_BCOND01, CR16_BITI, CR16_CMP, cr16_decode_bal(), cr16_decode_bcond01i(), cr16_decode_bcond_br(), cr16_decode_biti(), cr16_decode_i_r(), cr16_decode_jmp(), cr16_decode_ld_st(), cr16_decode_loadm_storm(), cr16_decode_misc(), cr16_decode_movd(), cr16_decode_movz(), cr16_decode_muls(), cr16_decode_push_pop(), cr16_decode_r_r(), cr16_decode_scond(), cr16_decode_slpr(), cr16_get_opcode_hi(), cr16_get_opcode_low(), CR16_I_R, CR16_JAL, CR16_JUMP, CR16_LOADM, CR16_LPR, CR16_LSH, CR16_MOV, CR16_MOVD, CR16_MOVXB, CR16_MOVZB, CR16_MUL, CR16_MULSB, CR16_MULSW, CR16_MULUW, CR16_OR, CR16_POP, CR16_POPRET_1, CR16_POPRET_2, CR16_PUSH, CR16_R_R, CR16_SPR, CR16_STORM, CR16_SUB, CR16_SUBC, CR16_TBIT_I_R, CR16_TBIT_R_R, CR16_XOR, in, len, and rz_read_le16().
Referenced by cr16_op(), and disassemble().
Definition at line 367 of file cr16_disas.c.
References cmd, cr16_analysis_4bit_opcode(), cr16_check_reg_boundaries(), cr16_get_dstreg(), cr16_get_short_imm(), cr16_print_4bit_opcode(), cr16_print_4biti_opcode(), cr16_print_med_reg(), cr16_print_reg_med(), cr16_print_reg_short(), cr16_print_short_reg(), CR16_TBIT_I_R, CR16_TBIT_R_R, in, len, rz_read_at_le16(), and rz_read_le16().
Referenced by cr16_decode_command().
Definition at line 684 of file cr16_disas.c.
References c, cmd, cr16_get_dstreg(), cr16_get_srcreg(), CR16_INSTR_MAXLEN, CR16_JAL, CR16_JUMP, cr16_print_reg_reg(), cr16_regs_names, CR16_TYPE_JUMP_UNK, len, rz_read_le16(), and snprintf.
Referenced by cr16_decode_command().
Definition at line 437 of file cr16_disas.c.
References c, cmd, cr16_get_dstreg(), cr16_get_opcode_159_0(), cr16_get_srcreg(), cr16_print_ld_sw_opcode(), cr16_print_long_reg(), cr16_print_longregreg_reg(), cr16_print_reg_reg_rel(), cr16_print_reg_rel_reg(), cr16_print_short_abs18(), cr16_print_short_reg_rel(), len, rz_read_at_le16(), and rz_read_le16().
Referenced by cr16_decode_command().
Definition at line 976 of file cr16_disas.c.
References c, cmd, CR16_INSTR_MAXLEN, CR16_TYPE_MOV, instrs_4bit, len, rz_read_le16(), and snprintf.
Referenced by cr16_decode_command().
Definition at line 894 of file cr16_disas.c.
References c, cmd, CR16_DI, CR16_EI, CR16_EWAIT, CR16_INSTR_MAXLEN, CR16_NOP, CR16_RETX, CR16_TYPE_DI, CR16_TYPE_EI, CR16_TYPE_EWAIT, CR16_TYPE_EXCP, CR16_TYPE_NOP, CR16_TYPE_RETX, CR16_TYPE_WAIT, CR16_WAIT, len, rz_read_le16(), and snprintf.
Referenced by cr16_decode_command().
Definition at line 1030 of file cr16_disas.c.
References c, cmd, CR16_INSTR_MAXLEN, cr16_regs_names, imm, len, rz_read_at_le16(), rz_read_le16(), and snprintf.
Referenced by cr16_decode_command().
Definition at line 999 of file cr16_disas.c.
References c, cmd, cr16_get_dstreg(), cr16_get_srcreg(), CR16_INSTR_MAXLEN, CR16_MOVXB, CR16_MOVZB, cr16_regs_names, len, rz_read_le16(), and snprintf.
Referenced by cr16_decode_command().
Definition at line 1056 of file cr16_disas.c.
References c, cmd, cr16_get_dstreg(), cr16_get_srcreg(), CR16_INSTR_MAXLEN, CR16_MULSB, CR16_MULSW, CR16_MULUW, cr16_regs_names, len, rz_read_le16(), and snprintf.
Referenced by cr16_decode_command().
Definition at line 651 of file cr16_disas.c.
References c, cmd, CR16_INSTR_MAXLEN, CR16_POP, CR16_POPRET_1, CR16_POPRET_2, CR16_PUSH, cr16_regs_names, len, rz_read_le16(), and snprintf.
Referenced by cr16_decode_command().
Definition at line 616 of file cr16_disas.c.
References c, cmd, cr16_analysis_4bit_opcode(), cr16_get_dstreg(), cr16_get_srcreg(), cr16_print_4bit_opcode(), cr16_print_4biti_opcode(), cr16_print_reg_reg(), CR16_TBIT_I_R, CR16_TBIT_R_R, len, and rz_read_le16().
Referenced by cr16_decode_command().
Definition at line 1095 of file cr16_disas.c.
References c, cmd, cr16_get_dstreg(), cr16_get_srcreg(), CR16_INSTR_MAXLEN, cr16_regs_names, CR16_TYPE_SCOND, len, rz_read_le16(), and snprintf.
Referenced by cr16_decode_command().
Definition at line 583 of file cr16_disas.c.
References c, cmd, cr16_get_dstreg(), cr16_get_srcreg(), CR16_INSTR_MAXLEN, CR16_LPR, cr16_regs_names, CR16_SPR, CR16_TYPE_SLPR, dedicated_regs, instrs_4bit, len, rz_read_le16(), rz_str_ncpy(), and snprintf.
Referenced by cr16_decode_command().
Definition at line 112 of file cr16_disas.c.
Referenced by cr16_decode_bal(), cr16_decode_bcond01i(), cr16_decode_biti(), cr16_decode_i_r(), cr16_decode_jmp(), cr16_decode_ld_st(), cr16_decode_movz(), cr16_decode_muls(), cr16_decode_r_r(), cr16_decode_scond(), and cr16_decode_slpr().
Definition at line 100 of file cr16_disas.c.
Referenced by cr16_decode_command().
Definition at line 104 of file cr16_disas.c.
Referenced by cr16_decode_bcond01i(), cr16_decode_bcond_br(), cr16_decode_biti(), cr16_print_4biti_opcode(), and cr16_print_ld_sw_opcode().
Definition at line 96 of file cr16_disas.c.
Referenced by cr16_analysis_4bit_opcode(), cr16_decode_bcond_br(), cr16_decode_command(), cr16_print_4bit_opcode(), and cr16_print_4biti_opcode().
Definition at line 108 of file cr16_disas.c.
Referenced by cr16_decode_i_r().
Definition at line 116 of file cr16_disas.c.
Referenced by cr16_decode_biti(), cr16_decode_jmp(), cr16_decode_ld_st(), cr16_decode_movz(), cr16_decode_muls(), cr16_decode_r_r(), cr16_decode_scond(), and cr16_decode_slpr().
Definition at line 318 of file cr16_disas.c.
References cmd, cr16_check_instrs_4bit_bndrs(), cr16_get_opcode_low(), CR16_INSTR_MAXLEN, instrs_4bit, and snprintf.
Referenced by cr16_decode_i_r(), and cr16_decode_r_r().
Definition at line 307 of file cr16_disas.c.
References cmd, cr16_check_instrs_4bit_bndrs(), cr16_get_opcode_i(), cr16_get_opcode_low(), CR16_INSTR_MAXLEN, instrs_4bit, and snprintf.
Referenced by cr16_decode_i_r(), and cr16_decode_r_r().
Definition at line 138 of file cr16_disas.c.
References cmd, cr16_get_opcode_i(), CR16_INSTR_MAXLEN, CR16_TYPE_MOV, ld_sw, and snprintf.
Referenced by cr16_decode_ld_st().
Definition at line 261 of file cr16_disas.c.
References cmd, cr16_check_reg_boundaries(), CR16_INSTR_MAXLEN, cr16_regs_names, reg, snprintf, and swap.
Referenced by cr16_decode_ld_st().
|
inlinestatic |
Definition at line 277 of file cr16_disas.c.
References cmd, cr16_check_reg_boundaries(), CR16_INSTR_MAXLEN, cr16_regs_names, dst, snprintf, src, and swap.
Referenced by cr16_decode_ld_st().
Definition at line 177 of file cr16_disas.c.
References cmd, cr16_check_reg_boundaries(), CR16_INSTR_MAXLEN, cr16_regs_names, reg, and snprintf.
Referenced by cr16_decode_i_r().
Definition at line 188 of file cr16_disas.c.
References cmd, cr16_check_reg_boundaries(), CR16_INSTR_MAXLEN, cr16_regs_names, reg, and snprintf.
Referenced by cr16_decode_i_r().
Definition at line 296 of file cr16_disas.c.
References cmd, cr16_check_reg_boundaries(), CR16_INSTR_MAXLEN, cr16_regs_names, dst, snprintf, and src.
Referenced by cr16_decode_jmp(), and cr16_decode_r_r().
|
inlinestatic |
Definition at line 206 of file cr16_disas.c.
References cmd, cr16_check_reg_boundaries(), CR16_INSTR_MAXLEN, cr16_regs_names, dst, snprintf, src, and swap.
Referenced by cr16_decode_ld_st().
|
inlinestatic |
Definition at line 240 of file cr16_disas.c.
References cmd, cr16_check_reg_boundaries(), CR16_INSTR_MAXLEN, cr16_regs_names, snprintf, and swap.
Referenced by cr16_decode_ld_st().
Definition at line 166 of file cr16_disas.c.
References cmd, cr16_check_reg_boundaries(), CR16_INSTR_MAXLEN, cr16_regs_names, reg, and snprintf.
Referenced by cr16_decode_i_r().
Definition at line 199 of file cr16_disas.c.
References cmd, CR16_INSTR_MAXLEN, and snprintf.
Referenced by cr16_decode_ld_st().
Definition at line 155 of file cr16_disas.c.
References cmd, cr16_check_reg_boundaries(), CR16_INSTR_MAXLEN, cr16_regs_names, reg, and snprintf.
Referenced by cr16_decode_i_r().
|
inlinestatic |
Definition at line 223 of file cr16_disas.c.
References cmd, cr16_check_reg_boundaries(), CR16_INSTR_MAXLEN, cr16_regs_names, reg, and snprintf.
Referenced by cr16_decode_ld_st().
|
static |
Definition at line 54 of file cr16_disas.c.
|
static |
Definition at line 11 of file cr16_disas.c.
Referenced by cr16_check_reg_boundaries(), cr16_decode_bal(), cr16_decode_bcond01i(), cr16_decode_biti(), cr16_decode_jmp(), cr16_decode_movd(), cr16_decode_movz(), cr16_decode_muls(), cr16_decode_push_pop(), cr16_decode_scond(), cr16_decode_slpr(), cr16_print_long_reg(), cr16_print_longregreg_reg(), cr16_print_med_reg(), cr16_print_reg_med(), cr16_print_reg_reg(), cr16_print_reg_reg_rel(), cr16_print_reg_rel_reg(), cr16_print_reg_short(), cr16_print_short_reg(), and cr16_print_short_reg_rel().
|
static |
Definition at line 78 of file cr16_disas.c.
Referenced by cr16_decode_slpr().
|
static |
Definition at line 31 of file cr16_disas.c.
Referenced by cr16_check_instrs_4bit_bndrs(), cr16_decode_loadm_storm(), cr16_decode_slpr(), cr16_print_4bit_opcode(), and cr16_print_4biti_opcode().
|
static |
Definition at line 71 of file cr16_disas.c.
Referenced by cr16_print_ld_sw_opcode().
|
static |
Definition at line 90 of file cr16_disas.c.
Referenced by cr16_decode_biti().