From 13fb8cd2da436c6d95fc1ef2097e18f4347cfa40 Mon Sep 17 00:00:00 2001 From: zilmar Date: Fri, 12 Jul 2024 15:23:59 +0930 Subject: [PATCH] RSP: In Compile_Opcode_SQV Cheat the op instead of causing an unknown opcode --- .../Recompiler/RspRecompilerOps.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Source/Project64-rsp-core/Recompiler/RspRecompilerOps.cpp b/Source/Project64-rsp-core/Recompiler/RspRecompilerOps.cpp index 7f8d5f79b..7b378e56b 100644 --- a/Source/Project64-rsp-core/Recompiler/RspRecompilerOps.cpp +++ b/Source/Project64-rsp-core/Recompiler/RspRecompilerOps.cpp @@ -7075,18 +7075,18 @@ void Compile_Opcode_SQV(void) #ifndef CompileSqv Cheat_r4300iOpcode(RSP_Opcode_SQV, "RSP_Opcode_SQV"); #else + if (RSPOpC.del != 0 && RSPOpC.del != 12) + { + Cheat_r4300iOpcode(RSP_Opcode_SQV, "RSP_Opcode_SQV"); + return; + } + char Reg[256]; int offset = (RSPOpC.voffset << 4); uint8_t * Jump[2]; CPU_Message(" %X %s", CompilePC, RSPInstruction(CompilePC, RSPOpC.Value).NameAndParam().c_str()); - if (RSPOpC.del != 0 && RSPOpC.del != 12) - { - rsp_UnknownOpcode(); - return; - } - if (IsRegConst(RSPOpC.base)) { uint32_t Addr = (MipsRegConst(RSPOpC.base) + offset) & 0xfff;