RSP: Fix up AccurateEmulation for interpreter

This commit is contained in:
zilmar 2023-08-17 14:22:54 +09:30
parent 54be4d8135
commit 3394be733f
2 changed files with 6 additions and 2 deletions

View File

@ -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++)
{

View File

@ -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);
}
}