Rizin
unix-like reverse engineering framework and cli tools
|
Go to the source code of this file.
Enumerations | |
enum | { MSP430_TWOOP_OPCODE_INVALID = 0 , MSP430_TWOOP_OPCODE_SINGLEOP , MSP430_TWOOP_OPCODE_JUMP2 , MSP430_TWOOP_OPCODE_JUMP3 } |
Functions | |
static ut8 | get_twoop_opcode (ut16 instr) |
static ut8 | get_as (ut16 instr) |
static ut8 | get_bw (ut16 instr) |
static ut8 | get_ad (ut16 instr) |
static int | get_src (ut16 instr) |
static int | get_dst (ut16 instr) |
static void | remove_first_operand (struct msp430_cmd *cmd) |
static void | remove_second_operand (struct msp430_cmd *cmd) |
static int | decode_emulation (ut16 instr, struct msp430_cmd *cmd) |
static int | decode_addressing_mode (ut16 instr, ut16 op1, ut16 op2, struct msp430_cmd *cmd) |
static int | decode_twoop_opcode (ut16 instr, ut16 op1, ut16 op2, struct msp430_cmd *cmd) |
static ut8 | get_jmp_opcode (ut16 instr) |
static ut8 | get_jmp_cond (ut16 instr) |
static void | decode_jmp (ut16 instr, struct msp430_cmd *cmd) |
static int | get_oneop_opcode (ut16 instr) |
static int | decode_oneop_opcode (ut16 instr, ut16 op, struct msp430_cmd *cmd) |
int | msp430_decode_command (const ut8 *in, int len, struct msp430_cmd *cmd) |
Variables | |
static const char * | msp430_register_names [] |
static const char * | two_op_instrs [] |
static const char * | one_op_instrs [] |
static const char * | jmp_instrs [] |
anonymous enum |
Enumerator | |
---|---|
MSP430_TWOOP_OPCODE_INVALID | |
MSP430_TWOOP_OPCODE_SINGLEOP | |
MSP430_TWOOP_OPCODE_JUMP2 | |
MSP430_TWOOP_OPCODE_JUMP3 |
Definition at line 434 of file msp430_disas.c.
|
static |
Definition at line 199 of file msp430_disas.c.
References cmd, decode_emulation(), dst, get_ad(), get_as(), get_dst(), get_src(), memset(), MSP430_PC, MSP430_R3, msp430_register_names, MSP430_SR, op, snprintf, and src.
Referenced by decode_twoop_opcode().
|
static |
Definition at line 107 of file msp430_disas.c.
References cmd, dst, get_ad(), get_as(), get_bw(), get_dst(), get_src(), get_twoop_opcode(), MSP430_ADD, MSP430_ADDC, MSP430_BIC, MSP430_BIS, MSP430_CMP, MSP430_DADD, MSP430_MOV, MSP430_ONEOP, MSP430_PC, MSP430_R3, msp430_register_names, MSP430_RETI, MSP430_SP, MSP430_SR, MSP430_SUB, MSP430_SUBC, MSP430_XOR, remove_first_operand(), remove_second_operand(), snprintf, and src.
Referenced by decode_addressing_mode().
|
static |
Definition at line 329 of file msp430_disas.c.
References addr, cmd, get_jmp_cond(), get_jmp_opcode(), jmp_instrs, MSP430_JUMP, snprintf, and st16.
Referenced by msp430_decode_command().
|
static |
Definition at line 349 of file msp430_disas.c.
References cmd, get_as(), get_dst(), get_oneop_opcode(), MSP430_CALL, MSP430_ONEOP, MSP430_PC, MSP430_PUSH, MSP430_R3, msp430_register_names, MSP430_RETI, MSP430_RRA, MSP430_RRC, MSP430_SR, MSP430_SWPB, MSP430_SXT, one_op_instrs, and snprintf.
Referenced by msp430_decode_command().
|
static |
Definition at line 309 of file msp430_disas.c.
References cmd, decode_addressing_mode(), get_bw(), get_twoop_opcode(), snprintf, and two_op_instrs.
Referenced by msp430_decode_command().
Definition at line 79 of file msp430_disas.c.
Referenced by decode_addressing_mode(), and decode_emulation().
Definition at line 71 of file msp430_disas.c.
Referenced by decode_addressing_mode(), decode_emulation(), and decode_oneop_opcode().
Definition at line 75 of file msp430_disas.c.
Referenced by decode_emulation(), and decode_twoop_opcode().
Definition at line 87 of file msp430_disas.c.
Referenced by decode_addressing_mode(), decode_emulation(), and decode_oneop_opcode().
Definition at line 325 of file msp430_disas.c.
Referenced by decode_jmp().
Definition at line 321 of file msp430_disas.c.
Referenced by decode_jmp().
Definition at line 345 of file msp430_disas.c.
Referenced by decode_oneop_opcode().
Definition at line 83 of file msp430_disas.c.
Referenced by decode_addressing_mode(), and decode_emulation().
Definition at line 67 of file msp430_disas.c.
Referenced by decode_emulation(), decode_twoop_opcode(), and msp430_decode_command().
int msp430_decode_command | ( | const ut8 * | in, |
int | len, | ||
struct msp430_cmd * | cmd | ||
) |
Definition at line 441 of file msp430_disas.c.
References cmd, decode_jmp(), decode_oneop_opcode(), decode_twoop_opcode(), get_twoop_opcode(), in, len, MSP430_INV, MSP430_TWOOP, MSP430_TWOOP_OPCODE_INVALID, MSP430_TWOOP_OPCODE_JUMP2, MSP430_TWOOP_OPCODE_JUMP3, MSP430_TWOOP_OPCODE_SINGLEOP, rz_read_at_le16(), rz_read_le16(), and snprintf.
Referenced by disassemble(), and msp430_op().
|
static |
|
static |
|
static |
Definition at line 56 of file msp430_disas.c.
Referenced by decode_jmp().
|
static |
Definition at line 12 of file msp430_disas.c.
Referenced by decode_addressing_mode(), decode_emulation(), and decode_oneop_opcode().
|
static |
Definition at line 46 of file msp430_disas.c.
Referenced by decode_oneop_opcode().
|
static |
Definition at line 31 of file msp430_disas.c.
Referenced by decode_twoop_opcode().