DSPInterpreter: Improve CMPAR variable names

This commit is contained in:
Pokechu22 2021-08-19 13:03:17 -07:00
parent dc2eab1778
commit 4865b322d0

View File

@ -134,12 +134,12 @@ void Interpreter::cmpar(const UDSPInstruction opc)
const u8 rreg = (opc >> 12) & 0x1; const u8 rreg = (opc >> 12) & 0x1;
const u8 sreg = (opc >> 11) & 0x1; const u8 sreg = (opc >> 11) & 0x1;
const s64 sr = GetLongAcc(sreg); const s64 acc = GetLongAcc(sreg);
s64 rr = GetAXHigh(rreg); s64 ax = GetAXHigh(rreg);
rr <<= 16; ax <<= 16;
const s64 res = dsp_convert_long_acc(sr - rr); const s64 res = dsp_convert_long_acc(acc - ax);
UpdateSR64(res, isCarry2(sr, res), isOverflow(sr, -rr, res)); UpdateSR64(res, isCarry2(acc, res), isOverflow(acc, -ax, res));
ZeroWriteBackLog(); ZeroWriteBackLog();
} }