diff --git a/Processor/Instruction.hpp b/Processor/Instruction.hpp index e01a20b7..96d42cb3 100644 --- a/Processor/Instruction.hpp +++ b/Processor/Instruction.hpp @@ -750,7 +750,7 @@ unsigned BaseInstruction::get_max_reg(int reg_type) const { assert(it < start.end()); int n = *it; - res = max(res, *it++); + res = max(res, *++it + size); it += n - 1; } return res;