From 3a5569ce9dd4cd6ccb146a7cfbca3c8ba05178a3 Mon Sep 17 00:00:00 2001 From: LegendOfDragoon Date: Thu, 24 Sep 2015 15:13:21 -0700 Subject: [PATCH] Ensure R0 cannot be written to in LB This happens in Castlevania and OOT, although I'm not sure if the code ever gets reached. --- 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 4f7117276..1adbbd29e 100644 --- a/Source/RSP/Recompiler Ops.c +++ b/Source/RSP/Recompiler Ops.c @@ -619,6 +619,8 @@ void Compile_COP2 (void) { void Compile_LB ( void ) { int Offset = (short)RSPOpC.offset; + if(RSPOpC.rt == 0) return; + #ifndef Compile_GPRLoads Cheat_r4300iOpcode(RSP_Opcode_LB,"RSP_Opcode_LB"); return; #endif