From 473aeba2cfee218eea8ec173b1c46548e5ef6741 Mon Sep 17 00:00:00 2001 From: zilmar Date: Thu, 12 Dec 2024 21:22:32 +1030 Subject: [PATCH] Core: Fix order of value in call to CMipsMemoryVM::SD_VAddr32 in recompiler --- .../N64System/Recompiler/x86/x86RecompilerOps.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Project64-core/N64System/Recompiler/x86/x86RecompilerOps.cpp b/Source/Project64-core/N64System/Recompiler/x86/x86RecompilerOps.cpp index c29ad9c6e..a402c6656 100644 --- a/Source/Project64-core/N64System/Recompiler/x86/x86RecompilerOps.cpp +++ b/Source/Project64-core/N64System/Recompiler/x86/x86RecompilerOps.cpp @@ -10268,13 +10268,13 @@ void CX86RecompilerOps::CompileStoreMemoryValue(asmjit::x86::Gp AddressReg, cons m_RegWorkingSet.BeforeCallDirect(); if (!ValueReg.isValid()) { - m_Assembler.push((uint32_t)(Value & 0xFFFFFFFF)); m_Assembler.push((uint32_t)((Value >> 32) & 0xFFFFFFFF)); + m_Assembler.push((uint32_t)(Value & 0xFFFFFFFF)); } else { - m_Assembler.push(ValueReg); m_Assembler.push(ValueRegHi); + m_Assembler.push(ValueReg); } m_Assembler.push(AddressReg); m_Assembler.CallThis((uint32_t)&m_MMU, AddressOf(&CMipsMemoryVM::SD_VAddr32), "CMipsMemoryVM::SD_VAddr32", 12);