From fa638ef9d2bfbfde7ac628797f0e51d810502841 Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Fri, 9 Oct 2020 18:49:34 +1000 Subject: [PATCH] CPU/Interpreter: Fix incorrect call in to PGXP for addi Fixes exploding triangles in Spyro with PGXP CPU mode enabled. --- src/core/cpu_core.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/cpu_core.cpp b/src/core/cpu_core.cpp index 7a5ecf3e7..1f48ceb06 100644 --- a/src/core/cpu_core.cpp +++ b/src/core/cpu_core.cpp @@ -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); }