summaryrefslogtreecommitdiffstatshomepage
path: root/src/mess/machine/dec_lk201.c
diff options
context:
space:
mode:
author smf- <smf-@users.noreply.github.com>2014-02-15 19:50:54 +0000
committer smf- <smf-@users.noreply.github.com>2014-02-15 19:50:54 +0000
commitf468c60ea7397a56a118c67c758282c06edb568b (patch)
tree24200174832bf814751103b902429c480d37ed97 /src/mess/machine/dec_lk201.c
parent292d16c120d717c732d440eed7096119e99929e2 (diff)
Converted i8251 to DEVCB2 [smf]
Diffstat (limited to 'src/mess/machine/dec_lk201.c')
-rw-r--r--src/mess/machine/dec_lk201.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/mess/machine/dec_lk201.c b/src/mess/machine/dec_lk201.c
index 336c4774a04..14d815d10ad 100644
--- a/src/mess/machine/dec_lk201.c
+++ b/src/mess/machine/dec_lk201.c
@@ -429,7 +429,6 @@ ioport_constructor lk201_device::device_input_ports() const
lk201_device::lk201_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, LK201, "DEC LK201 keyboard", tag, owner, clock, "lk201", __FILE__),
device_serial_interface(mconfig, *this),
- m_tx_write(*this),
m_maincpu(*this, LK201_CPU_TAG),
m_speaker(*this, LK201_SPK_TAG),
m_kbd0(*this, "KBD0"),
@@ -449,7 +448,8 @@ lk201_device::lk201_device(const machine_config &mconfig, const char *tag, devic
m_kbd14(*this, "KBD14"),
m_kbd15(*this, "KBD15"),
m_kbd16(*this, "KBD16"),
- m_kbd17(*this, "KBD17")
+ m_kbd17(*this, "KBD17"),
+ m_tx_handler(*this)
{
}
@@ -459,7 +459,7 @@ lk201_device::lk201_device(const machine_config &mconfig, const char *tag, devic
void lk201_device::device_start()
{
- m_tx_write.resolve_safe();
+ m_tx_handler.resolve_safe();
}
@@ -505,8 +505,7 @@ void lk201_device::tra_complete()
void lk201_device::tra_callback()
{
- int bit = transmit_register_send_bit();
- m_tx_write(bit);
+ m_tx_handler(transmit_register_send_bit());
}
void lk201_device::input_callback(UINT8 state)