From 01c86dc125446f302256ee0266e829bcb0d8b955 Mon Sep 17 00:00:00 2001 From: billow Date: Tue, 30 Apr 2024 16:04:24 +0800 Subject: [PATCH] Support RZ_ANALYSIS_OP_MASK_DISASM --- librz/arch/isa/pic/pic18_analysis.inc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/librz/arch/isa/pic/pic18_analysis.inc b/librz/arch/isa/pic/pic18_analysis.inc index 231eeac2257..b01de3c46b7 100644 --- a/librz/arch/isa/pic/pic18_analysis.inc +++ b/librz/arch/isa/pic/pic18_analysis.inc @@ -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;