tms0970: fix problem with DDIG, should fix comp4 leds (nw)

This commit is contained in:
hap 2017-01-21 20:58:27 +01:00
parent f7e6797793
commit 8df5b57422

View File

@ -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);
}