]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
Do not automatically enable turbo floppy if executable inserted in DF0: does short...
authorToni Wilen <twilen@winuae.net>
Sun, 26 Nov 2023 12:40:27 +0000 (14:40 +0200)
committerToni Wilen <twilen@winuae.net>
Sun, 26 Nov 2023 12:40:27 +0000 (14:40 +0200)
disk.cpp

index 7211f4fca7460cfbf882adfd50440efa016e9cf2..77678722d4b906dc6e99cf00e85db8e160474afd 100644 (file)
--- a/disk.cpp
+++ b/disk.cpp
@@ -4800,6 +4800,7 @@ void DSKLEN (uae_u16 v, int hpos)
        int prevdatalen = dsklength;
        int noselected = 0;
        int motormask;
+       bool weirddma = false;
 
        DISK_update (hpos);
 
@@ -4820,6 +4821,7 @@ void DSKLEN (uae_u16 v, int hpos)
                }
                dskdmaen = DSKDMA_READ;
                DISK_start ();
+               weirddma = dsklength < 544 * 11 * 2;
        }
        if (!(v & 0x8000)) {
                if (dskdmaen != DSKDMA_OFF) {
@@ -4968,6 +4970,8 @@ void DSKLEN (uae_u16 v, int hpos)
                                continue;
                        if (selected & (1 << dr))
                                continue;
+                       if (drv->useturbo && weirddma)
+                               continue;
 
                        pos = drv->mfmpos & ~15;
                        drive_fill_bigbuf (drv, 0);