From fb8db802b396ba0a6c744de35ae628d620e7b9e4 Mon Sep 17 00:00:00 2001 From: LegendOfDragoon Date: Thu, 24 Sep 2015 15:30:34 -0700 Subject: [PATCH] Ensure R0 cannot be written to in LW --- Source/RSP/Recompiler Ops.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Source/RSP/Recompiler Ops.c b/Source/RSP/Recompiler Ops.c index dd3694f2f..e49514dee 100644 --- a/Source/RSP/Recompiler Ops.c +++ b/Source/RSP/Recompiler Ops.c @@ -715,6 +715,8 @@ void Compile_LW ( void ) { int Offset = (short)RSPOpC.offset; BYTE * Jump[2]; + if(RSPOpC.rt == 0) return; + #ifndef Compile_GPRLoads Cheat_r4300iOpcode(RSP_Opcode_LW,"RSP_Opcode_LW"); return; #endif