50 switch ((instr >> 6) & 0x3f) {
56 if (instr & (1 << 5)) {
59 if ((instr & 0x1f) == 0) {
78 if (instr & (1 << 5)) {
81 switch (instr & 0x1f) {
194 #define EMIT_INVALID \
197 strcpy(opbuf, "invalid"); \
219 const char *buf_asm =
"invalid";
220 switch (op_info->
args) {
251 strcpy(opbuf, buf_asm);
RZ_API char * sdb_fmt(const char *fmt,...)
int pic_baseline_disassemble(RzAsmOp *op, char *opbuf, const ut8 *b, int l)
const PicBaselineOpInfo * pic_baseline_get_op_info(PicBaselineOpcode opcode)
static const PicBaselineOpInfo pic_baseline_op_info[PIC_BASELINE_OPCODE_INVALID]
PicBaselineOpcode pic_baseline_get_opcode(ut16 instr)
#define PIC_BASELINE_OP_ARGS_5F_MASK_F
#define PIC_BASELINE_OP_ARGS_2F_MASK_F
#define PIC_BASELINE_OP_ARGS_9K_MASK_K
#define PIC_BASELINE_OP_ARGS_3F_MASK_F
#define PIC_BASELINE_OP_ARGS_3B_5F_MASK_B
#define PIC_BASELINE_OP_ARGS_8K_MASK_K
#define PIC_BASELINE_OP_ARGS_1D_5F_MASK_D
#define PIC_BASELINE_OP_ARGS_3K_MASK_K
#define PIC_BASELINE_OP_ARGS_1D_5F_MASK_F
@ PIC_BASELINE_OPCODE_MOVWF
@ PIC_BASELINE_OPCODE_BTFSS
@ PIC_BASELINE_OPCODE_RETFIE
@ PIC_BASELINE_OPCODE_COMF
@ PIC_BASELINE_OPCODE_SLEEP
@ PIC_BASELINE_OPCODE_TRIS
@ PIC_BASELINE_OPCODE_RRF
@ PIC_BASELINE_OPCODE_RETLW
@ PIC_BASELINE_OPCODE_SWAPF
@ PIC_BASELINE_OPCODE_MOVF
@ PIC_BASELINE_OPCODE_CALL
@ PIC_BASELINE_OPCODE_SUBWF
@ PIC_BASELINE_OPCODE_BCF
@ PIC_BASELINE_OPCODE_BTFSC
@ PIC_BASELINE_OPCODE_MOVLW
@ PIC_BASELINE_OPCODE_CLRW
@ PIC_BASELINE_OPCODE_NOP
@ PIC_BASELINE_OPCODE_RLF
@ PIC_BASELINE_OPCODE_OPTION
@ PIC_BASELINE_OPCODE_ANDWF
@ PIC_BASELINE_OPCODE_RETURN
@ PIC_BASELINE_OPCODE_BSF
@ PIC_BASELINE_OPCODE_DECFSZ
@ PIC_BASELINE_OPCODE_IORWF
@ PIC_BASELINE_OPCODE_XORLW
@ PIC_BASELINE_OPCODE_INCF
@ PIC_BASELINE_OPCODE_XORWF
@ PIC_BASELINE_OPCODE_DECF
@ PIC_BASELINE_OPCODE_CLRWDT
@ PIC_BASELINE_OPCODE_IORLW
@ PIC_BASELINE_OPCODE_INCFSZ
@ PIC_BASELINE_OPCODE_INVALID
@ PIC_BASELINE_OPCODE_MOVLB
@ PIC_BASELINE_OPCODE_ANDLW
@ PIC_BASELINE_OPCODE_ADDWF
@ PIC_BASELINE_OPCODE_CLRF
@ PIC_BASELINE_OPCODE_GOTO
@ PIC_BASELINE_OP_ARGS_1D_5F
@ PIC_BASELINE_OP_ARGS_5F
@ PIC_BASELINE_OP_ARGS_3K
@ PIC_BASELINE_OP_ARGS_3F
@ PIC_BASELINE_OP_ARGS_8K
@ PIC_BASELINE_OP_ARGS_3B_5F
@ PIC_BASELINE_OP_ARGS_9K
@ PIC_BASELINE_OP_ARGS_2F
@ PIC_BASELINE_OP_ARGS_NONE
#define PIC_BASELINE_OP_ARGS_3B_5F_MASK_F
static ut16 rz_read_le16(const void *src)