From 3065141ed751778523876b92c54f9b89c33becec Mon Sep 17 00:00:00 2001 From: Jaklyy <102590697+Jaklyy@users.noreply.github.com> Date: Tue, 24 Sep 2024 17:03:18 -0400 Subject: [PATCH] probably not faster --- src/ARM.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/ARM.cpp b/src/ARM.cpp index c194cc71..ac3fe200 100644 --- a/src/ARM.cpp +++ b/src/ARM.cpp @@ -697,13 +697,12 @@ void ARMv5::Execute() { ARMInterpreter::A_BLX_IMM(this); } - else + else if ((CurInstr & 0x0FF000F0) == 0x01200070) { - if ((((CurInstr >> 4) & 0xF) | ((CurInstr >> 16) & 0xFF0)) == 0x127) - ARMInterpreter::A_BKPT(this); // always passes regardless of condition code - else - AddCycles_C(); + ARMInterpreter::A_BKPT(this); // always passes regardless of condition code } + else + AddCycles_C(); } // TODO optimize this shit!!!