Ejemplo n.º 1
0
void watchdog_timer_device::device_validity_check(validity_checker &valid) const
{
	if (m_vblank_count != 0)
	{
		screen_device *screen = dynamic_cast<screen_device *>(siblingdevice(m_screen_tag));
		if (screen == nullptr)
			osd_printf_error("Invalid screen tag specified\n");
	}
}
Ejemplo n.º 2
0
Archivo: sr.cpp Proyecto: qwijibo/mame
void sr_device::device_start()
{
	// grab the main memory space from the mmu
	device_memory_interface *mmu;
	siblingdevice("mmu")->interface(mmu);
	m_data_space = &mmu->space(0);
	m_io_space = &mmu->space(1);

	// resolve callbacks
	m_out_irq0_cb.resolve_safe();
	m_out_irq1_cb.resolve_safe();
	m_out_irq2_cb.resolve_safe();

	// empty the slots
	m_slot_count = 0;
	for (device_sr_card_interface *&slot : m_slot)
		slot = nullptr;
}