mirror of
https://github.com/holub/mame
synced 2025-04-20 15:32:45 +03:00
mm74c922: clock da pin after updating data outputs [Robbbert]
This commit is contained in:
parent
2298fa1c34
commit
9f0182d043
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user