mirror of
https://github.com/MoleskiCoder/EightBitNet.git
synced 2025-07-28 16:24:06 +00:00
Push more core processor handling into base classes.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user