diff options
| author | Tillmann Karras <tilkax@gmail.com> | 2014-02-16 16:48:14 +0100 |
|---|---|---|
| committer | Tillmann Karras <tilkax@gmail.com> | 2014-02-16 18:18:23 +0100 |
| commit | 9f462a00a05855b9d04c50a2b204ffe72ab995a7 (patch) | |
| tree | 9564a404e7d6b04028acf893f0bd579dc69949c0 /Source | |
| parent | 1e94853301b15fcce23db311f480b64d12ac4d41 (diff) | |
DSP: remove redundant expression
Diffstat (limited to 'Source')
| -rw-r--r-- | Source/Core/Core/DSP/DspIntArithmetic.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/Core/Core/DSP/DspIntArithmetic.cpp b/Source/Core/Core/DSP/DspIntArithmetic.cpp index 7de0327491..566c27a34e 100644 --- a/Source/Core/Core/DSP/DspIntArithmetic.cpp +++ b/Source/Core/Core/DSP/DspIntArithmetic.cpp @@ -125,18 +125,18 @@ void cmp(const UDSPInstruction opc) } // CMPAR $acS axR.h -// 1100 0001 xxxx xxxx +// 110r s001 xxxx xxxx // Compares accumulator $acS with accumulator axR.h. // Not described by Duddie's doc - at least not as a separate instruction. // // flags out: x-xx xxxx void cmpar(const UDSPInstruction opc) { - u8 rreg = ((opc >> 12) & 0x1) + DSP_REG_AXH0; + u8 rreg = (opc >> 12) & 0x1; u8 sreg = (opc >> 11) & 0x1; s64 sr = dsp_get_long_acc(sreg); - s64 rr = (s16)g_dsp.r.ax[rreg-DSP_REG_AXH0].h; + s64 rr = (s16)g_dsp.r.ax[rreg].h; rr <<= 16; s64 res = dsp_convert_long_acc(sr - rr); |
