diff --git a/arch/XCore/XCoreInstPrinter.c b/arch/XCore/XCoreInstPrinter.c index 64163397..c4c741f6 100644 --- a/arch/XCore/XCoreInstPrinter.c +++ b/arch/XCore/XCoreInstPrinter.c @@ -182,9 +182,9 @@ static void set_mem_access(MCInst *MI, bool status, int reg) } else { if (reg) { MI->flat_insn->detail->xcore.operands[MI->flat_insn->detail->xcore.op_count].mem.index = reg; + // done, create the next operand slot + MI->flat_insn->detail->xcore.op_count++; } - // done, create the next operand slot - MI->flat_insn->detail->xcore.op_count++; } }