Implement SLTIU in RSP Recompiler

This commit is contained in:
LegendOfDragoon 2015-09-07 11:28:49 -07:00
parent 19f34eed4e
commit 720d8c8dd7
1 changed files with 12 additions and 0 deletions

View File

@ -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 ) {