Skip to content

Commit

Permalink
RSP: fix vmov
Browse files Browse the repository at this point in the history
  • Loading branch information
project64 committed Jul 18, 2023
1 parent 6e03d6a commit bd357c6
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions Source/Project64-rsp/Interpreter Ops.cpp
Expand Up @@ -1935,14 +1935,12 @@ void RSP_Vector_VRCPH(void)

void RSP_Vector_VMOV(void)
{
int count;

for (count = 0; count < 8; count++)
for (uint8_t i = 0; i < 8; i++)
{
RSP_ACCUM[count].HW[1] = RSP_Vect[RSPOpC.vt].u16(EleSpec[RSPOpC.e].B[count]);
RSP_ACCUM[i].HW[1] = RSP_Vect[RSPOpC.vt].ue(i, RSPOpC.e);
}
RSP_Vect[RSPOpC.vd].u16(7 - (RSPOpC.rd & 0x7)) =
RSP_Vect[RSPOpC.vt].u16(EleSpec[RSPOpC.e].B[(RSPOpC.rd & 0x7)]);
uint8_t Index = 7 - (RSPOpC.de & 0x7);
RSP_Vect[RSPOpC.vd].u16(Index) = RSP_Vect[RSPOpC.vt].ue(Index, RSPOpC.e);
}

void RSP_Vector_VRSQ(void)
Expand Down

0 comments on commit bd357c6

Please sign in to comment.