summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/machine/mos6551.c
diff options
context:
space:
mode:
author smf- <smf-@users.noreply.github.com>2014-02-24 13:52:14 +0000
committer smf- <smf-@users.noreply.github.com>2014-02-24 13:52:14 +0000
commit36ea0b6253c64ac5f40430d189cfcfae844ad7df (patch)
tree02648175e899a2cde1f165e7fc3b4431b63618fa /src/emu/machine/mos6551.c
parente833238f6dbfcb866a68317d88004141f60504ce (diff)
Removed diserial connect(). Converted thomson, mc1502 & wangpc to use DEVCB2 instead. [smf]
Diffstat (limited to 'src/emu/machine/mos6551.c')
-rw-r--r--src/emu/machine/mos6551.c41
1 files changed, 3 insertions, 38 deletions
diff --git a/src/emu/machine/mos6551.c b/src/emu/machine/mos6551.c
index 5a6b7c7b618..700f199eabb 100644
--- a/src/emu/machine/mos6551.c
+++ b/src/emu/machine/mos6551.c
@@ -148,10 +148,7 @@ void mos6551_device::device_timer(emu_timer &timer, device_timer_id id, int para
void mos6551_device::tra_callback()
{
- if (m_txd_handler.isnull())
- transmit_register_send_bit();
- else
- m_txd_handler(transmit_register_get_data_bit());
+ m_txd_handler(transmit_register_get_data_bit());
}
@@ -176,16 +173,6 @@ void mos6551_device::tra_complete()
//-------------------------------------------------
-// rcv_callback -
-//-------------------------------------------------
-
-void mos6551_device::rcv_callback()
-{
- receive_register_update_bit(get_in_data_bit());
-}
-
-
-//-------------------------------------------------
// rcv_complete -
//-------------------------------------------------
@@ -209,16 +196,6 @@ void mos6551_device::rcv_complete()
//-------------------------------------------------
-// input_callback -
-//-------------------------------------------------
-
-void mos6551_device::input_callback(UINT8 state)
-{
- m_input_state = state;
-}
-
-
-//-------------------------------------------------
// update_serial -
//-------------------------------------------------
@@ -261,21 +238,9 @@ void mos6551_device::update_serial()
}
}
- if (m_cmd & CMD_DTR)
- m_connection_state |= DTR;
- else
- m_connection_state &= ~DTR;
-
- m_dtr_handler((m_connection_state & DTR) ? 0 : 1);
-
- if ((m_cmd & CMD_TC_MASK) == CMD_TC_RTS_HI)
- m_connection_state &= ~RTS;
- else
- m_connection_state |= RTS;
-
- m_rts_handler((m_connection_state & RTS) ? 0 : 1);
- serial_connection_out();
+ m_dtr_handler(!(m_cmd & CMD_DTR));
+ m_rts_handler(!((m_cmd & CMD_TC_MASK) == CMD_TC_RTS_HI));
}