diff options
author | 2013-12-22 22:26:18 +0000 | |
---|---|---|
committer | 2013-12-22 22:26:18 +0000 | |
commit | 1aa3f4c200a4aedbc756988246744c3417b88edd (patch) | |
tree | 35ff1fb8dde3436b94946d870a98de4dc4c34b54 /src/emu/machine/mc2661.c | |
parent | 409a4b02d7cdf5042821a7a136a456eb5e4aad06 (diff) |
replaced read rx callback in MC2661 with a write handler, which allows multiple chips to be connected together without using glue methods. [smf]
Diffstat (limited to 'src/emu/machine/mc2661.c')
-rw-r--r-- | src/emu/machine/mc2661.c | 7 |
1 files changed, 1 insertions, 6 deletions
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); } |