machine/ncr5385.cpp: clear status bits first when updating so they aren't stuck on (#13109)

Co-authored-by: AdamB <adam@light-up.co.uk>
This commit is contained in:
Adam Billyard 2024-12-23 19:49:20 +00:00 committed by GitHub
parent 4881a08752
commit ff6d52d56a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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)