From 720d8c8dd77a068b076c5656c041f8e0297b5e79 Mon Sep 17 00:00:00 2001 From: LegendOfDragoon Date: Mon, 7 Sep 2015 11:28:49 -0700 Subject: [PATCH] Implement SLTIU in RSP Recompiler --- Source/RSP/Recompiler Ops.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Source/RSP/Recompiler Ops.c b/Source/RSP/Recompiler Ops.c index cc72855db..27ae3cc61 100644 --- a/Source/RSP/Recompiler Ops.c +++ b/Source/RSP/Recompiler Ops.c @@ -498,8 +498,20 @@ void Compile_SLTI ( void ) { } void Compile_SLTIU ( void ) { +#ifndef Compile_Immediates Cheat_r4300iOpcode(RSP_Opcode_SLTIU,"RSP_Opcode_SLTIU"); +#endif + int Immediate; + + CPU_Message(" %X %s", CompilePC, RSPOpcodeName(RSPOpC.Hex, CompilePC)); + if (RSPOpC.rt == 0) return; + + Immediate = (short)RSPOpC.immediate; + XorX86RegToX86Reg(x86_ECX, x86_ECX); + CompConstToVariable(Immediate, &RSP_GPR[RSPOpC.rs].UW, GPR_Name(RSPOpC.rs)); + Setb(x86_ECX); + MoveX86regToVariable(x86_ECX, &RSP_GPR[RSPOpC.rt].UW, GPR_Name(RSPOpC.rt)); } void Compile_ANDI ( void ) {