mirror of
https://github.com/MoleskiCoder/EightBitNet.git
synced 2026-04-20 06:16:43 +00:00
More Word optimisations
This commit is contained in:
+3
-1
@@ -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();
|
||||
}
|
||||
|
||||
+4
-2
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user