]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
Copper strobe edge case fix
authorToni Wilen <twilen@winuae.net>
Wed, 16 Jul 2025 08:20:33 +0000 (11:20 +0300)
committerToni Wilen <twilen@winuae.net>
Wed, 16 Jul 2025 08:20:33 +0000 (11:20 +0300)
custom.cpp

index 81991b4eb668635a89190e8aa5bd5ab2684c6c8c..2a84bec3d73f382df510e409934e1163c860943c 100644 (file)
@@ -3043,6 +3043,7 @@ static void COPJMP(int num, int vblank)
                } else {
                        cop_state.state = COP_strobe_delay_start;
                }
+               cop_state.strobeip = 0xffffffff;
        } else {
                // copper request done for next cycle
                if (vblank) {
@@ -9481,6 +9482,9 @@ static void generate_copper(void)
                // But it still gets allocated by copper if it is free = CPU and blitter can't use it.
                if (bus_allocated) {
                        cop_state.state = COP_strobe_delay2;
+                       if (cop_state.strobeip == 0xffffffff) {
+                               cop_state.strobetype = 1;
+                       }
                        cop_state.strobeip = getstrobecopip();
                        cop_state.strobe = 0;
                        cop_state.ignore_next = 0;