summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/machine/ncr5380.cpp
diff options
context:
space:
mode:
author hap <happppp@users.noreply.github.com>2022-10-25 17:44:39 +0200
committer hap <happppp@users.noreply.github.com>2022-10-25 17:44:53 +0200
commit957cfaa53d8c44904b62372ed120ccb684afd08c (patch)
treee21c56b3f74dc093eb75810e96b38cb0e226d40e /src/devices/machine/ncr5380.cpp
parentf727c63b169e6c5d23154447150e5548dcb1516a (diff)
emu_timer: undo prev commit, add running() getter and change some enabled() calls to that
Diffstat (limited to 'src/devices/machine/ncr5380.cpp')
-rw-r--r--src/devices/machine/ncr5380.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/devices/machine/ncr5380.cpp b/src/devices/machine/ncr5380.cpp
index ec7e2c412b3..56fefc4f97f 100644
--- a/src/devices/machine/ncr5380.cpp
+++ b/src/devices/machine/ncr5380.cpp
@@ -168,7 +168,7 @@ void ncr5380_device::scsi_ctrl_changed()
}
m_state = IDLE;
- m_state_timer->enable(false);
+ m_state_timer->adjust(attotime::never);
// clear scsi bus
scsi_bus->data_w(scsi_refid, 0);
@@ -182,7 +182,7 @@ void ncr5380_device::scsi_ctrl_changed()
if ((ctrl & S_PHASE_MASK) == (m_tcmd & TC_PHASE))
{
// transfer cycle
- if (m_state != IDLE && !m_state_timer->enabled())
+ if (m_state != IDLE && !m_state_timer->running())
m_state_timer->adjust(attotime::zero);
}
else
@@ -190,7 +190,7 @@ void ncr5380_device::scsi_ctrl_changed()
LOG("phase mismatch %d != %d\n", (ctrl & S_PHASE_MASK), (m_tcmd & TC_PHASE));
m_state = IDLE;
- m_state_timer->enable(false);
+ m_state_timer->adjust(attotime::never);
set_drq(true);
set_irq(true);
@@ -286,7 +286,7 @@ void ncr5380_device::mode_w(u8 data)
if ((m_mode & MODE_DMA) && !(data & MODE_DMA))
{
m_state = IDLE;
- m_state_timer->enable(false);
+ m_state_timer->adjust(attotime::never);
m_bas &= ~BAS_ENDOFDMA;