]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
Fix wordsync interrupt enable
authorToni Wilen <twilen@winuae.net>
Fri, 27 Mar 2026 15:47:12 +0000 (17:47 +0200)
committerToni Wilen <twilen@winuae.net>
Fri, 27 Mar 2026 15:47:12 +0000 (17:47 +0200)
disk.cpp

index da92c5574c3948ccd795c25c412e031074885364..99f939969c2d99059b364ad754ff307450873fa0 100644 (file)
--- a/disk.cpp
+++ b/disk.cpp
@@ -4287,8 +4287,8 @@ static void wordsync_detected(bool startup)
 {
        // wordsync interrupt is edge triggered
        if (!dsksync_on) {
-               // wordsync interrupt is inhibited if DSKLEN write bit is set
-               if (!(dsklen & 0x4000)) {
+               // wordsync interrupt is inhibited if writing is active.
+               if (dskdmaen != DSKDMA_WRITE) {
                        INTREQ_INT(12, 0);
                }
                dsksync_on = true;