From e75ddc63299d1d3342c188fa2a48adee565357fa Mon Sep 17 00:00:00 2001 From: cracyc Date: Sat, 5 Oct 2024 20:41:00 -0500 Subject: [PATCH] upd765: indicate ready status in polling irq sense --- src/devices/machine/upd765.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/devices/machine/upd765.cpp b/src/devices/machine/upd765.cpp index 370893c06ab..fd087ec7d68 100644 --- a/src/devices/machine/upd765.cpp +++ b/src/devices/machine/upd765.cpp @@ -2568,7 +2568,7 @@ TIMER_CALLBACK_MEMBER(upd765_family_device::run_drive_ready_polling) LOGCOMMAND("polled %d : %d -> %d\n", fid, flopi[fid].ready, ready); flopi[fid].ready = ready; if(!flopi[fid].st0_filled) { - flopi[fid].st0 = ST0_ABRT | fid; + flopi[fid].st0 = ST0_ABRT | fid | (ready ? 0 : ST0_NR); flopi[fid].st0_filled = true; irq = true; }