Move a routine into a slightly better place

This commit is contained in:
Adrian Conlon
2025-05-02 10:52:06 +01:00
parent 5bae07ff8d
commit 07330cc9c8
+12 -12
View File
@@ -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();