8 #include "../arch/pic/pic_baseline.h"
9 #include "../arch/pic/pic_pic18.h"
10 #include "../arch/pic/pic_midrange.h"
15 const char *
opstr = opbuf;
16 strcpy(opbuf,
"invalid");
17 if (
a->cpu && strcasecmp(
a->cpu,
"baseline") == 0) {
19 }
else if (
a->cpu && strcasecmp(
a->cpu,
"midrange") == 0) {
21 }
else if (
a->cpu && strcasecmp(
a->cpu,
"pic18") == 0) {
25 return op->size = res;
31 .cpus =
"baseline,midrange,pic18",
34 .desc =
"PIC disassembler",
38 #ifndef RZ_PLUGIN_INCORE
RZ_API void rz_asm_op_set_asm(RzAsmOp *op, const char *str)
static int asm_pic_disassemble(RzAsm *a, RzAsmOp *op, const ut8 *b, int l)
RZ_API RzLibStruct rizin_plugin
RzAsmPlugin rz_asm_plugin_pic
static int opstr(RzAsm *a, ut8 *data, const Opcode *op)
int pic_baseline_disassemble(RzAsmOp *op, char *opbuf, const ut8 *b, int l)
int pic_midrange_disassemble(RzAsmOp *op, char *opbuf, const ut8 *b, int l)
int pic_pic18_disassemble(RzAsmOp *op, char *opbuf, const ut8 *b, int blen)