From 1f3ef6d50566eae0cbdd0d415c605b44ea91b4bf Mon Sep 17 00:00:00 2001 From: zilmar Date: Thu, 28 Nov 2024 15:54:36 +1030 Subject: [PATCH] Core: CX86RecompilerOps::SPECIAL_NOR Ignore write to r0 --- .../N64System/Recompiler/x86/x86RecompilerOps.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Source/Project64-core/N64System/Recompiler/x86/x86RecompilerOps.cpp b/Source/Project64-core/N64System/Recompiler/x86/x86RecompilerOps.cpp index 4b9847de5..5403a8520 100644 --- a/Source/Project64-core/N64System/Recompiler/x86/x86RecompilerOps.cpp +++ b/Source/Project64-core/N64System/Recompiler/x86/x86RecompilerOps.cpp @@ -6069,6 +6069,11 @@ void CX86RecompilerOps::SPECIAL_XOR() void CX86RecompilerOps::SPECIAL_NOR() { + if (m_Opcode.rd == 0) + { + return; + } + if (m_RegWorkingSet.IsKnown(m_Opcode.rt) && m_RegWorkingSet.IsKnown(m_Opcode.rs)) { if (m_RegWorkingSet.IsConst(m_Opcode.rt) && m_RegWorkingSet.IsConst(m_Opcode.rs))