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.
This commit is contained in:
parent
14edb64e22
commit
3a5569ce9d
|
@ -619,6 +619,8 @@ void Compile_COP2 (void) {
|
||||||
void Compile_LB ( void ) {
|
void Compile_LB ( void ) {
|
||||||
int Offset = (short)RSPOpC.offset;
|
int Offset = (short)RSPOpC.offset;
|
||||||
|
|
||||||
|
if(RSPOpC.rt == 0) return;
|
||||||
|
|
||||||
#ifndef Compile_GPRLoads
|
#ifndef Compile_GPRLoads
|
||||||
Cheat_r4300iOpcode(RSP_Opcode_LB,"RSP_Opcode_LB"); return;
|
Cheat_r4300iOpcode(RSP_Opcode_LB,"RSP_Opcode_LB"); return;
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue