From 914cb632fbfbbe56102881f4cbf1d5c755d91e31 Mon Sep 17 00:00:00 2001 From: Sonicadvance1 Date: Tue, 9 Mar 2010 21:32:50 +0000 Subject: [PATCH] Woops! I put subfcx in to subfex on accident, silly me git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5181 8ced0084-cf51-0410-be5f-012b33b47a6e --- .../Core/Src/PowerPC/Jit64/Jit_Integer.cpp | 33 ++++++++++--------- 1 file changed, 17 insertions(+), 16 deletions(-) diff --git a/Source/Core/Core/Src/PowerPC/Jit64/Jit_Integer.cpp b/Source/Core/Core/Src/PowerPC/Jit64/Jit_Integer.cpp index fc57c06bfe..13a5a24c28 100644 --- a/Source/Core/Core/Src/PowerPC/Jit64/Jit_Integer.cpp +++ b/Source/Core/Core/Src/PowerPC/Jit64/Jit_Integer.cpp @@ -386,22 +386,6 @@ void Jit64::subfic(UGeckoInstruction inst) } void Jit64::subfcx(UGeckoInstruction inst) -{ - INSTRUCTION_START; - Default(inst); - return; - /* - u32 a = m_GPR[_inst.RA]; - u32 b = m_GPR[_inst.RB]; - m_GPR[_inst.RD] = b - a; - SetCarry(a == 0 || Helper_Carry(b, 0-a)); - - if (_inst.OE) PanicAlert("OE: subfcx"); - if (_inst.Rc) Helper_UpdateCR0(m_GPR[_inst.RD]); - */ -} - -void Jit64::subfex(UGeckoInstruction inst) { INSTRUCTION_START; JITDISABLE(Integer) @@ -471,6 +455,23 @@ void Jit64::subfex(UGeckoInstruction inst) } } +void Jit64::subfex(UGeckoInstruction inst) +{ + INSTRUCTION_START; + Default(inst); + return; + /* + u32 a = m_GPR[_inst.RA]; + u32 b = m_GPR[_inst.RB]; + int carry = GetCarry(); + m_GPR[_inst.RD] = (~a) + b + carry; + SetCarry(Helper_Carry(~a, b) || Helper_Carry((~a) + b, carry)); + + if (_inst.OE) PanicAlert("OE: subfcx"); + if (_inst.Rc) Helper_UpdateCR0(m_GPR[_inst.RD]); + */ +} + void Jit64::subfx(UGeckoInstruction inst) { INSTRUCTION_START