Merge pull request #560 from cxd4/wutt-wutt-in-da-VABS

forgot to re-use `del = EleSpec[RSPOpC.rs].B[el];` in VABS
This commit is contained in:
zilmar 2015-08-12 13:37:52 +10:00
commit a880e37ff7
1 changed files with 1 additions and 1 deletions

View File

@ -923,7 +923,7 @@ void RSP_Vector_VABS (void) {
if (RSP_Vect[RSPOpC.rd].HW[el] > 0) {
result.HW[el] = RSP_Vect[RSPOpC.rt].UHW[del];
} else if (RSP_Vect[RSPOpC.rd].HW[el] < 0) {
if (RSP_Vect[RSPOpC.rt].UHW[EleSpec[RSPOpC.rs].B[el]] == 0x8000) {
if (RSP_Vect[RSPOpC.rt].UHW[del] == 0x8000) {
result.HW[el] = 0x7FFF;
} else {
result.HW[el] = RSP_Vect[RSPOpC.rt].HW[del] * -1;