From b263ee10b0756f5f1d848e65a8af4b38c267caf7 Mon Sep 17 00:00:00 2001 From: zilmar Date: Thu, 21 Dec 2023 10:41:16 +1030 Subject: [PATCH] Core: In CX86RecompilerOps::CompileLoadMemoryValue instead of checking write to rt being 0 instead use WritesGPR() since LDC1 F0 rt is 0 but it is not writing to r0 --- .../N64System/Recompiler/x86/x86RecompilerOps.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Project64-core/N64System/Recompiler/x86/x86RecompilerOps.cpp b/Source/Project64-core/N64System/Recompiler/x86/x86RecompilerOps.cpp index 7ae4b4b93..d4ebc4f2f 100644 --- a/Source/Project64-core/N64System/Recompiler/x86/x86RecompilerOps.cpp +++ b/Source/Project64-core/N64System/Recompiler/x86/x86RecompilerOps.cpp @@ -10020,7 +10020,7 @@ void CX86RecompilerOps::CompileLoadMemoryValue(asmjit::x86::Gp & AddressReg, asm m_CodeBlock.Log(""); m_Assembler.bind(JumpFound); - if (m_Opcode.rt == 0) + if (m_Instruction.WritesGPR() == 0) { //ignore load to R0 }