mirror of
https://github.com/holub/mame
synced 2025-07-02 00:29:37 +03:00
amstrad.c: worked around gx4000 crash (nw)
This commit is contained in:
parent
241f3e61f9
commit
9ecb89981f
@ -1658,10 +1658,14 @@ Bit 4 controls the interrupt generation. It can be used to delay interrupts.*/
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* b3b2 != 0 then change the state of upper or lower rom area and rethink memory */
|
/* b3b2 != 0 then change the state of upper or lower rom area and rethink memory */
|
||||||
|
if (m_exp)
|
||||||
|
{
|
||||||
if((dataToGateArray & 0x0c) != 0)
|
if((dataToGateArray & 0x0c) != 0)
|
||||||
m_exp->romen_w(0); // active low
|
m_exp->romen_w(0); // active low
|
||||||
else
|
else
|
||||||
m_exp->romen_w(1);
|
m_exp->romen_w(1);
|
||||||
|
}
|
||||||
|
|
||||||
amstrad_setLowerRom();
|
amstrad_setLowerRom();
|
||||||
amstrad_setUpperRom();
|
amstrad_setUpperRom();
|
||||||
|
|
||||||
@ -2385,6 +2389,7 @@ void amstrad_state::amstrad_rethinkMemory()
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* mappings for other expansion devices */
|
/* mappings for other expansion devices */
|
||||||
|
if (m_exp)
|
||||||
m_exp->set_mapping();
|
m_exp->set_mapping();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user