mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-24 14:49:42 -06:00
Interpreter_Integer: Remove commented out code in subfic
This commit is contained in:
@ -137,18 +137,6 @@ void Interpreter::oris(UGeckoInstruction inst)
|
|||||||
|
|
||||||
void Interpreter::subfic(UGeckoInstruction inst)
|
void Interpreter::subfic(UGeckoInstruction inst)
|
||||||
{
|
{
|
||||||
/* u32 rra = ~rGPR[inst.RA];
|
|
||||||
s32 immediate = (s16)inst.SIMM_16 + 1;
|
|
||||||
|
|
||||||
// #define CALC_XER_CA(X,Y) (((X) + (Y) < X) ? SET_XER_CA : CLEAR_XER_CA)
|
|
||||||
if ((rra + immediate) < rra)
|
|
||||||
PowerPC::SetCarry(1);
|
|
||||||
else
|
|
||||||
PowerPC::SetCarry(0);
|
|
||||||
|
|
||||||
rGPR[inst.RD] = rra - immediate;
|
|
||||||
*/
|
|
||||||
|
|
||||||
s32 immediate = inst.SIMM_16;
|
s32 immediate = inst.SIMM_16;
|
||||||
rGPR[inst.RD] = immediate - (int)rGPR[inst.RA];
|
rGPR[inst.RD] = immediate - (int)rGPR[inst.RA];
|
||||||
PowerPC::SetCarry((rGPR[inst.RA] == 0) || (Helper_Carry(0 - rGPR[inst.RA], immediate)));
|
PowerPC::SetCarry((rGPR[inst.RA] == 0) || (Helper_Carry(0 - rGPR[inst.RA], immediate)));
|
||||||
|
Reference in New Issue
Block a user