Optimize ADDI in RSP Recompiler
No need to add 0 to a variable. I've seen ADDI V0, V0, 0x0000 in Super Smash Bros audio microcode.
This commit is contained in:
parent
720d8c8dd7
commit
2ff2165bd9
|
@ -444,7 +444,9 @@ void Compile_ADDI ( void ) {
|
|||
if (RSPOpC.rt == 0) return;
|
||||
|
||||
if (RSPOpC.rt == RSPOpC.rs) {
|
||||
if(Immediate != 0) {
|
||||
AddConstToVariable(Immediate, &RSP_GPR[RSPOpC.rt].UW, GPR_Name(RSPOpC.rt));
|
||||
}
|
||||
} else if (RSPOpC.rs == 0) {
|
||||
MoveConstToVariable(Immediate, &RSP_GPR[RSPOpC.rt].UW, GPR_Name(RSPOpC.rt));
|
||||
} else if ((IsRegConst(RSPOpC.rs) & 1) != 0) {
|
||||
|
|
Loading…
Reference in New Issue