Rizin
unix-like reverse engineering framework and cli tools
|
Go to the source code of this file.
Classes | |
struct | _pic_baseline_op |
Macros | |
#define | PIC_BASELINE_OP_ARGS_2F_MASK_F 0x3 |
#define | PIC_BASELINE_OP_ARGS_3F_MASK_F 0x7 |
#define | PIC_BASELINE_OP_ARGS_3K_MASK_K 0x7 |
#define | PIC_BASELINE_OP_ARGS_1D_5F_MASK_D (1 << 5) |
#define | PIC_BASELINE_OP_ARGS_1D_5F_MASK_F 0x1f |
#define | PIC_BASELINE_OP_ARGS_5F_MASK_F 0x1f |
#define | PIC_BASELINE_OP_ARGS_3B_5F_MASK_B (0x7 << 5) |
#define | PIC_BASELINE_OP_ARGS_3B_5F_MASK_F 0x1f |
#define | PIC_BASELINE_OP_ARGS_8K_MASK_K 0xff |
#define | PIC_BASELINE_OP_ARGS_9K_MASK_K 0x1ff |
Typedefs | |
typedef struct _pic_baseline_op | PicBaselineOpInfo |
Functions | |
PicBaselineOpcode | pic_baseline_get_opcode (ut16 instr) |
const PicBaselineOpInfo * | pic_baseline_get_op_info (PicBaselineOpcode opcode) |
int | pic_baseline_disassemble (RzAsmOp *op, char *opbuf, const ut8 *b, int l) |
#define PIC_BASELINE_OP_ARGS_1D_5F_MASK_D (1 << 5) |
Definition at line 25 of file pic_baseline.h.
#define PIC_BASELINE_OP_ARGS_1D_5F_MASK_F 0x1f |
Definition at line 26 of file pic_baseline.h.
#define PIC_BASELINE_OP_ARGS_2F_MASK_F 0x3 |
Definition at line 22 of file pic_baseline.h.
#define PIC_BASELINE_OP_ARGS_3B_5F_MASK_B (0x7 << 5) |
Definition at line 28 of file pic_baseline.h.
#define PIC_BASELINE_OP_ARGS_3B_5F_MASK_F 0x1f |
Definition at line 29 of file pic_baseline.h.
#define PIC_BASELINE_OP_ARGS_3F_MASK_F 0x7 |
Definition at line 23 of file pic_baseline.h.
#define PIC_BASELINE_OP_ARGS_3K_MASK_K 0x7 |
Definition at line 24 of file pic_baseline.h.
#define PIC_BASELINE_OP_ARGS_5F_MASK_F 0x1f |
Definition at line 27 of file pic_baseline.h.
#define PIC_BASELINE_OP_ARGS_8K_MASK_K 0xff |
Definition at line 30 of file pic_baseline.h.
#define PIC_BASELINE_OP_ARGS_9K_MASK_K 0x1ff |
Definition at line 31 of file pic_baseline.h.
typedef struct _pic_baseline_op PicBaselineOpInfo |
enum PicBaselineOpArgs |
Definition at line 10 of file pic_baseline.h.
enum PicBaselineOpcode |
Definition at line 38 of file pic_baseline.h.
Definition at line 193 of file pic_baseline.c.
References _pic_baseline_op::args, b, EMIT_INVALID, _pic_baseline_op::mnemonic, pic_baseline_get_op_info(), pic_baseline_get_opcode(), PIC_BASELINE_OP_ARGS_1D_5F, PIC_BASELINE_OP_ARGS_1D_5F_MASK_D, PIC_BASELINE_OP_ARGS_1D_5F_MASK_F, PIC_BASELINE_OP_ARGS_2F, PIC_BASELINE_OP_ARGS_2F_MASK_F, PIC_BASELINE_OP_ARGS_3B_5F, PIC_BASELINE_OP_ARGS_3B_5F_MASK_B, PIC_BASELINE_OP_ARGS_3B_5F_MASK_F, PIC_BASELINE_OP_ARGS_3F, PIC_BASELINE_OP_ARGS_3F_MASK_F, PIC_BASELINE_OP_ARGS_3K, PIC_BASELINE_OP_ARGS_3K_MASK_K, PIC_BASELINE_OP_ARGS_5F, PIC_BASELINE_OP_ARGS_5F_MASK_F, PIC_BASELINE_OP_ARGS_8K, PIC_BASELINE_OP_ARGS_8K_MASK_K, PIC_BASELINE_OP_ARGS_9K, PIC_BASELINE_OP_ARGS_9K_MASK_K, PIC_BASELINE_OP_ARGS_NONE, PIC_BASELINE_OPCODE_INVALID, rz_read_le16(), and sdb_fmt().
Referenced by asm_pic_disassemble().
const PicBaselineOpInfo* pic_baseline_get_op_info | ( | PicBaselineOpcode | opcode | ) |
Definition at line 186 of file pic_baseline.c.
References NULL, pic_baseline_op_info, and PIC_BASELINE_OPCODE_INVALID.
Referenced by pic_baseline_disassemble().
PicBaselineOpcode pic_baseline_get_opcode | ( | ut16 | instr | ) |
Definition at line 45 of file pic_baseline.c.
References PIC_BASELINE_OPCODE_ADDWF, PIC_BASELINE_OPCODE_ANDLW, PIC_BASELINE_OPCODE_ANDWF, PIC_BASELINE_OPCODE_BCF, PIC_BASELINE_OPCODE_BSF, PIC_BASELINE_OPCODE_BTFSC, PIC_BASELINE_OPCODE_BTFSS, PIC_BASELINE_OPCODE_CALL, PIC_BASELINE_OPCODE_CLRF, PIC_BASELINE_OPCODE_CLRW, PIC_BASELINE_OPCODE_CLRWDT, PIC_BASELINE_OPCODE_COMF, PIC_BASELINE_OPCODE_DECF, PIC_BASELINE_OPCODE_DECFSZ, PIC_BASELINE_OPCODE_GOTO, PIC_BASELINE_OPCODE_INCF, PIC_BASELINE_OPCODE_INCFSZ, PIC_BASELINE_OPCODE_INVALID, PIC_BASELINE_OPCODE_IORLW, PIC_BASELINE_OPCODE_IORWF, PIC_BASELINE_OPCODE_MOVF, PIC_BASELINE_OPCODE_MOVLB, PIC_BASELINE_OPCODE_MOVLW, PIC_BASELINE_OPCODE_MOVWF, PIC_BASELINE_OPCODE_NOP, PIC_BASELINE_OPCODE_OPTION, PIC_BASELINE_OPCODE_RETFIE, PIC_BASELINE_OPCODE_RETLW, PIC_BASELINE_OPCODE_RETURN, PIC_BASELINE_OPCODE_RLF, PIC_BASELINE_OPCODE_RRF, PIC_BASELINE_OPCODE_SLEEP, PIC_BASELINE_OPCODE_SUBWF, PIC_BASELINE_OPCODE_SWAPF, PIC_BASELINE_OPCODE_TRIS, PIC_BASELINE_OPCODE_XORLW, and PIC_BASELINE_OPCODE_XORWF.
Referenced by pic_baseline_disassemble().