mirror of
https://github.com/MoleskiCoder/EightBitNet.git
synced 2025-11-24 15:17:31 +00:00
Tidy register increment/decrement a little.
This commit is contained in:
@@ -261,14 +261,14 @@ namespace EightBit
|
||||
|
||||
protected virtual byte BusRead() => this.Bus.Read(); // N.B. Should be the only real call into the "Bus.Read" code.
|
||||
|
||||
protected virtual void IncrementPC() => this.PC.Increment();
|
||||
protected virtual Register16 IncrementPC() => this.PC.Increment();
|
||||
|
||||
protected virtual void DecrementPC() => this.PC.Decrement();
|
||||
protected virtual Register16 DecrementPC() => this.PC.Decrement();
|
||||
|
||||
protected virtual void ImmediateAddress()
|
||||
{
|
||||
this.Bus.Address.Assign(this.PC);
|
||||
this.IncrementPC();
|
||||
_ = this.IncrementPC();
|
||||
}
|
||||
|
||||
protected virtual byte FetchByte()
|
||||
|
||||
Reference in New Issue
Block a user