summaryrefslogtreecommitdiffstats
path: root/src/mess/machine/v1050kb.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mess/machine/v1050kb.c')
-rw-r--r--src/mess/machine/v1050kb.c19
1 files changed, 5 insertions, 14 deletions
diff --git a/src/mess/machine/v1050kb.c b/src/mess/machine/v1050kb.c
index 6ad974fde71..dbb6a932160 100644
--- a/src/mess/machine/v1050kb.c
+++ b/src/mess/machine/v1050kb.c
@@ -320,8 +320,8 @@ v1050_keyboard_device::v1050_keyboard_device(const machine_config &mconfig, cons
m_y9(*this, "Y9"),
m_ya(*this, "YA"),
m_yb(*this, "YB"),
- m_y(0),
- m_so(1)
+ m_out_tx_handler(*this),
+ m_y(0)
{
}
@@ -334,7 +334,6 @@ void v1050_keyboard_device::device_start()
{
// state saving
save_item(NAME(m_y));
- save_item(NAME(m_so));
}
@@ -344,6 +343,8 @@ void v1050_keyboard_device::device_start()
void v1050_keyboard_device::device_reset()
{
+ m_out_tx_handler.resolve_safe();
+ m_out_tx_handler(1);
}
@@ -358,16 +359,6 @@ WRITE_LINE_MEMBER( v1050_keyboard_device::si_w )
//-------------------------------------------------
-// so_r -
-//-------------------------------------------------
-
-READ_LINE_MEMBER( v1050_keyboard_device::so_r )
-{
- return m_so;
-}
-
-
-//-------------------------------------------------
// kb_p1_r -
//-------------------------------------------------
@@ -433,5 +424,5 @@ WRITE8_MEMBER( v1050_keyboard_device::kb_p2_w )
discrete_sound_w(m_discrete, space, NODE_01, BIT(data, 6));
// serial output
- m_so = BIT(data, 7);
+ m_out_tx_handler(BIT(data, 7));
}