From 65bbc375b985ea88654a648095a7523128fdcb06 Mon Sep 17 00:00:00 2001 From: zilmar Date: Mon, 17 Oct 2022 08:36:17 +1030 Subject: [PATCH] Core: Fix R4300iOp::LWC1 to have 64bit address --- Source/Project64-core/N64System/Interpreter/InterpreterOps.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Project64-core/N64System/Interpreter/InterpreterOps.cpp b/Source/Project64-core/N64System/Interpreter/InterpreterOps.cpp index 0c86f2702..1243b68ef 100644 --- a/Source/Project64-core/N64System/Interpreter/InterpreterOps.cpp +++ b/Source/Project64-core/N64System/Interpreter/InterpreterOps.cpp @@ -1260,7 +1260,7 @@ void R4300iOp::LL() void R4300iOp::LWC1() { TEST_COP1_USABLE_EXCEPTION(); - uint32_t Address = _GPR[m_Opcode.base].UW[0] + (uint32_t)((int16_t)m_Opcode.offset); + uint64_t Address = _GPR[m_Opcode.base].DW + (int16_t)m_Opcode.offset; g_MMU->LW_Memory(Address, *(uint32_t *)_FPR_S[m_Opcode.ft]); }