summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author hap <happppp@users.noreply.github.com>2017-01-21 20:58:27 +0100
committer hap <happppp@users.noreply.github.com>2017-01-21 20:58:50 +0100
commit8df5b574224fb84054a6325a5d7b08cb322d31fc (patch)
tree6c1ae6abd93f98051cfc083a8e7d5ea6855935f7
parentf7e67977931561ea0acc0a534fe3043eddf6dce2 (diff)
tms0970: fix problem with DDIG, should fix comp4 leds (nw)
-rw-r--r--src/devices/cpu/tms1000/tms0970.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/devices/cpu/tms1000/tms0970.cpp b/src/devices/cpu/tms1000/tms0970.cpp
index 116c197e996..0f67ffa4055 100644
--- a/src/devices/cpu/tms1000/tms0970.cpp
+++ b/src/devices/cpu/tms1000/tms0970.cpp
@@ -150,7 +150,7 @@ void tms0970_cpu_device::op_setr()
{
// SETR: set output register
// DDIG line is a coincidence between the selected output pla row(s) and segment pla row(s)
- int ddig = (m_opla->read(m_a) & m_o) ? 1 : 0;
+ int ddig = (~m_opla->read(m_a) & m_o) ? 0 : 1;
m_r = (m_r & ~(1 << m_y)) | (ddig << m_y);
}