From f1c02dd012fb6fecf092c6b0fb2175b2a488dc47 Mon Sep 17 00:00:00 2001 From: Adrian Conlon Date: Mon, 11 May 2026 14:59:06 +0100 Subject: [PATCH] Simplify long/short branch --- MC6809/MC6809.cs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/MC6809/MC6809.cs b/MC6809/MC6809.cs index 8c82f45..c388c87 100644 --- a/MC6809/MC6809.cs +++ b/MC6809/MC6809.cs @@ -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);