diff options
author | Michael Zapf <github@mizapf.de> | 2020-04-06 13:56:08 +0200 |
---|---|---|
committer | Michael Zapf <github@mizapf.de> | 2020-04-06 13:56:08 +0200 |
commit | 1bd6f295c97823d9aca6d35478c109a4a1b27e49 (patch) | |
tree | 12945bcfd4c4dec06046c3476f1811f91016944b | |
parent | bbb1cf792a78349d9019a9170db3124038be6f8f (diff) |
Changed output to deliver either 0 or 1, not -1. (nw)
-rw-r--r-- | src/devices/machine/7474.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/devices/machine/7474.cpp b/src/devices/machine/7474.cpp index ea2f315c72f..ae2a90e8f61 100644 --- a/src/devices/machine/7474.cpp +++ b/src/devices/machine/7474.cpp @@ -128,13 +128,13 @@ void ttl7474_device::update() if (m_output != m_last_output) { m_last_output = m_output; - m_output_func(m_output); + m_output_func(m_output!=0); } // call callback if any of the outputs changed if (m_output_comp != m_last_output_comp) { m_last_output_comp = m_output_comp; - m_comp_output_func(m_output_comp); + m_comp_output_func(m_output_comp!=0); } } @@ -189,7 +189,7 @@ WRITE_LINE_MEMBER( ttl7474_device::d_w ) READ_LINE_MEMBER( ttl7474_device::output_r ) { - return m_output; + return m_output!=0; } @@ -199,7 +199,7 @@ READ_LINE_MEMBER( ttl7474_device::output_r ) READ_LINE_MEMBER( ttl7474_device::output_comp_r ) { - return m_output_comp; + return m_output_comp!=0; } void ttl7474_device::init() |