mirror of
https://github.com/MoleskiCoder/EightBitNet.git
synced 2025-02-21 15:29:04 +00:00
More Word optimisations
This commit is contained in:
parent
276b53eda6
commit
38c4c2972c
@ -219,7 +219,9 @@ namespace EightBit
|
|||||||
|
|
||||||
private void Jam()
|
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();
|
||||||
this.MemoryRead();
|
this.MemoryRead();
|
||||||
}
|
}
|
||||||
|
@ -2125,7 +2125,8 @@ namespace EightBit
|
|||||||
|
|
||||||
private void RRD()
|
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;
|
++this.MEMPTR.Word;
|
||||||
var memory = this.MemoryRead();
|
var memory = this.MemoryRead();
|
||||||
this.Tick(4);
|
this.Tick(4);
|
||||||
@ -2137,7 +2138,8 @@ namespace EightBit
|
|||||||
|
|
||||||
private void RLD()
|
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;
|
++this.MEMPTR.Word;
|
||||||
var memory = this.MemoryRead();
|
var memory = this.MemoryRead();
|
||||||
this.Tick(4);
|
this.Tick(4);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user