mirror of
https://github.com/holub/mame
synced 2025-06-30 16:00:01 +03:00
am9517a: revert these changes which break the qx10 and pc9801 which use active low dreq (nw)
This commit is contained in:
parent
b069c5e914
commit
9ead49ae33
@ -817,22 +817,9 @@ WRITE8_MEMBER( am9517a_device::write )
|
|||||||
switch (offset & 0x0f)
|
switch (offset & 0x0f)
|
||||||
{
|
{
|
||||||
case REGISTER_COMMAND:
|
case REGISTER_COMMAND:
|
||||||
{
|
|
||||||
bool old_dack_active_high = COMMAND_DACK_ACTIVE_HIGH;
|
|
||||||
bool old_dreq_active_low = COMMAND_DREQ_ACTIVE_LOW;
|
|
||||||
m_command = data;
|
m_command = data;
|
||||||
LOG("AM9517A Command Register: %02x\n", m_command);
|
|
||||||
|
|
||||||
if (old_dack_active_high != COMMAND_DACK_ACTIVE_HIGH)
|
LOG("AM9517A Command Register: %02x\n", m_command);
|
||||||
{
|
|
||||||
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;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case REGISTER_REQUEST:
|
case REGISTER_REQUEST:
|
||||||
@ -894,12 +881,8 @@ WRITE8_MEMBER( am9517a_device::write )
|
|||||||
|
|
||||||
case REGISTER_MASTER_CLEAR:
|
case REGISTER_MASTER_CLEAR:
|
||||||
LOG("AM9517A Master Clear\n");
|
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();
|
device_reset();
|
||||||
m_status = stored_status & 0xF0;
|
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case REGISTER_CLEAR_MASK:
|
case REGISTER_CLEAR_MASK:
|
||||||
|
Loading…
Reference in New Issue
Block a user