]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
Log also refresh slot conflicts if programmed mode.
authorToni Wilen <twilen@winuae.net>
Sat, 20 Feb 2021 16:46:32 +0000 (18:46 +0200)
committerToni Wilen <twilen@winuae.net>
Sat, 20 Feb 2021 16:46:32 +0000 (18:46 +0200)
custom.cpp

index 86502d96c129eb304d2698f2dba4ef888204bc6d..090dd3b5bd29dd7b6bb9e011099832c252535dfc 100644 (file)
@@ -1517,17 +1517,21 @@ static int fetch_warn (int nr, int hpos)
                }
                add = refptr_val;
        }
-       bitplane_line_crossing = hpos;
+       if (beamcon0 & 0x80) {
+               add = fetchmode_bytes;
+       } else {
+               bitplane_line_crossing = hpos;
 #if 0
-       line_cyclebased = vpos;
-       corrupt_offset = (vpos ^ (timeframes << 12)) & 0xff00;
-       for (int i = 0; i < bplcon0_planes_limit; i++) {
-               uae_u16 v;
-               v = bplpt[i] & 0xffff;
-               v += corrupt_offset;
-               bplpt[i] = (bplpt[i] & 0xffff0000) | v;
-       }
+               line_cyclebased = vpos;
+               corrupt_offset = (vpos ^ (timeframes << 12)) & 0xff00;
+               for (int i = 0; i < bplcon0_planes_limit; i++) {
+                       uae_u16 v;
+                       v = bplpt[i] & 0xffff;
+                       v += corrupt_offset;
+                       bplpt[i] = (bplpt[i] & 0xffff0000) | v;
+               }
 #endif
+       }
        return add;
 }
 
@@ -1537,7 +1541,7 @@ static void fetch (int nr, int fm, bool modulo, int hpos)
                int add = fetchmode_bytes;
 
                // refresh conflict?
-               if ((hpos > maxhpos - HPOS_SHIFT || hpos == 1 || hpos == 3 || hpos == 5) && !(beamcon0 & 0x80)) {
+               if (hpos > maxhpos - 1 || hpos == 1 || hpos == 3 || hpos == 5) {
                        add = fetch_warn (nr, hpos);
                }