mirror of
https://github.com/MoleskiCoder/EightBitNet.git
synced 2026-10-24 14:05:42 +00:00
Simplify long/short branch
This commit is contained in:
1 parent
0e48e86edf
commit
f1c02dd012
1 file changed
+2
-6
+2
-6
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user