CPU/Interpreter: Fix incorrect call in to PGXP for addi

Fixes exploding triangles in Spyro with PGXP CPU mode enabled.
This commit is contained in:
Connor McLaughlin 2020-10-09 18:49:34 +10:00
parent e7bf22c31f
commit fa638ef9d2

View file

@ -884,7 +884,7 @@ restart_instruction:
}
if constexpr (pgxp_mode >= PGXPMode::CPU)
PGXP::CPU_ANDI(inst.bits, new_value, ReadReg(inst.i.rs));
PGXP::CPU_ADDI(inst.bits, new_value, ReadReg(inst.i.rs));
WriteReg(inst.i.rt, new_value);
}