VERY experimental Nintendo Switch 2 emulator
C++
arm: fixed a bug where ARM_Interpreter::ExecuteInstructions was actually executing one more instruction than expected
bunnei6cdad8390c20
diff --git a/src/core/arm/interpreter/arm_interpreter.cpp b/src/core/arm/interpreter/arm_interpreter.cppindex 8030ec56a2..0e893f1821 100644--- a/src/core/arm/interpreter/arm_interpreter.cpp+++ b/src/core/arm/interpreter/arm_interpreter.cpp@@ -98,7 +98,7 @@ u64 ARM_Interpreter::GetTicks() const {* @param num_instructions Number of instructions to executes*/void ARM_Interpreter::ExecuteInstructions(int num_instructions) {- state->NumInstrsToExecute = num_instructions;+ state->NumInstrsToExecute = num_instructions - 1;ARMul_Emulate32(state);}