Exemplo n.º 1
0
device_execute_interface::device_execute_interface(const machine_config &mconfig, device_t &device)
	: device_interface(device, "execute")
	, m_scheduler(nullptr)
	, m_disabled(false)
	, m_vblank_interrupt_screen(nullptr)
	, m_timed_interrupt_period(attotime::zero)
	, m_nextexec(nullptr)
	, m_timedint_timer(nullptr)
	, m_profiler(PROFILER_IDLE)
	, m_icountptr(nullptr)
	, m_cycles_running(0)
	, m_cycles_stolen(0)
	, m_suspend(0)
	, m_nextsuspend(0)
	, m_eatcycles(0)
	, m_nexteatcycles(0)
	, m_trigger(0)
	, m_inttrigger(0)
	, m_totalcycles(0)
	, m_divisor(0)
	, m_divshift(0)
	, m_cycles_per_second(0)
	, m_attoseconds_per_cycle(0)
{
	memset(&m_localtime, 0, sizeof(m_localtime));

	// configure the fast accessor
	assert(!device.interfaces().m_execute);
	device.interfaces().m_execute = this;
}
Exemplo n.º 2
0
device_memory_interface::device_memory_interface(const machine_config &mconfig, device_t &device)
	: device_interface(device, "memory")
{
	memset(m_address_map, 0, sizeof(m_address_map));
	memset(m_addrspace, 0, sizeof(m_addrspace));

	// configure the fast accessor
	device.interfaces().m_memory = this;
}