66 if (instr & (1 << 14)) {
70 switch (instr >> 11) {
75 switch (instr >> 10) {
116 switch (instr >> 7) {
124 switch (instr >> 5) {
128 switch (instr >> 3) {
133 switch (instr >> 2) {
163 #define EMIT_INVALID \
166 strcpy(opbuf, "invalid"); \
188 const char *buf_asm =
NULL;
189 switch (op_info->
args) {
238 fsr_op,
sizeof(fsr_op),
246 strcpy(opbuf, buf_asm);
RZ_API char * sdb_fmt(const char *fmt,...)
const PicMidrangeOpInfo * pic_midrange_get_op_info(PicMidrangeOpcode opcode)
static const char * PicMidrangeFsrOps[]
int pic_midrange_disassemble(RzAsmOp *op, char *opbuf, const ut8 *b, int l)
static const PicMidrangeOpInfo pic_midrange_op_info[PIC_MIDRANGE_OPCODE_INVALID]
PicMidrangeOpcode pic_midrange_get_opcode(ut16 instr)
#define PIC_MIDRANGE_OP_ARGS_1D_7F_MASK_F
@ PIC_MIDRANGE_OPCODE_ADDWFC
@ PIC_MIDRANGE_OPCODE_TRIS
@ PIC_MIDRANGE_OPCODE_DECFSZ
@ PIC_MIDRANGE_OPCODE_MOVLW
@ PIC_MIDRANGE_OPCODE_RETFIE
@ PIC_MIDRANGE_OPCODE_BCF
@ PIC_MIDRANGE_OPCODE_INVALID
@ PIC_MIDRANGE_OPCODE_MOVLP
@ PIC_MIDRANGE_OPCODE_NOP
@ PIC_MIDRANGE_OPCODE_MOVLB
@ PIC_MIDRANGE_OPCODE_INCFSZ
@ PIC_MIDRANGE_OPCODE_COMF
@ PIC_MIDRANGE_OPCODE_ANDLW
@ PIC_MIDRANGE_OPCODE_SUBWF
@ PIC_MIDRANGE_OPCODE_IORWF
@ PIC_MIDRANGE_OPCODE_RLF
@ PIC_MIDRANGE_OPCODE_MOVIW_2
@ PIC_MIDRANGE_OPCODE_BRW
@ PIC_MIDRANGE_OPCODE_MOVF
@ PIC_MIDRANGE_OPCODE_OPTION
@ PIC_MIDRANGE_OPCODE_RETLW
@ PIC_MIDRANGE_OPCODE_CLR
@ PIC_MIDRANGE_OPCODE_MOVWI_2
@ PIC_MIDRANGE_OPCODE_MOVWF
@ PIC_MIDRANGE_OPCODE_ASRF
@ PIC_MIDRANGE_OPCODE_ADDLW
@ PIC_MIDRANGE_OPCODE_BTFSC
@ PIC_MIDRANGE_OPCODE_BSF
@ PIC_MIDRANGE_OPCODE_LSRF
@ PIC_MIDRANGE_OPCODE_SUBLW
@ PIC_MIDRANGE_OPCODE_BTFSS
@ PIC_MIDRANGE_OPCODE_SWAPF
@ PIC_MIDRANGE_OPCODE_LSLF
@ PIC_MIDRANGE_OPCODE_CLRWDT
@ PIC_MIDRANGE_OPCODE_INCF
@ PIC_MIDRANGE_OPCODE_SUBWFB
@ PIC_MIDRANGE_OPCODE_CALL
@ PIC_MIDRANGE_OPCODE_MOVIW_1
@ PIC_MIDRANGE_OPCODE_ADDWF
@ PIC_MIDRANGE_OPCODE_RETURN
@ PIC_MIDRANGE_OPCODE_ADDFSR
@ PIC_MIDRANGE_OPCODE_XORWF
@ PIC_MIDRANGE_OPCODE_RESET
@ PIC_MIDRANGE_OPCODE_GOTO
@ PIC_MIDRANGE_OPCODE_MOVWI_1
@ PIC_MIDRANGE_OPCODE_IORLW
@ PIC_MIDRANGE_OPCODE_ANDWF
@ PIC_MIDRANGE_OPCODE_CALLW
@ PIC_MIDRANGE_OPCODE_XORLW
@ PIC_MIDRANGE_OPCODE_DECF
@ PIC_MIDRANGE_OPCODE_SLEEP
@ PIC_MIDRANGE_OPCODE_RRF
@ PIC_MIDRANGE_OPCODE_BRA
#define PIC_MIDRANGE_OP_ARGS_3B_7F_MASK_F
#define PIC_MIDRANGE_OP_ARGS_1D_7F_MASK_D
#define PIC_MIDRANGE_OP_ARGS_3B_7F_MASK_B
#define PIC_MIDRANGE_OP_ARGS_1N_6K_MASK_N
#define PIC_MIDRANGE_OP_ARGS_2F_MASK_F
#define PIC_MIDRANGE_OP_ARGS_1N_2M_MASK_M
#define PIC_MIDRANGE_OP_ARGS_4K_MASK_K
#define PIC_MIDRANGE_OP_ARGS_9K_MASK_K
#define PIC_MIDRANGE_OP_ARGS_1N_2M_MASK_N
#define PIC_MIDRANGE_OP_ARGS_11K_MASK_K
#define PIC_MIDRANGE_OP_ARGS_7F_MASK_F
@ PIC_MIDRANGE_OP_ARGS_11K
@ PIC_MIDRANGE_OP_ARGS_2F
@ PIC_MIDRANGE_OP_ARGS_4K
@ PIC_MIDRANGE_OP_ARGS_1D_7F
@ PIC_MIDRANGE_OP_ARGS_9K
@ PIC_MIDRANGE_OP_ARGS_1N_6K
@ PIC_MIDRANGE_OP_ARGS_8K
@ PIC_MIDRANGE_OP_ARGS_1N_2M
@ PIC_MIDRANGE_OP_ARGS_NONE
@ PIC_MIDRANGE_OP_ARGS_3B_7F
@ PIC_MIDRANGE_OP_ARGS_7F
#define PIC_MIDRANGE_OP_ARGS_1N_6K_MASK_K
#define PIC_MIDRANGE_OP_ARGS_8K_MASK_K
static ut16 rz_read_le16(const void *src)