From 4b7fafbdedc20023870f3e40e07012f7f503385e Mon Sep 17 00:00:00 2001 From: zilmar Date: Wed, 3 Jan 2018 19:16:01 +1100 Subject: [PATCH] Make sure R0 is 0 in Interpreter --- Source/Project64-core/N64System/Interpreter/InterpreterCPU.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Source/Project64-core/N64System/Interpreter/InterpreterCPU.cpp b/Source/Project64-core/N64System/Interpreter/InterpreterCPU.cpp index a252b98d9..9cd98bba5 100644 --- a/Source/Project64-core/N64System/Interpreter/InterpreterCPU.cpp +++ b/Source/Project64-core/N64System/Interpreter/InterpreterCPU.cpp @@ -313,6 +313,7 @@ void CInterpreterCPU::ExecuteCPU() } */ m_R4300i_Opcode[Opcode.op](); + _GPR[0].DW = 0; /* MIPS $zero hard-wired to 0 */ NextTimer -= CountPerOp; if (CDebugSettings::bHaveDebugger()) { g_Debugger->CPUStep(); }