From ff6d52d56a9dcac133e5fee805a277bf0f9b60a4 Mon Sep 17 00:00:00 2001 From: Adam Billyard <41291895+Elektraglide@users.noreply.github.com> Date: Mon, 23 Dec 2024 19:49:20 +0000 Subject: machine/ncr5385.cpp: clear status bits first when updating so they aren't stuck on (#13109) Co-authored-by: AdamB --- src/devices/machine/ncr5385.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/devices/machine/ncr5385.cpp b/src/devices/machine/ncr5385.cpp index 10451885345..77a9090bc59 100644 --- a/src/devices/machine/ncr5385.cpp +++ b/src/devices/machine/ncr5385.cpp @@ -245,6 +245,9 @@ u8 ncr5385_device::aux_status_r() if (!m_int_status) { + // mask out any bits + data &= ~(AUX_STATUS_MSG | AUX_STATUS_CD | AUX_STATUS_IO); + // return current phase u32 const ctrl = scsi_bus->ctrl_r(); if (ctrl & S_MSG) @@ -829,6 +832,9 @@ void ncr5385_device::update_int() { m_cmd = 0; + // mask out any bits + m_aux_status &= ~(AUX_STATUS_MSG | AUX_STATUS_CD | AUX_STATUS_IO); + // latch current phase u32 const ctrl = scsi_bus->ctrl_r(); if (ctrl & S_MSG) -- cgit v1.2.3