]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
Do not emulate hp=1 special case in fast CPU modes.
authorToni Wilen <twilen@winuae.net>
Thu, 16 Apr 2026 15:52:16 +0000 (18:52 +0300)
committerToni Wilen <twilen@winuae.net>
Thu, 16 Apr 2026 15:52:16 +0000 (18:52 +0300)
custom.cpp

index f4814b798dd7bb7aa0b14fd7c5e5e71b97d98314..f4f200e06913fadcb0ccd18a742c745bfc85e737 100644 (file)
@@ -2385,15 +2385,17 @@ static void incpos(uae_u16 *hpp, uae_u16 *vpp)
        if (syncs_stopped) {
                return;
        }
-       if (hp == 1) {
-               vp++;
-               if (vp == maxvpos + lof_store) {
-                       vp = 0;
+       if (currprefs.cpu_memory_cycle_exact) {
+               if (hp == 1) {
+                       vp++;
+                       if (vp == maxvpos + lof_store) {
+                               vp = 0;
+                       }
+               }
+               hp++;
+               if (hp == maxhpos || hp == maxhpos_long) {
+                       hp = 0;
                }
-       }
-       hp++;
-       if (hp == maxhpos || hp == maxhpos_long) {
-               hp = 0;
        }
        if (canvhposw()) {
                if (agnus_pos_change >= 1) {