From 4e8006456f77304427ff60bb779089c78bd0d307 Mon Sep 17 00:00:00 2001 From: michaelangel007 Date: Wed, 29 Mar 2023 08:25:34 -0700 Subject: [PATCH] Debugger: Cleanup LBR formatting --- source/Debugger/Debug.cpp | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/source/Debugger/Debug.cpp b/source/Debugger/Debug.cpp index 8f36156f..9b4b8128 100644 --- a/source/Debugger/Debug.cpp +++ b/source/Debugger/Debug.cpp @@ -8508,16 +8508,18 @@ static void UpdateLBR (void) if (g_aOpcodes[nOpcode].nAddressMode == AM_R) { - if ( (nOpcode == OPCODE_BRA) || - (nOpcode == OPCODE_BPL && !(regs.ps & AF_SIGN)) || - (nOpcode == OPCODE_BMI && (regs.ps & AF_SIGN)) || - (nOpcode == OPCODE_BVC && !(regs.ps & AF_OVERFLOW)) || - (nOpcode == OPCODE_BVS && (regs.ps & AF_OVERFLOW)) || - (nOpcode == OPCODE_BCC && !(regs.ps & AF_CARRY)) || - (nOpcode == OPCODE_BCS && (regs.ps & AF_CARRY)) || - (nOpcode == OPCODE_BNE && !(regs.ps & AF_ZERO)) || - (nOpcode == OPCODE_BEQ && (regs.ps & AF_ZERO)) ) - isControlFlowOpcode = true; // Branch taken + if ((nOpcode == OPCODE_BRA) + || (nOpcode == OPCODE_BPL && !(regs.ps & AF_SIGN) ) + || (nOpcode == OPCODE_BMI && (regs.ps & AF_SIGN) ) + || (nOpcode == OPCODE_BVC && !(regs.ps & AF_OVERFLOW)) + || (nOpcode == OPCODE_BVS && (regs.ps & AF_OVERFLOW)) + || (nOpcode == OPCODE_BCC && !(regs.ps & AF_CARRY) ) + || (nOpcode == OPCODE_BCS && (regs.ps & AF_CARRY) ) + || (nOpcode == OPCODE_BNE && !(regs.ps & AF_ZERO) ) + || (nOpcode == OPCODE_BEQ && (regs.ps & AF_ZERO) )) + { + isControlFlowOpcode = true; // Branch taken + } } if (isControlFlowOpcode)