Ensure R0 cannot be written to in LW

This commit is contained in:
LegendOfDragoon 2015-09-24 15:30:34 -07:00
parent b6721d1cdc
commit fb8db802b3
1 changed files with 2 additions and 0 deletions

View File

@ -715,6 +715,8 @@ void Compile_LW ( void ) {
int Offset = (short)RSPOpC.offset; int Offset = (short)RSPOpC.offset;
BYTE * Jump[2]; BYTE * Jump[2];
if(RSPOpC.rt == 0) return;
#ifndef Compile_GPRLoads #ifndef Compile_GPRLoads
Cheat_r4300iOpcode(RSP_Opcode_LW,"RSP_Opcode_LW"); return; Cheat_r4300iOpcode(RSP_Opcode_LW,"RSP_Opcode_LW"); return;
#endif #endif