]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
Update COPJMP
authorToni Wilen <twilen@winuae.net>
Sat, 27 Dec 2025 13:44:16 +0000 (15:44 +0200)
committerToni Wilen <twilen@winuae.net>
Sat, 27 Dec 2025 13:44:16 +0000 (15:44 +0200)
custom.cpp

index b4e7b32d70a5f3ab62e3f476fd5bf38711ebde4b..e93851286e1deeae42e4aea64b91e214a10491e8 100644 (file)
@@ -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;
        }