mirror of
https://github.com/holub/mame
synced 2025-04-25 09:50:04 +03:00
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:
parent
4881a08752
commit
ff6d52d56a
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user