Tidy register increment/decrement a little.

This commit is contained in:
Adrian Conlon
2025-07-25 16:32:30 +01:00
parent c271b28495
commit 2f338c6c46
10 changed files with 68 additions and 58 deletions

View File

@@ -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()