From c1338147137dab672034c9f3074c1bace7b31e4f Mon Sep 17 00:00:00 2001 From: Jaklyy <102590697+Jaklyy@users.noreply.github.com> Date: Fri, 20 Sep 2024 04:39:16 -0400 Subject: [PATCH] some day i will remember to test before pushing --- src/ARMInterpreter_ALU.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/ARMInterpreter_ALU.cpp b/src/ARMInterpreter_ALU.cpp index fd60b5f0..a638a49c 100644 --- a/src/ARMInterpreter_ALU.cpp +++ b/src/ARMInterpreter_ALU.cpp @@ -587,7 +587,7 @@ A_IMPLEMENT_ALU_OP(RSC,) { \ if (cpu->Num == 1) \ { \ - u32 oldcpsr = cpu->CPSR; \ + u32 oldpsr = cpu->CPSR; \ cpu->RestoreCPSR(); /* ARM7TDMI restores cpsr and does ___not___ flush the pipeline. */ \ if (!(oldpsr & 0x20) && (cpu->CPSR & 0x20)) \ { \ @@ -611,7 +611,7 @@ A_IMPLEMENT_ALU_TEST(TST,_S) { \ if (cpu->Num == 1) \ { \ - u32 oldcpsr = cpu->CPSR; \ + u32 oldpsr = cpu->CPSR; \ cpu->RestoreCPSR(); /* ARM7TDMI restores cpsr and does ___not___ flush the pipeline. */ \ if (!(oldpsr & 0x20) && (cpu->CPSR & 0x20)) \ { \ @@ -637,7 +637,7 @@ A_IMPLEMENT_ALU_TEST(TEQ,_S) { \ if (cpu->Num == 1) \ { \ - u32 oldcpsr = cpu->CPSR; \ + u32 oldpsr = cpu->CPSR; \ cpu->RestoreCPSR(); /* ARM7TDMI restores cpsr and does ___not___ flush the pipeline. */ \ if (!(oldpsr & 0x20) && (cpu->CPSR & 0x20)) \ { \ @@ -663,7 +663,7 @@ A_IMPLEMENT_ALU_TEST(CMP,) { \ if (cpu->Num == 1) \ { \ - u32 oldcpsr = cpu->CPSR; \ + u32 oldpsr = cpu->CPSR; \ cpu->RestoreCPSR(); /* ARM7TDMI restores cpsr and does ___not___ flush the pipeline. */ \ if (!(oldpsr & 0x20) && (cpu->CPSR & 0x20)) \ { \ @@ -1629,7 +1629,7 @@ void T_CMP_HIREG(ARM* cpu) { if (cpu->Num == 1) { - u32 oldcpsr = cpu->CPSR; + u32 oldpsr = cpu->CPSR; cpu->RestoreCPSR(); // ARM7TDMI restores cpsr and does ___not___ flush the pipeline. if (!(oldpsr & 0x20) && (cpu->CPSR & 0x20)) {