mirror of
https://github.com/MoleskiCoder/EightBitNet.git
synced 2026-10-22 17:02:18 +00:00
Small consistency change in WDC65c02
This commit is contained in:
1 parent
56f9fecb5f
commit
959030f404
1 file changed
+4
-4
+4
-4
@@ -43,7 +43,7 @@ namespace M6502
|
||||
|
||||
#region Cycle wastage
|
||||
|
||||
private void SwallowFixup() => this.MemoryRead(this.lastFetchAddress);
|
||||
private void SwallowFixup() => this.MemoryRead(this._lastFetchAddress);
|
||||
|
||||
private void SwallowSpin(int ticks = 1)
|
||||
{
|
||||
@@ -202,11 +202,11 @@ namespace M6502
|
||||
|
||||
#region Address page fixup
|
||||
|
||||
private readonly Register16 lastFetchAddress = new();
|
||||
private readonly Register16 _lastFetchAddress = new();
|
||||
|
||||
protected override void FetchByte()
|
||||
{
|
||||
this.lastFetchAddress.Assign(this.PC);
|
||||
this._lastFetchAddress.Assign(this.PC);
|
||||
base.FetchByte();
|
||||
}
|
||||
|
||||
@@ -221,7 +221,7 @@ namespace M6502
|
||||
protected override void FixupBranch(sbyte relative)
|
||||
{
|
||||
this.NoteFixedAddress(this.PC.Joined + relative);
|
||||
this.lastFetchAddress.Assign(this.Bus.Address); // Effectively negate the use of "lastFetchAddress" for branch fixup usages
|
||||
this._lastFetchAddress.Assign(this.Bus.Address); // Effectively negate the use of "lastFetchAddress" for branch fixup usages
|
||||
this.MaybeFixup();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user