From ae12429a0dee340dc4451987a6bc5848adad4d6d Mon Sep 17 00:00:00 2001 From: BearOso Date: Sat, 22 Oct 2022 14:51:44 -0500 Subject: [PATCH] Move AddCycles to be consistent with other OPs. --- cpuops.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cpuops.cpp b/cpuops.cpp index a3e7fd10..8d7279b5 100644 --- a/cpuops.cpp +++ b/cpuops.cpp @@ -2849,31 +2849,31 @@ static void Op22E1 (void) // Note: JSL is a new instruction, // and so doesn't respect the emu-mode stack bounds. uint32 addr = AbsoluteLong(JSR); + AddCycles(ONE_CYCLE); PushB(Registers.PB); PushW(Registers.PCw - 1); Registers.SH = 1; S9xSetPCBase(addr); - AddCycles(ONE_CYCLE); } static void Op22E0 (void) { uint32 addr = AbsoluteLong(JSR); + AddCycles(ONE_CYCLE); PushB(Registers.PB); PushW(Registers.PCw - 1); S9xSetPCBase(addr); - AddCycles(ONE_CYCLE); } static void Op22Slow (void) { uint32 addr = AbsoluteLongSlow(JSR); + AddCycles(ONE_CYCLE); PushB(Registers.PB); PushW(Registers.PCw - 1); if (CheckEmulation()) Registers.SH = 1; S9xSetPCBase(addr); - AddCycles(ONE_CYCLE); } static void Op6BE1 (void)