More Word optimisations

This commit is contained in:
Adrian Conlon 2024-06-30 16:04:15 +01:00
parent 276b53eda6
commit 38c4c2972c
2 changed files with 7 additions and 3 deletions

View File

@ -219,7 +219,9 @@ namespace EightBit
private void Jam()
{
this.Bus.Address.Word = this.PC.Word--;
this.Bus.Address.Low = this.PC.Low;
this.Bus.Address.High = this.PC.High;
--this.PC.Word;
this.MemoryRead();
this.MemoryRead();
}

View File

@ -2125,7 +2125,8 @@ namespace EightBit
private void RRD()
{
this.MEMPTR.Word = this.Bus.Address.Word = this.HL.Word;
this.MEMPTR.Low = this.Bus.Address.Low = this.HL.Low;
this.MEMPTR.High = this.Bus.Address.High = this.HL.High;
++this.MEMPTR.Word;
var memory = this.MemoryRead();
this.Tick(4);
@ -2137,7 +2138,8 @@ namespace EightBit
private void RLD()
{
this.MEMPTR.Word = this.Bus.Address.Word = this.HL.Word;
this.MEMPTR.Low = this.Bus.Address.Low = this.HL.Low;
this.MEMPTR.High = this.Bus.Address.High = this.HL.High;
++this.MEMPTR.Word;
var memory = this.MemoryRead();
this.Tick(4);