From 90c0beb01eef9f7436fa039dffe8c3f0a4f2b215 Mon Sep 17 00:00:00 2001 From: zilmar Date: Thu, 20 Jun 2024 17:34:37 +0930 Subject: [PATCH] RSP: Add Compile_Vector_Reserved --- .../Recompiler/RspRecompilerCPU.cpp | 16 ++++++++-------- .../Recompiler/RspRecompilerOps.cpp | 5 +++++ .../Recompiler/RspRecompilerOps.h | 3 +-- 3 files changed, 14 insertions(+), 10 deletions(-) diff --git a/Source/Project64-rsp-core/Recompiler/RspRecompilerCPU.cpp b/Source/Project64-rsp-core/Recompiler/RspRecompilerCPU.cpp index 1102f0225..19d200fbd 100644 --- a/Source/Project64-rsp-core/Recompiler/RspRecompilerCPU.cpp +++ b/Source/Project64-rsp-core/Recompiler/RspRecompilerCPU.cpp @@ -280,17 +280,17 @@ void BuildRecompilerCPU(void) RSP_Vector[15] = Compile_Vector_VMADH; RSP_Vector[16] = Compile_Vector_VADD; RSP_Vector[17] = Compile_Vector_VSUB; - RSP_Vector[18] = Compile_UnknownOpcode; + RSP_Vector[18] = Compile_Vector_Reserved; RSP_Vector[19] = Compile_Vector_VABS; RSP_Vector[20] = Compile_Vector_VADDC; RSP_Vector[21] = Compile_Vector_VSUBC; - RSP_Vector[22] = Compile_UnknownOpcode; - RSP_Vector[23] = Compile_UnknownOpcode; - RSP_Vector[24] = Compile_UnknownOpcode; - RSP_Vector[25] = Compile_UnknownOpcode; - RSP_Vector[26] = Compile_UnknownOpcode; - RSP_Vector[27] = Compile_UnknownOpcode; - RSP_Vector[28] = Compile_UnknownOpcode; + RSP_Vector[22] = Compile_Vector_Reserved; + RSP_Vector[23] = Compile_Vector_Reserved; + RSP_Vector[24] = Compile_Vector_Reserved; + RSP_Vector[25] = Compile_Vector_Reserved; + RSP_Vector[26] = Compile_Vector_Reserved; + RSP_Vector[27] = Compile_Vector_Reserved; + RSP_Vector[28] = Compile_Vector_Reserved; RSP_Vector[29] = Compile_Vector_VSAW; RSP_Vector[30] = Compile_UnknownOpcode; RSP_Vector[31] = Compile_UnknownOpcode; diff --git a/Source/Project64-rsp-core/Recompiler/RspRecompilerOps.cpp b/Source/Project64-rsp-core/Recompiler/RspRecompilerOps.cpp index f76c9bd04..1eca5ae2b 100644 --- a/Source/Project64-rsp-core/Recompiler/RspRecompilerOps.cpp +++ b/Source/Project64-rsp-core/Recompiler/RspRecompilerOps.cpp @@ -6035,6 +6035,11 @@ void Compile_Vector_VNOOP(void) { } +void Compile_Vector_Reserved(void) +{ + Cheat_r4300iOpcode(RSP_Vector_Reserved, "RSP_Vector_Reserved"); +} + // LC2 functions void Compile_Opcode_LBV(void) diff --git a/Source/Project64-rsp-core/Recompiler/RspRecompilerOps.h b/Source/Project64-rsp-core/Recompiler/RspRecompilerOps.h index 2a89acdcf..725490ce8 100644 --- a/Source/Project64-rsp-core/Recompiler/RspRecompilerOps.h +++ b/Source/Project64-rsp-core/Recompiler/RspRecompilerOps.h @@ -115,9 +115,9 @@ void Compile_Vector_VRSQ(void); void Compile_Vector_VRSQL(void); void Compile_Vector_VRSQH(void); void Compile_Vector_VNOOP(void); +void Compile_Vector_Reserved(void); // LC2 functions - void Compile_Opcode_LBV(void); void Compile_Opcode_LSV(void); void Compile_Opcode_LLV(void); @@ -131,7 +131,6 @@ void Compile_Opcode_LFV(void); void Compile_Opcode_LTV(void); // SC2 functions - void Compile_Opcode_SBV(void); void Compile_Opcode_SSV(void); void Compile_Opcode_SLV(void);