Fix conditional bcctr.

This commit is contained in:
Andrew Church 2015-01-18 07:01:16 +09:00
parent ae4420e604
commit 54827f7267

View file

@ -2243,7 +2243,7 @@ private:
} }
void BCCTR(u32 bo, u32 bi, u32 bh, u32 lk) void BCCTR(u32 bo, u32 bi, u32 bh, u32 lk)
{ {
if(bo & 0x10 || CPU.IsCR(bi) == (bo & 0x8)) if(bo & 0x10 || CPU.IsCR(bi) == ((bo & 0x8) != 0))
{ {
const u32 nextLR = CPU.PC + 4; const u32 nextLR = CPU.PC + 4;
CPU.SetBranch(branchTarget(0, (u32)CPU.CTR), true); CPU.SetBranch(branchTarget(0, (u32)CPU.CTR), true);