Skip to content

Commit

Permalink
Stepping over breakpoints now correctly steps.
Browse files Browse the repository at this point in the history
Fixes #9.
  • Loading branch information
danoost committed Apr 15, 2019
1 parent 30a491c commit b4d4493
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions RexSimulatorGui/Forms/RexBoardForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,8 @@ private void Worker()
{
physPC += mRexBoard.CPU.mSpRegisters[RegisterFile.SpRegister.rbase];
}

if (mRunning && mRamForm.Breakpoints.Contains(physPC)) //stop the CPU if a breakpoint has been hit
//stop the CPU if a breakpoint has been hit and we're not trying to step over it
if (!mStepping && mRunning && mRamForm.Breakpoints.Contains(physPC))
{
this.Invoke(new Action(runButton.PerformClick));
continue;
Expand Down

0 comments on commit b4d4493

Please sign in to comment.