diff options
| author | 2026-04-17 15:21:32 +0200 | |
|---|---|---|
| committer | 2026-04-17 15:21:32 +0200 | |
| commit | d3d82c776740320dc29eca249f8cd5b1ae4d1b40 (patch) | |
| tree | 96d2ab1e717f8fa20f73713a95c3f4ce3fecb4e8 /src/devices/machine/7474.cpp | |
| parent | 0b24b4c2f6052cea7d612408f4baa58ed63ee290 (diff) | |
| parent | 0034dde186fa6f594125ac3dc2b5977f18e7a062 (diff) | |
Merge branch 'master' into floppysound
Diffstat (limited to 'src/devices/machine/7474.cpp')
| -rw-r--r-- | src/devices/machine/7474.cpp | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/src/devices/machine/7474.cpp b/src/devices/machine/7474.cpp index 45e21406edc..46fb7912a88 100644 --- a/src/devices/machine/7474.cpp +++ b/src/devices/machine/7474.cpp @@ -43,7 +43,6 @@ #include "7474.h" - //************************************************************************** // LIVE DEVICE //************************************************************************** @@ -101,28 +100,27 @@ void ttl7474_device::update() { if (!m_preset && m_clear) // line 1 in truth table { - m_output = 1; + m_output = 1; m_output_comp = 0; } else if (m_preset && !m_clear) // line 2 in truth table { - m_output = 0; + m_output = 0; m_output_comp = 1; } else if (!m_preset && !m_clear) // line 3 in truth table { - m_output = 1; + m_output = 1; m_output_comp = 1; } else if (!m_last_clock && m_clk) // line 4 in truth table { - m_output = m_d; + m_output = m_d; m_output_comp = !m_d; } m_last_clock = m_clk; - // call callback if any of the outputs changed if (m_output != m_last_output) { @@ -188,7 +186,7 @@ void ttl7474_device::d_w(int state) int ttl7474_device::output_r() { - return m_output!=0; + return m_output != 0; } @@ -198,7 +196,7 @@ int ttl7474_device::output_r() int ttl7474_device::output_comp_r() { - return m_output_comp!=0; + return m_output_comp != 0; } void ttl7474_device::init() |
