diff --git a/src/devices/machine/mm74c922.cpp b/src/devices/machine/mm74c922.cpp index edcf4093e20..ee44fb38f87 100644 --- a/src/devices/machine/mm74c922.cpp +++ b/src/devices/machine/mm74c922.cpp @@ -23,7 +23,6 @@ DEFINE_DEVICE_TYPE(MM74C923, mm74c923_device, "mm74c923", "MM74C923 20-Key Encod - //************************************************************************** // LIVE DEVICE //************************************************************************** @@ -111,6 +110,13 @@ uint8_t mm74c922_device::read() void mm74c922_device::change_output_lines() { + // clock data latches + if (m_next_data != m_data) + { + m_data = m_next_data; + } + + // clock data available if (m_next_da != m_da) { m_da = m_next_da; @@ -120,12 +126,6 @@ void mm74c922_device::change_output_lines() // active high output m_write_da(m_da ? 1 : 0); } - - // clock data latches - if (m_next_data != m_data) - { - m_data = m_next_data; - } }