mirror of
https://github.com/MoleskiCoder/EightBitNet.git
synced 2025-11-25 21:17:35 +00:00
Push more core processor handling into base classes.
This commit is contained in:
@@ -84,6 +84,10 @@ namespace EightBit
|
||||
}
|
||||
}
|
||||
|
||||
protected abstract void DisableInterrupts();
|
||||
|
||||
protected abstract void EnableInterrupts();
|
||||
|
||||
protected override void IncrementPC()
|
||||
{
|
||||
if (this.HALT.Raised())
|
||||
@@ -120,6 +124,7 @@ namespace EightBit
|
||||
protected override void HandleRESET()
|
||||
{
|
||||
base.HandleRESET();
|
||||
this.DisableInterrupts();
|
||||
this.Jump(0);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user