From f403a46c074ae9897007abd90e58f1b417567251 Mon Sep 17 00:00:00 2001 From: cracyc Date: Sun, 28 Oct 2018 18:19:54 -0500 Subject: [PATCH] am9517a: revert these changes which break the qx10 and pc9801 which use active low dreq (nw) --- src/devices/machine/am9517a.cpp | 25 ++++--------------------- 1 file changed, 4 insertions(+), 21 deletions(-) diff --git a/src/devices/machine/am9517a.cpp b/src/devices/machine/am9517a.cpp index 55a5cab0d8c..cd6955b63ed 100644 --- a/src/devices/machine/am9517a.cpp +++ b/src/devices/machine/am9517a.cpp @@ -817,22 +817,9 @@ WRITE8_MEMBER( am9517a_device::write ) switch (offset & 0x0f) { case REGISTER_COMMAND: - { - bool old_dack_active_high = COMMAND_DACK_ACTIVE_HIGH; - bool old_dreq_active_low = COMMAND_DREQ_ACTIVE_LOW; - m_command = data; - LOG("AM9517A Command Register: %02x\n", m_command); + m_command = data; - if (old_dack_active_high != COMMAND_DACK_ACTIVE_HIGH) - { - set_dack(); // Line values for DACK changed, update them to reflect the new state. - } - if (old_dreq_active_low != COMMAND_DREQ_ACTIVE_LOW) - { - // Invert the request bits because the interpretation of line levels has changed - m_status ^= 0xF0; - } - } + LOG("AM9517A Command Register: %02x\n", m_command); break; case REGISTER_REQUEST: @@ -894,12 +881,8 @@ WRITE8_MEMBER( am9517a_device::write ) case REGISTER_MASTER_CLEAR: LOG("AM9517A Master Clear\n"); - { - // Even the master reset should not clear the state of the input lines. - int stored_status = m_status; - device_reset(); - m_status = stored_status & 0xF0; - } + + device_reset(); break; case REGISTER_CLEAR_MASK: