Push more core processor handling into base classes.

This commit is contained in:
Adrian Conlon
2025-05-04 10:53:23 +01:00
parent 47374e591d
commit 2336222c97
8 changed files with 63 additions and 73 deletions

View File

@@ -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);
}