Skip to content

Commit

Permalink
FEATURE: Added button for 3 steps and button for run
Browse files Browse the repository at this point in the history
  • Loading branch information
ScottPiersall committed Nov 8, 2020
1 parent e08a57a commit 83d773a
Show file tree
Hide file tree
Showing 2 changed files with 67 additions and 20 deletions.
68 changes: 48 additions & 20 deletions SIC Simulator/Form1.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 19 additions & 0 deletions SIC Simulator/Form1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -558,5 +558,24 @@ private void setProgramCounterToToolStripMenuItem_Click(object sender, EventArgs

this.RefreshCPUDisplays();
}

private void btnRun_Click(object sender, EventArgs e)
{
while ( this.SICVirtualMachine.PC != -1)
{
this.SICVirtualMachine.PerformStep();
this.RefreshCPUDisplays();
}
}

private void btnThreeStep_Click(object sender, EventArgs e)
{
this.SICVirtualMachine.PerformStep();
this.RefreshCPUDisplays();
this.SICVirtualMachine.PerformStep();
this.RefreshCPUDisplays();
this.SICVirtualMachine.PerformStep();
this.RefreshCPUDisplays();
}
}
}

0 comments on commit 83d773a

Please sign in to comment.