Step out should step over other linked jumps.

master
Nabile Rahmani 2018-12-24 17:29:06 +01:00
parent 0753fbce9b
commit bb4d756ebb
1 changed files with 11 additions and 1 deletions

View File

@ -119,7 +119,17 @@ namespace DotN64.Diagnostics
if (instruction.Special == VR4300.SpecialOpCode.JR && instruction.RS == (byte)VR4300.GPRIndex.RA)
break;
nintendo64.CPU.Cycle();
if (instruction.OP == VR4300.OpCode.JAL || instruction.Special == VR4300.SpecialOpCode.JALR)
{
var target = Cursor + VR4300.Instruction.Size * 2;
while (Cursor != target)
{
nintendo64.CPU.Cycle();
}
}
else
nintendo64.CPU.Cycle();
}
Disassemble();