mirror of
https://github.com/holub/mame
synced 2025-04-23 00:39:36 +03:00
ns32202: check interrupt status after in-service write
This commit is contained in:
parent
105c61a025
commit
d1fefb196a
@ -712,14 +712,24 @@ void ns32202_device::ipndh_w(u8 data)
|
||||
|
||||
void ns32202_device::isrvl_w(u8 data)
|
||||
{
|
||||
LOGMASKED(LOG_REGW, "isrvl_w 0x%02x (%s)\n", data, machine().describe_context());
|
||||
m_isrv = (m_isrv & 0xff00) | data;
|
||||
if (u8(m_isrv >> 0) ^ data)
|
||||
{
|
||||
LOGMASKED(LOG_REGW, "isrvl_w 0x%02x (%s)\n", data, machine().describe_context());
|
||||
m_isrv = (m_isrv & 0xff00) | data;
|
||||
|
||||
m_interrupt->adjust(attotime::zero);
|
||||
}
|
||||
}
|
||||
|
||||
void ns32202_device::isrvh_w(u8 data)
|
||||
{
|
||||
LOGMASKED(LOG_REGW, "isrvh_w 0x%02x (%s)\n", data, machine().describe_context());
|
||||
m_isrv = (u16(data) << 8) | u8(m_isrv);
|
||||
if (u8(m_isrv >> 8) ^ data)
|
||||
{
|
||||
LOGMASKED(LOG_REGW, "isrvh_w 0x%02x (%s)\n", data, machine().describe_context());
|
||||
m_isrv = (u16(data) << 8) | u8(m_isrv);
|
||||
|
||||
m_interrupt->adjust(attotime::zero);
|
||||
}
|
||||
}
|
||||
|
||||
void ns32202_device::imskl_w(u8 data)
|
||||
|
Loading…
Reference in New Issue
Block a user