Simplify long/short branch

This commit is contained in:
Adrian Conlon committed 2026-05-11 14:59:06 +01:00
1 parent 0e48e86edf
commit f1c02dd012
1 file changed
+2 -6
+2 -6
View File
@@ -866,15 +866,10 @@ namespace MC6809
private void LBGT() => this.BranchLong(this.GT);
private void LBLE() => this.BranchLong(this.LE);
private void BranchShort(bool condition)
{
this.Branch(this.EA, condition);
this.SwallowRead();
}
private void BranchShort(bool condition) => _ = this.Branch(this.EA, condition);
private void BranchLong(bool condition)
{
this.SwallowRead();
if (this.Branch(this.EA, condition))
{
this.SwallowRead();
@@ -883,6 +878,7 @@ namespace MC6809
private bool Branch(Register16 destination, bool condition)
{
this.SwallowRead();
if (condition)
{
this.Jump(destination);