mirror of
https://github.com/MoleskiCoder/EightBitNet.git
synced 2025-11-25 06:17:29 +00:00
Simplify switching processor pin handling
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user