mirror of
https://github.com/MoleskiCoder/EightBitNet.git
synced 2026-04-19 15:16:41 +00:00
Move a routine into a slightly better place
This commit is contained in:
+12
-12
@@ -171,6 +171,18 @@ namespace EightBit
|
||||
return condition;
|
||||
}
|
||||
|
||||
protected virtual bool JumpRelativeConditional(bool condition)
|
||||
{
|
||||
this.Intermediate.Assign(this.PC);
|
||||
++this.PC.Word;
|
||||
if (condition)
|
||||
{
|
||||
this.JumpRelative(this.MemoryRead(this.Intermediate));
|
||||
}
|
||||
|
||||
return condition;
|
||||
}
|
||||
|
||||
protected virtual bool ReturnConditional(bool condition)
|
||||
{
|
||||
if (condition)
|
||||
@@ -207,18 +219,6 @@ namespace EightBit
|
||||
|
||||
protected void JumpRelative(byte offset) => this.JumpRelative((sbyte)offset);
|
||||
|
||||
protected virtual bool JumpRelativeConditional(bool condition)
|
||||
{
|
||||
this.Intermediate.Assign(this.PC);
|
||||
++this.PC.Word;
|
||||
if (condition)
|
||||
{
|
||||
this.JumpRelative(this.MemoryRead(this.Intermediate));
|
||||
}
|
||||
|
||||
return condition;
|
||||
}
|
||||
|
||||
protected override void Return()
|
||||
{
|
||||
base.Return();
|
||||
|
||||
Reference in New Issue
Block a user