Rizin
unix-like reverse engineering framework and cli tools
|
Go to the source code of this file.
Classes | |
struct | msp430_cmd |
Enumerations | |
enum | msp430_oneop_opcodes { MSP430_RRC , MSP430_SWPB , MSP430_RRA , MSP430_SXT , MSP430_PUSH , MSP430_CALL , MSP430_RETI , MSP430_UNUSED } |
enum | msp430_jumps { MSP430_JNE , MSP430_JEQ , MSP430_JNC , MSP430_JC , MSP430_JN , MSP430_JGE , MSP430_JL , MSP430_JMP } |
enum | msp430_twoop_opcodes { MSP430_JMP_OPC = 0x1 , MSP430_MOV = 0x4 , MSP430_ADD , MSP430_ADDC , MSP430_SUBC , MSP430_SUB , MSP430_CMP , MSP430_DADD , MSP430_BIT , MSP430_BIC , MSP430_BIS , MSP430_XOR , MSP430_AND } |
enum | msp430_addr_modes { MSP430_DIRECT , MSP430_INDEXED , MSP430_INDIRECT , MSP430_INDIRECT_INC } |
enum | msp430_cmd_type { MSP430_ONEOP , MSP430_TWOOP , MSP430_JUMP , MSP430_INV } |
enum | msp430_registers { MSP430_PC , MSP430_SP , MSP430_SR , MSP430_R3 , MSP430_R4 , MSP430_R5 , MSP430_R6 , MSP430_R7 , MSP430_R8 , MSP430_R9 , MSP430_R10 , MSP430_R11 , MSP430_R12 , MSP430_R13 , MSP430_R14 , MSP430_R15 } |
Functions | |
int | msp430_decode_command (const ut8 *instr, int len, struct msp430_cmd *cmd) |
enum msp430_addr_modes |
Enumerator | |
---|---|
MSP430_DIRECT | |
MSP430_INDEXED | |
MSP430_INDIRECT | |
MSP430_INDIRECT_INC |
Definition at line 48 of file msp430_disas.h.
enum msp430_cmd_type |
Enumerator | |
---|---|
MSP430_ONEOP | |
MSP430_TWOOP | |
MSP430_JUMP | |
MSP430_INV |
Definition at line 55 of file msp430_disas.h.
enum msp430_jumps |
Enumerator | |
---|---|
MSP430_JNE | |
MSP430_JEQ | |
MSP430_JNC | |
MSP430_JC | |
MSP430_JN | |
MSP430_JGE | |
MSP430_JL | |
MSP430_JMP |
Definition at line 21 of file msp430_disas.h.
enum msp430_oneop_opcodes |
Enumerator | |
---|---|
MSP430_RRC | |
MSP430_SWPB | |
MSP430_RRA | |
MSP430_SXT | |
MSP430_PUSH | |
MSP430_CALL | |
MSP430_RETI | |
MSP430_UNUSED |
Definition at line 10 of file msp430_disas.h.
enum msp430_registers |
Enumerator | |
---|---|
MSP430_PC | |
MSP430_SP | |
MSP430_SR | |
MSP430_R3 | |
MSP430_R4 | |
MSP430_R5 | |
MSP430_R6 | |
MSP430_R7 | |
MSP430_R8 | |
MSP430_R9 | |
MSP430_R10 | |
MSP430_R11 | |
MSP430_R12 | |
MSP430_R13 | |
MSP430_R14 | |
MSP430_R15 |
Definition at line 62 of file msp430_disas.h.
enum msp430_twoop_opcodes |
Enumerator | |
---|---|
MSP430_JMP_OPC | |
MSP430_MOV | |
MSP430_ADD | |
MSP430_ADDC | |
MSP430_SUBC | |
MSP430_SUB | |
MSP430_CMP | |
MSP430_DADD | |
MSP430_BIT | |
MSP430_BIC | |
MSP430_BIS | |
MSP430_XOR | |
MSP430_AND |
Definition at line 32 of file msp430_disas.h.
int msp430_decode_command | ( | const ut8 * | instr, |
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().