示例#1
0
文件: diexec.c 项目: crazii/mameplus
void device_execute_interface::trigger_periodic_interrupt()
{
	// bail if there is no routine
	if (!suspended(SUSPEND_REASON_HALT | SUSPEND_REASON_RESET | SUSPEND_REASON_DISABLE | SUSPEND_REASON_CLOCK))
	{
		if (!m_timed_interrupt.isnull())
			m_timed_interrupt(device());
	}
}
示例#2
0
void device_execute_interface::trigger_periodic_interrupt()
{
	// bail if there is no routine
	if (!suspended(SUSPEND_REASON_HALT | SUSPEND_REASON_RESET | SUSPEND_REASON_DISABLE))
	{
		if (m_timed_interrupt_legacy != NULL)
			(*m_timed_interrupt_legacy)(&device());
		else if (!m_timed_interrupt.isnull())
			m_timed_interrupt(device());
	}
}