mirror of
https://github.com/MoleskiCoder/EightBitNet.git
synced 2026-04-20 21:16:29 +00:00
Try to avoid copying around Register16 references, if possible.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
This commit is contained in:
@@ -138,7 +138,7 @@ namespace EightBit
|
||||
{
|
||||
this.MEMPTR.Low = address;
|
||||
this.MEMPTR.High = 0;
|
||||
this.Call(this.MEMPTR);
|
||||
this.Call(this.MEMPTR.Word);
|
||||
}
|
||||
|
||||
protected bool CallConditional(bool condition)
|
||||
@@ -146,7 +146,7 @@ namespace EightBit
|
||||
this.MEMPTR.Word = this.FetchWord().Word;
|
||||
if (condition)
|
||||
{
|
||||
this.Call(this.MEMPTR);
|
||||
this.Call(this.MEMPTR.Word);
|
||||
}
|
||||
|
||||
return condition;
|
||||
@@ -157,7 +157,7 @@ namespace EightBit
|
||||
this.MEMPTR.Word = this.FetchWord().Word;
|
||||
if (condition)
|
||||
{
|
||||
this.Jump(this.MEMPTR);
|
||||
this.Jump(this.MEMPTR.Word);
|
||||
}
|
||||
|
||||
return condition;
|
||||
@@ -176,7 +176,7 @@ namespace EightBit
|
||||
protected void JumpRelative(sbyte offset)
|
||||
{
|
||||
this.MEMPTR.Word = (ushort)(this.PC.Word + offset);
|
||||
this.Jump(this.MEMPTR);
|
||||
this.Jump(this.MEMPTR.Word);
|
||||
}
|
||||
|
||||
protected bool JumpRelativeConditional(bool condition)
|
||||
|
||||
Reference in New Issue
Block a user