From c6c0a4a6d22292e0e1d336d2da3df13d2068e318 Mon Sep 17 00:00:00 2001 From: zilmar Date: Thu, 10 Aug 2023 16:06:38 +0930 Subject: [PATCH] RSP: fix LDV --- Source/Project64-rsp-core/cpu/RSPInterpreterOps.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Project64-rsp-core/cpu/RSPInterpreterOps.cpp b/Source/Project64-rsp-core/cpu/RSPInterpreterOps.cpp index 9bcc32a1d..fc1fc05f7 100644 --- a/Source/Project64-rsp-core/cpu/RSPInterpreterOps.cpp +++ b/Source/Project64-rsp-core/cpu/RSPInterpreterOps.cpp @@ -2137,7 +2137,7 @@ void RSP_Opcode_LDV(void) 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++) { - 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; } }