Simplify switching processor pin handling

This commit is contained in:
Adrian Conlon
2025-06-22 21:07:02 +01:00
parent 3105930027
commit 3bbf300e05
7 changed files with 500 additions and 122 deletions

View File

@@ -69,8 +69,14 @@ namespace EightBit
if (this.HALT.Lowered())
{
RaisingHALT?.Invoke(this, EventArgs.Empty);
this.HALT.Raise();
RaisedHALT?.Invoke(this, EventArgs.Empty);
try
{
this.HALT.Raise();
}
finally
{
RaisedHALT?.Invoke(this, EventArgs.Empty);
}
}
}
@@ -79,8 +85,14 @@ namespace EightBit
if (this.HALT.Raised())
{
LoweringHALT?.Invoke(this, EventArgs.Empty);
this.HALT.Lower();
LoweredHALT?.Invoke(this, EventArgs.Empty);
try
{
this.HALT.Lower();
}
finally
{
LoweredHALT?.Invoke(this, EventArgs.Empty);
}
}
}