From: Toni Wilen Date: Sun, 26 Nov 2023 12:40:27 +0000 (+0200) Subject: Do not automatically enable turbo floppy if executable inserted in DF0: does short... X-Git-Tag: 5.1.0~38 X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=7ece361672f332b158ad52808a55f73792b1ca17;p=francis%2Fwinuae.git Do not automatically enable turbo floppy if executable inserted in DF0: does short DMA transfers. --- diff --git a/disk.cpp b/disk.cpp index 7211f4fc..77678722 100644 --- 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);