diff options
author | 2013-12-22 16:27:05 +0000 | |
---|---|---|
committer | 2013-12-22 16:27:05 +0000 | |
commit | 6c3f17c5956faefd2f1dc026468db2da03eee2bc (patch) | |
tree | 275f9cacd98df9821ae9e0e2a2ff4d155a4df358 /src/mess/machine/v1050kb.c | |
parent | b4c7b67ff9a1b12dd414502864cee66628b3bd19 (diff) |
replaced read rx/cts/dcd callbacks in I8251 with write handlers, which allows multiple chips to be connected together without using glue methods. [smf]
Diffstat (limited to 'src/mess/machine/v1050kb.c')
-rw-r--r-- | src/mess/machine/v1050kb.c | 19 |
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)); } |