RSP: fix LDV

This commit is contained in:
zilmar 2023-08-10 16:06:38 +09:30
parent 1d492262fd
commit c6c0a4a6d2
1 changed files with 1 additions and 1 deletions

View File

@ -2137,7 +2137,7 @@ void RSP_Opcode_LDV(void)
uint8_t Length = std::min((uint8_t)8, (uint8_t)(16 - RSPOpC.del)); uint8_t Length = std::min((uint8_t)8, (uint8_t)(16 - RSPOpC.del));
for (uint8_t i = RSPOpC.del, n = (uint8_t)(Length + RSPOpC.del); i < n; i++) for (uint8_t i = RSPOpC.del, n = (uint8_t)(Length + RSPOpC.del); i < n; i++)
{ {
RSP_Vect[RSPOpC.rt].s8(15 - i) = *(RSPInfo.DMEM + ((Address ^ 3) & 0xFFF)); RSP_Vect[RSPOpC.rt].s8(i) = *(RSPInfo.DMEM + ((Address ^ 3) & 0xFFF));
Address += 1; Address += 1;
} }
} }