summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/machine/ay31015.cpp
diff options
context:
space:
mode:
author AJR <ajrhacker@users.noreply.github.com>2018-01-17 19:52:52 -0500
committer AJR <ajrhacker@users.noreply.github.com>2018-01-17 19:53:04 -0500
commitaa1147c08e2bd10d0da1935f5428d7a8ee8cd8f1 (patch)
treee050beb6c4af00beec2d983783eed058f39e68ea /src/devices/machine/ay31015.cpp
parente4640f7cc370f91858e18e21f9bc2f81f386504c (diff)
tv912.cpp: UART is now fully controlled (nw)
This also adds RCP/TCP line write control to AY-101x.
Diffstat (limited to 'src/devices/machine/ay31015.cpp')
-rw-r--r--src/devices/machine/ay31015.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/devices/machine/ay31015.cpp b/src/devices/machine/ay31015.cpp
index 30dd0164e60..3cc1e26f6f1 100644
--- a/src/devices/machine/ay31015.cpp
+++ b/src/devices/machine/ay31015.cpp
@@ -628,6 +628,16 @@ void ay31015_device::set_input_pin( ay31015_input_pin_t pin, int data )
switch (pin)
{
+ case AY31015_RCP:
+ if (!m_pins[pin] && data)
+ rx_process();
+ m_pins[pin] = data;
+ break;
+ case AY31015_TCP:
+ if (m_pins[pin] && !data)
+ tx_process();
+ m_pins[pin] = data;
+ break;
case AY31015_SWE:
m_pins[pin] = data;
update_status_pins();