summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/dmv/k210.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/bus/dmv/k210.cpp')
-rw-r--r--src/devices/bus/dmv/k210.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/devices/bus/dmv/k210.cpp b/src/devices/bus/dmv/k210.cpp
index 3ab9209d877..0f2371fedea 100644
--- a/src/devices/bus/dmv/k210.cpp
+++ b/src/devices/bus/dmv/k210.cpp
@@ -46,7 +46,7 @@ dmv_k210_device::dmv_k210_device(const machine_config &mconfig, const char *tag,
void dmv_k210_device::device_start()
{
- m_clk1_timer = timer_alloc(0, nullptr);
+ m_clk1_timer = timer_alloc(FUNC(dmv_k210_device::strobe_tick), this);
// register for state saving
save_item(NAME(m_portb));
@@ -65,10 +65,10 @@ void dmv_k210_device::device_reset()
}
//-------------------------------------------------
-// device_timer - handler timer events
+// strobe_tick -
//-------------------------------------------------
-void dmv_k210_device::device_timer(emu_timer &timer, device_timer_id tid, int param, void *ptr)
+TIMER_CALLBACK_MEMBER(dmv_k210_device::strobe_tick)
{
m_centronics->write_strobe(CLEAR_LINE);
}
@@ -158,11 +158,11 @@ void dmv_k210_device::portc_w(uint8_t data)
out_irq(BIT(data, 3));
}
-WRITE_LINE_MEMBER( dmv_k210_device::cent_ack_w ) { if (state) m_portb |= 0x04; else m_portb &= ~0x04; m_ppi->pc6_w(state); }
-WRITE_LINE_MEMBER( dmv_k210_device::cent_slct_w ) { if (state) m_portb |= 0x10; else m_portb &= ~0x10; }
-WRITE_LINE_MEMBER( dmv_k210_device::cent_busy_w ) { if (state) m_portb |= 0x20; else m_portb &= ~0x20; }
-WRITE_LINE_MEMBER( dmv_k210_device::cent_pe_w ) { if (state) m_portb |= 0x40; else m_portb &= ~0x40; }
-WRITE_LINE_MEMBER( dmv_k210_device::cent_fault_w ) { if (state) m_portb |= 0x80; else m_portb &= ~0x80; }
+void dmv_k210_device::cent_ack_w(int state) { if (state) m_portb |= 0x04; else m_portb &= ~0x04; m_ppi->pc6_w(state); }
+void dmv_k210_device::cent_slct_w(int state) { if (state) m_portb |= 0x10; else m_portb &= ~0x10; }
+void dmv_k210_device::cent_busy_w(int state) { if (state) m_portb |= 0x20; else m_portb &= ~0x20; }
+void dmv_k210_device::cent_pe_w(int state) { if (state) m_portb |= 0x40; else m_portb &= ~0x40; }
+void dmv_k210_device::cent_fault_w(int state) { if (state) m_portb |= 0x80; else m_portb &= ~0x80; }
-WRITE_LINE_MEMBER( dmv_k210_device::cent_autofd_w ) { if (state) m_portc |= 0x02; else m_portc &= ~0x02; }
-WRITE_LINE_MEMBER( dmv_k210_device::cent_init_w ) { if (state) m_portc |= 0x04; else m_portc &= ~0x04; }
+void dmv_k210_device::cent_autofd_w(int state) { if (state) m_portc |= 0x02; else m_portc &= ~0x02; }
+void dmv_k210_device::cent_init_w(int state) { if (state) m_portc |= 0x04; else m_portc &= ~0x04; }