Skip to content

Commit

Permalink
Stability Fixes for run functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
ScottPiersall committed Dec 16, 2021
1 parent aaa85c0 commit 2ceb15f
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 52 deletions.
68 changes: 34 additions & 34 deletions SIC Simulator/Form1.Designer.cs

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

22 changes: 6 additions & 16 deletions SIC Simulator/Form1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -570,26 +570,16 @@ private void setProgramCounterToToolStripMenuItem_Click(object sender, EventArgs

private void btnRun_Click(object sender, EventArgs e)
{
int StopAtPCAddress = 0;

DialogResult Result;
dlgStopAtMemoryAddress SetStop = new dlgStopAtMemoryAddress( this.LastLoadedFileName, this.LastLoadedStart, this.LastLoadedLength);
Result = SetStop.ShowDialog();

if ( Result == DialogResult.OK)
{
StopAtPCAddress = SetStop.HaltAtMemoryAddress;
while (this.SICVirtualMachine.PC != StopAtPCAddress )
while (this.SICVirtualMachine.PC != -1)
{
this.SICVirtualMachine.PerformStep();
this.SICVirtualMachine.PerformStep();
this.RefreshCPUDisplays();
Application.DoEvents();
System.Threading.Thread.Sleep(250);
}
this.RefreshCPUDisplays();
this.RefreshCPUDisplays();
}



}

private void btnResetProgram_Click(object sender, EventArgs e)
{
LoadObjectFile(this.txtObjectCode.Text.Split('\n'));
Expand Down
4 changes: 2 additions & 2 deletions SIC Simulator/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("21.10.28.1")]
[assembly: AssemblyFileVersion("21.10.28.1")]
[assembly: AssemblyVersion("21.11.08.1")]
[assembly: AssemblyFileVersion("21.11.08.1")]
4 changes: 4 additions & 0 deletions SIC Simulator/SIC Simulator.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
Expand All @@ -35,6 +36,9 @@
<PropertyGroup>
<ApplicationIcon>SIC_CPU.ico</ApplicationIcon>
</PropertyGroup>
<PropertyGroup>
<StartupObject>SIC_Simulator.Program</StartupObject>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Core" />
Expand Down

0 comments on commit 2ceb15f

Please sign in to comment.