From d7dadedcbd5572241c6dc01253211fac08674fb1 Mon Sep 17 00:00:00 2001 From: Toni Wilen Date: Sat, 27 Dec 2025 15:44:16 +0200 Subject: [PATCH] Update COPJMP --- custom.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/custom.cpp b/custom.cpp index b4e7b32d..e9385128 100644 --- a/custom.cpp +++ b/custom.cpp @@ -3047,12 +3047,14 @@ static uaecptr getstrobecopip(void) static void COPJMP(int num, bool bsce) { - cop_state.startstrobe = 0; - cop_state.startstrobe |= 8 << 0; - cop_state.startstrobe |= num << 4; + uae_u32 st = 0; + + st |= 8 << 0; + st |= num << 4; if (!bsce) { - cop_state.startstrobe <<= 4; + cop_state.startstrobe |= st << 4; } else { + cop_state.startstrobe |= st << 0; cop_state.vblankip = cop1lc; } -- 2.47.3