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

@@ -224,10 +224,15 @@ namespace EightBit
protected virtual void DecrementPC() => --this.PC.Word;
protected virtual byte FetchByte()
protected virtual void ImmediateAddress()
{
this.Bus.Address.Assign(this.PC);
IncrementPC();
this.IncrementPC();
}
protected virtual byte FetchByte()
{
this.ImmediateAddress();
return this.MemoryRead();
}