mirror of
https://github.com/holub/mame
synced 2025-07-05 18:08:04 +03:00
Revert "machine/ncr5385.cpp: clear status bits first when updating so they aren't stuck on (#13109)"
This reverts commit ff6d52d56a
.
Neither of the changes make sense. The addition to
ncr5385_device::update_int is redundant is the bits are cleared just
above the if statement. The addition to ncr5385_device::aux_status_r is
unnecessary as the bits are only set when an interrupt is asserted (if
they're set when it isn't, there's a logic bug elsewhere).
This commit is contained in:
parent
ae99363432
commit
b6a03219f6
@ -245,9 +245,6 @@ 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)
|
||||
@ -832,9 +829,6 @@ 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