From 7ece361672f332b158ad52808a55f73792b1ca17 Mon Sep 17 00:00:00 2001 From: Toni Wilen Date: Sun, 26 Nov 2023 14:40:27 +0200 Subject: [PATCH] Do not automatically enable turbo floppy if executable inserted in DF0: does short DMA transfers. --- disk.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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); -- 2.47.3