Skip to content

Commit

Permalink
[skip ci] fix FSR effect
Browse files Browse the repository at this point in the history
  • Loading branch information
imbillow committed Apr 30, 2024
1 parent e3e31bc commit 8e38eb2
Show file tree
Hide file tree
Showing 3 changed files with 209 additions and 58 deletions.
13 changes: 12 additions & 1 deletion librz/arch/isa/pic/pic18_analysis.inc
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,20 @@
#include "pic_pic18.h"
#include "pic18_esil.inc"

typedef struct {
enum {
ILOpEff_None,
ILOpEff_PostDec,
ILOpEff_PostInc,
ILOpEff_PreInc,
} tag;
char fsr[8];
} ILOpEff;

typedef struct {
const Pic18Op *op;
const HtSU *mm;
ILOpEff eff;
} Pic18ILContext;

#include "pic18_il.inc"
Expand Down Expand Up @@ -231,7 +242,7 @@ static int analysis_pic18_op(
.op = &op,
.mm = ((PicContext *)analysis->plugin_data)->pic18_mm,
};
aop->il_op = pic18_il(&ctx);
aop->il_op = pic18_il_op_finally(&ctx);
}

if (mask & RZ_ANALYSIS_OP_MASK_DISASM) {
Expand Down
Loading

0 comments on commit 8e38eb2

Please sign in to comment.