Skip to content

Commit

Permalink
Support RZ_ANALYSIS_OP_MASK_DISASM
Browse files Browse the repository at this point in the history
  • Loading branch information
imbillow committed Apr 30, 2024
1 parent 70b7246 commit 01c86dc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions librz/arch/isa/pic/pic18_analysis.inc
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,10 @@ static int analysis_pic18_op(
aop->il_op = pic18_il(&ctx);
}

if (mask & RZ_ANALYSIS_OP_MASK_DISASM) {
aop->mnemonic = rz_str_newf("%s%s%s", op.mnemonic, RZ_STR_ISEMPTY(op.operands) ? "" : " ", op.operands);
}

return aop->size;
err:
aop->type = RZ_ANALYSIS_OP_TYPE_ILL;
Expand Down

0 comments on commit 01c86dc

Please sign in to comment.