upd765: indicate ready status in polling irq sense
Some checks failed
CI (Linux) / build-linux (-U_FORTIFY_SOURCE, gcc, gcc, g++, mametiny, tiny) (push) Has been cancelled
CI (Linux) / build-linux (clang, clang, clang++, mame, mame) (push) Has been cancelled
CI (macOS) / build-macos (push) Has been cancelled
CI (Windows) / build-windows (clang, clang, clang++, mametiny, tiny) (push) Has been cancelled
CI (Windows) / build-windows (gcc, gcc, g++, mame, mame) (push) Has been cancelled
XML/JSON validation / validate (push) Has been cancelled

This commit is contained in:
cracyc 2024-10-05 20:41:00 -05:00
parent 36293f7d5b
commit e75ddc6329

View file

@ -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;
}