Debugger: Cleanup LBR formatting

This commit is contained in:
michaelangel007 2023-03-29 08:25:34 -07:00
parent 9a857183ba
commit 4e8006456f

View File

@ -8508,16 +8508,18 @@ static void UpdateLBR (void)
if (g_aOpcodes[nOpcode].nAddressMode == AM_R) if (g_aOpcodes[nOpcode].nAddressMode == AM_R)
{ {
if ( (nOpcode == OPCODE_BRA) || if ((nOpcode == OPCODE_BRA)
(nOpcode == OPCODE_BPL && !(regs.ps & AF_SIGN)) || || (nOpcode == OPCODE_BPL && !(regs.ps & AF_SIGN) )
(nOpcode == OPCODE_BMI && (regs.ps & AF_SIGN)) || || (nOpcode == OPCODE_BMI && (regs.ps & AF_SIGN) )
(nOpcode == OPCODE_BVC && !(regs.ps & AF_OVERFLOW)) || || (nOpcode == OPCODE_BVC && !(regs.ps & AF_OVERFLOW))
(nOpcode == OPCODE_BVS && (regs.ps & AF_OVERFLOW)) || || (nOpcode == OPCODE_BVS && (regs.ps & AF_OVERFLOW))
(nOpcode == OPCODE_BCC && !(regs.ps & AF_CARRY)) || || (nOpcode == OPCODE_BCC && !(regs.ps & AF_CARRY) )
(nOpcode == OPCODE_BCS && (regs.ps & AF_CARRY)) || || (nOpcode == OPCODE_BCS && (regs.ps & AF_CARRY) )
(nOpcode == OPCODE_BNE && !(regs.ps & AF_ZERO)) || || (nOpcode == OPCODE_BNE && !(regs.ps & AF_ZERO) )
(nOpcode == OPCODE_BEQ && (regs.ps & AF_ZERO)) ) || (nOpcode == OPCODE_BEQ && (regs.ps & AF_ZERO) ))
isControlFlowOpcode = true; // Branch taken {
isControlFlowOpcode = true; // Branch taken
}
} }
if (isControlFlowOpcode) if (isControlFlowOpcode)