RSP: In Compile_Opcode_SQV Cheat the op instead of causing an unknown opcode
This commit is contained in:
parent
564926163c
commit
13fb8cd2da
|
@ -7075,18 +7075,18 @@ void Compile_Opcode_SQV(void)
|
||||||
#ifndef CompileSqv
|
#ifndef CompileSqv
|
||||||
Cheat_r4300iOpcode(RSP_Opcode_SQV, "RSP_Opcode_SQV");
|
Cheat_r4300iOpcode(RSP_Opcode_SQV, "RSP_Opcode_SQV");
|
||||||
#else
|
#else
|
||||||
|
if (RSPOpC.del != 0 && RSPOpC.del != 12)
|
||||||
|
{
|
||||||
|
Cheat_r4300iOpcode(RSP_Opcode_SQV, "RSP_Opcode_SQV");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
char Reg[256];
|
char Reg[256];
|
||||||
int offset = (RSPOpC.voffset << 4);
|
int offset = (RSPOpC.voffset << 4);
|
||||||
uint8_t * Jump[2];
|
uint8_t * Jump[2];
|
||||||
|
|
||||||
CPU_Message(" %X %s", CompilePC, RSPInstruction(CompilePC, RSPOpC.Value).NameAndParam().c_str());
|
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))
|
if (IsRegConst(RSPOpC.base))
|
||||||
{
|
{
|
||||||
uint32_t Addr = (MipsRegConst(RSPOpC.base) + offset) & 0xfff;
|
uint32_t Addr = (MipsRegConst(RSPOpC.base) + offset) & 0xfff;
|
||||||
|
|
Loading…
Reference in New Issue