From 1aa3f4c200a4aedbc756988246744c3417b88edd Mon Sep 17 00:00:00 2001 From: smf- Date: Sun, 22 Dec 2013 22:26:18 +0000 Subject: replaced read rx callback in MC2661 with a write handler, which allows multiple chips to be connected together without using glue methods. [smf] --- src/emu/machine/mc2661.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src/emu/machine/mc2661.c') diff --git a/src/emu/machine/mc2661.c b/src/emu/machine/mc2661.c index 88ce69e3d1c..8bca28a21af 100644 --- a/src/emu/machine/mc2661.c +++ b/src/emu/machine/mc2661.c @@ -129,7 +129,6 @@ void mc2661_device::device_config_complete() // or initialize to defaults if none provided else { - memset(&m_in_rxd_cb, 0, sizeof(m_in_rxd_cb)); memset(&m_out_txd_cb, 0, sizeof(m_out_txd_cb)); memset(&m_out_rxrdy_cb, 0, sizeof(m_out_rxrdy_cb)); memset(&m_out_txrdy_cb, 0, sizeof(m_out_txrdy_cb)); @@ -149,7 +148,6 @@ void mc2661_device::device_config_complete() void mc2661_device::device_start() { // resolve callbacks - m_in_rxd_func.resolve(m_in_rxd_cb, *this); m_out_txd_func.resolve(m_out_txd_cb, *this); m_out_rxrdy_func.resolve(m_out_rxrdy_cb, *this); m_out_txrdy_func.resolve(m_out_txrdy_cb, *this); @@ -242,10 +240,7 @@ void mc2661_device::tra_complete() void mc2661_device::rcv_callback() { - if (m_in_rxd_func.isnull()) - receive_register_update_bit(m_signal); - else - receive_register_update_bit(m_in_rxd_func()); + receive_register_update_bit(m_signal); } -- cgit v1.2.3-70-g09d2