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)