Skip to content

Commit

Permalink
RSP: Fix up AccurateEmulation for interpreter
Browse files Browse the repository at this point in the history
  • Loading branch information
project64 committed Aug 17, 2023
1 parent 54be4d8 commit 3394be7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions Source/Project64-rsp-core/cpu/RSPCpu.cpp
Expand Up @@ -112,6 +112,10 @@ void Build_RSP(void)
for (uint8_t z = 0; z < 8; z++)
{
Indx[i].B[z] = 7 - Indx[i].B[z];
if (!AccurateEmulation)
{
EleSpec[i].B[z] = 7 - EleSpec[i].B[z];
}
}
for (uint8_t z = 0; z < 4; z++)
{
Expand Down
4 changes: 2 additions & 2 deletions Source/Project64-rsp-core/cpu/RSPInterpreterOps.cpp
Expand Up @@ -1966,8 +1966,8 @@ void RSP_Vector_VMOV(void)
}
else
{
uint8_t del = EleSpec[RSPOpC.e].B[Index];
RSP_Vect[RSPOpC.vd].u16(7 - Index) = RSP_Vect[RSPOpC.vt].s16(7 - del);
uint8_t del = EleSpec[RSPOpC.e].B[7 - Index];
RSP_Vect[RSPOpC.vd].u16(7 - Index) = RSP_Vect[RSPOpC.vt].s16(del);
}
}

Expand Down

0 comments on commit 3394be7

Please sign in to comment.