summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/machine/74165.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/machine/74165.cpp')
-rw-r--r--src/devices/machine/74165.cpp12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/devices/machine/74165.cpp b/src/devices/machine/74165.cpp
index 9ba4415d56c..706b3f98274 100644
--- a/src/devices/machine/74165.cpp
+++ b/src/devices/machine/74165.cpp
@@ -39,7 +39,7 @@ void ttl165_device::device_add_mconfig(machine_config &config)
ttl165_device::ttl165_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) :
device_t(mconfig, TTL165, tag, owner, clock),
m_timer(*this, "timer"),
- m_data_cb(*this), m_qh_cb(*this),
+ m_data_cb(*this, 0x00), m_qh_cb(*this),
m_data(0x00),
m_ser(0), m_clk(0), m_shld(0)
{
@@ -51,10 +51,6 @@ ttl165_device::ttl165_device(const machine_config &mconfig, const char *tag, dev
void ttl165_device::device_start()
{
- // resolve callbacks
- m_data_cb.resolve_safe(0x00);
- m_qh_cb.resolve_safe();
-
// register for save states
save_item(NAME(m_data));
save_item(NAME(m_ser));
@@ -89,7 +85,7 @@ TIMER_DEVICE_CALLBACK_MEMBER( ttl165_device::qh_output )
// INTERFACE
//**************************************************************************
-WRITE_LINE_MEMBER( ttl165_device::serial_w )
+void ttl165_device::serial_w(int state)
{
m_ser = state;
}
@@ -100,7 +96,7 @@ void ttl165_device::update_qh()
m_timer->adjust(attotime::from_nsec(25), BIT(m_data, 7));
}
-WRITE_LINE_MEMBER( ttl165_device::clock_w )
+void ttl165_device::clock_w(int state)
{
if (m_shld && !m_clk && state)
{
@@ -114,7 +110,7 @@ WRITE_LINE_MEMBER( ttl165_device::clock_w )
m_clk = state;
}
-WRITE_LINE_MEMBER( ttl165_device::shift_load_w )
+void ttl165_device::shift_load_w(int state)
{
if (!m_shld || !state)
{