Rizin
unix-like reverse engineering framework and cli tools
|
Go to the source code of this file.
Classes | |
struct | _pic_midrange_op |
Macros | |
#define | PIC_MIDRANGE_OP_ARGS_2F_MASK_F 0x3 |
#define | PIC_MIDRANGE_OP_ARGS_7F_MASK_F 0x7f |
#define | PIC_MIDRANGE_OP_ARGS_1D_7F_MASK_D (1 << 7) |
#define | PIC_MIDRANGE_OP_ARGS_1D_7F_MASK_F 0x7f |
#define | PIC_MIDRANGE_OP_ARGS_1N_6K_MASK_N (1 << 6) |
#define | PIC_MIDRANGE_OP_ARGS_1N_6K_MASK_K 0x3f |
#define | PIC_MIDRANGE_OP_ARGS_3B_7F_MASK_B (0x7 << 7) |
#define | PIC_MIDRANGE_OP_ARGS_3B_7F_MASK_F 0x7f |
#define | PIC_MIDRANGE_OP_ARGS_4K_MASK_K 0xf |
#define | PIC_MIDRANGE_OP_ARGS_8K_MASK_K 0xff |
#define | PIC_MIDRANGE_OP_ARGS_9K_MASK_K 0x1ff |
#define | PIC_MIDRANGE_OP_ARGS_11K_MASK_K 0x7ff |
#define | PIC_MIDRANGE_OP_ARGS_1N_2M_MASK_N (1 << 2) |
#define | PIC_MIDRANGE_OP_ARGS_1N_2M_MASK_M 0x3 |
Typedefs | |
typedef struct _pic_midrange_op | PicMidrangeOpInfo |
Functions | |
PicMidrangeOpcode | pic_midrange_get_opcode (ut16 instr) |
const PicMidrangeOpInfo * | pic_midrange_get_op_info (PicMidrangeOpcode opcode) |
int | pic_midrange_disassemble (RzAsmOp *op, char *opbuf, const ut8 *b, int l) |
#define PIC_MIDRANGE_OP_ARGS_11K_MASK_K 0x7ff |
Definition at line 35 of file pic_midrange.h.
#define PIC_MIDRANGE_OP_ARGS_1D_7F_MASK_D (1 << 7) |
Definition at line 26 of file pic_midrange.h.
#define PIC_MIDRANGE_OP_ARGS_1D_7F_MASK_F 0x7f |
Definition at line 27 of file pic_midrange.h.
#define PIC_MIDRANGE_OP_ARGS_1N_2M_MASK_M 0x3 |
Definition at line 37 of file pic_midrange.h.
#define PIC_MIDRANGE_OP_ARGS_1N_2M_MASK_N (1 << 2) |
Definition at line 36 of file pic_midrange.h.
#define PIC_MIDRANGE_OP_ARGS_1N_6K_MASK_K 0x3f |
Definition at line 29 of file pic_midrange.h.
#define PIC_MIDRANGE_OP_ARGS_1N_6K_MASK_N (1 << 6) |
Definition at line 28 of file pic_midrange.h.
#define PIC_MIDRANGE_OP_ARGS_2F_MASK_F 0x3 |
Definition at line 24 of file pic_midrange.h.
#define PIC_MIDRANGE_OP_ARGS_3B_7F_MASK_B (0x7 << 7) |
Definition at line 30 of file pic_midrange.h.
#define PIC_MIDRANGE_OP_ARGS_3B_7F_MASK_F 0x7f |
Definition at line 31 of file pic_midrange.h.
#define PIC_MIDRANGE_OP_ARGS_4K_MASK_K 0xf |
Definition at line 32 of file pic_midrange.h.
#define PIC_MIDRANGE_OP_ARGS_7F_MASK_F 0x7f |
Definition at line 25 of file pic_midrange.h.
#define PIC_MIDRANGE_OP_ARGS_8K_MASK_K 0xff |
Definition at line 33 of file pic_midrange.h.
#define PIC_MIDRANGE_OP_ARGS_9K_MASK_K 0x1ff |
Definition at line 34 of file pic_midrange.h.
typedef struct _pic_midrange_op PicMidrangeOpInfo |
enum PicMidrangeOpArgs |
Definition at line 10 of file pic_midrange.h.
enum PicMidrangeOpcode |
Definition at line 44 of file pic_midrange.h.
Definition at line 159 of file pic_midrange.c.
References _pic_midrange_op::args, b, test-lz4-speed::branch, EMIT_INVALID, _pic_midrange_op::mnemonic, NULL, pic_midrange_get_op_info(), pic_midrange_get_opcode(), PIC_MIDRANGE_OP_ARGS_11K, PIC_MIDRANGE_OP_ARGS_11K_MASK_K, PIC_MIDRANGE_OP_ARGS_1D_7F, PIC_MIDRANGE_OP_ARGS_1D_7F_MASK_D, PIC_MIDRANGE_OP_ARGS_1D_7F_MASK_F, PIC_MIDRANGE_OP_ARGS_1N_2M, PIC_MIDRANGE_OP_ARGS_1N_2M_MASK_M, PIC_MIDRANGE_OP_ARGS_1N_2M_MASK_N, PIC_MIDRANGE_OP_ARGS_1N_6K, PIC_MIDRANGE_OP_ARGS_1N_6K_MASK_K, PIC_MIDRANGE_OP_ARGS_1N_6K_MASK_N, PIC_MIDRANGE_OP_ARGS_2F, PIC_MIDRANGE_OP_ARGS_2F_MASK_F, PIC_MIDRANGE_OP_ARGS_3B_7F, PIC_MIDRANGE_OP_ARGS_3B_7F_MASK_B, PIC_MIDRANGE_OP_ARGS_3B_7F_MASK_F, PIC_MIDRANGE_OP_ARGS_4K, PIC_MIDRANGE_OP_ARGS_4K_MASK_K, PIC_MIDRANGE_OP_ARGS_7F, PIC_MIDRANGE_OP_ARGS_7F_MASK_F, PIC_MIDRANGE_OP_ARGS_8K, PIC_MIDRANGE_OP_ARGS_8K_MASK_K, PIC_MIDRANGE_OP_ARGS_9K, PIC_MIDRANGE_OP_ARGS_9K_MASK_K, PIC_MIDRANGE_OP_ARGS_NONE, PIC_MIDRANGE_OPCODE_ADDFSR, PIC_MIDRANGE_OPCODE_INVALID, PicMidrangeFsrOps, rz_read_le16(), sdb_fmt(), snprintf, and st16.
Referenced by asm_pic_disassemble().
const PicMidrangeOpInfo* pic_midrange_get_op_info | ( | PicMidrangeOpcode | opcode | ) |
Definition at line 152 of file pic_midrange.c.
References NULL, pic_midrange_op_info, and PIC_MIDRANGE_OPCODE_INVALID.
Referenced by pic_midrange_disassemble().
PicMidrangeOpcode pic_midrange_get_opcode | ( | ut16 | instr | ) |
Definition at line 65 of file pic_midrange.c.
References PIC_MIDRANGE_OPCODE_ADDFSR, PIC_MIDRANGE_OPCODE_ADDLW, PIC_MIDRANGE_OPCODE_ADDWF, PIC_MIDRANGE_OPCODE_ADDWFC, PIC_MIDRANGE_OPCODE_ANDLW, PIC_MIDRANGE_OPCODE_ANDWF, PIC_MIDRANGE_OPCODE_ASRF, PIC_MIDRANGE_OPCODE_BCF, PIC_MIDRANGE_OPCODE_BRA, PIC_MIDRANGE_OPCODE_BRW, PIC_MIDRANGE_OPCODE_BSF, PIC_MIDRANGE_OPCODE_BTFSC, PIC_MIDRANGE_OPCODE_BTFSS, PIC_MIDRANGE_OPCODE_CALL, PIC_MIDRANGE_OPCODE_CALLW, PIC_MIDRANGE_OPCODE_CLR, PIC_MIDRANGE_OPCODE_CLRWDT, PIC_MIDRANGE_OPCODE_COMF, PIC_MIDRANGE_OPCODE_DECF, PIC_MIDRANGE_OPCODE_DECFSZ, PIC_MIDRANGE_OPCODE_GOTO, PIC_MIDRANGE_OPCODE_INCF, PIC_MIDRANGE_OPCODE_INCFSZ, PIC_MIDRANGE_OPCODE_INVALID, PIC_MIDRANGE_OPCODE_IORLW, PIC_MIDRANGE_OPCODE_IORWF, PIC_MIDRANGE_OPCODE_LSLF, PIC_MIDRANGE_OPCODE_LSRF, PIC_MIDRANGE_OPCODE_MOVF, PIC_MIDRANGE_OPCODE_MOVIW_1, PIC_MIDRANGE_OPCODE_MOVIW_2, PIC_MIDRANGE_OPCODE_MOVLB, PIC_MIDRANGE_OPCODE_MOVLP, PIC_MIDRANGE_OPCODE_MOVLW, PIC_MIDRANGE_OPCODE_MOVWF, PIC_MIDRANGE_OPCODE_MOVWI_1, PIC_MIDRANGE_OPCODE_MOVWI_2, PIC_MIDRANGE_OPCODE_NOP, PIC_MIDRANGE_OPCODE_OPTION, PIC_MIDRANGE_OPCODE_RESET, PIC_MIDRANGE_OPCODE_RETFIE, PIC_MIDRANGE_OPCODE_RETLW, PIC_MIDRANGE_OPCODE_RETURN, PIC_MIDRANGE_OPCODE_RLF, PIC_MIDRANGE_OPCODE_RRF, PIC_MIDRANGE_OPCODE_SLEEP, PIC_MIDRANGE_OPCODE_SUBLW, PIC_MIDRANGE_OPCODE_SUBWF, PIC_MIDRANGE_OPCODE_SUBWFB, PIC_MIDRANGE_OPCODE_SWAPF, PIC_MIDRANGE_OPCODE_TRIS, PIC_MIDRANGE_OPCODE_XORLW, and PIC_MIDRANGE_OPCODE_XORWF.
Referenced by analysis_pic_midrange_op(), and pic_midrange_disassemble().