Implement SLTI in RSP Recompiler
This commit is contained in:
parent
120d4d5590
commit
19f34eed4e
|
@ -481,8 +481,20 @@ void Compile_ADDIU ( void ) {
|
|||
}
|
||||
|
||||
void Compile_SLTI ( void ) {
|
||||
#ifndef Compile_Immediates
|
||||
Cheat_r4300iOpcode(RSP_Opcode_SLTI,"RSP_Opcode_SLTI");
|
||||
#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));
|
||||
Setl(x86_ECX);
|
||||
MoveX86regToVariable(x86_ECX, &RSP_GPR[RSPOpC.rt].UW, GPR_Name(RSPOpC.rt));
|
||||
}
|
||||
|
||||
void Compile_SLTIU ( void ) {
|
||||
|
|
Loading…
Reference in New Issue