Exemplo n.º 1
0
void nes_namcot163_device::device_start()
{
	common_start();
	irq_timer = timer_alloc(TIMER_IRQ);
	irq_timer->adjust(attotime::zero, 0, machine().device<cpu_device>("maincpu")->cycles_to_attotime(1));

	save_item(NAME(m_irq_enable));
	save_item(NAME(m_irq_count));
	save_item(NAME(m_wram_protect));
	save_item(NAME(m_latch));
	save_item(NAME(m_chr_bank));
	save_item(NAME(m_n163_ram));

	m_mapper_sram_size = 0x2000;
	m_mapper_sram = m_n163_ram;
}
Exemplo n.º 2
0
void nes_konami_vrc4_device::device_start()
{
	common_start();
	irq_timer = timer_alloc(TIMER_IRQ);
	irq_timer->adjust(attotime::zero, 0, machine().device<cpu_device>("maincpu")->cycles_to_attotime(1));

	save_item(NAME(m_irq_mode));
	save_item(NAME(m_irq_prescale));
	save_item(NAME(m_irq_enable));
	save_item(NAME(m_irq_enable_latch));
	save_item(NAME(m_irq_count));
	save_item(NAME(m_irq_count_latch));
	save_item(NAME(m_latch));
	save_item(NAME(m_mmc_prg_bank));
	save_item(NAME(m_mmc_vrom_bank));
}
Exemplo n.º 3
0
void nes_namcot175_device::device_start()
{
	common_start();
	irq_timer = timer_alloc(TIMER_IRQ);
	irq_timer->adjust(attotime::zero, 0, machine().device<cpu_device>("maincpu")->cycles_to_attotime(1));

	save_item(NAME(m_irq_enable));
	save_item(NAME(m_irq_count));
	save_item(NAME(m_wram_protect));

	m_n163_ram = auto_alloc_array_clear(machine(), UINT8, 0x2000);
	save_pointer(NAME(m_n163_ram), 0x2000);

	m_mapper_sram_size = 0x2000;
	m_mapper_sram = m_n163_ram;
}
Exemplo n.º 4
0
void nes_tengen032_device::device_start()
{
	common_start();
	irq_timer = timer_alloc(TIMER_IRQ);
	irq_timer->reset();
	timer_freq = machine().device<cpu_device>("maincpu")->cycles_to_attotime(4);

	save_item(NAME(m_mmc_prg_bank));
	save_item(NAME(m_mmc_vrom_bank));
	save_item(NAME(m_latch));

	save_item(NAME(m_irq_mode));
	save_item(NAME(m_irq_reset));
	save_item(NAME(m_irq_enable));
	save_item(NAME(m_irq_count));
	save_item(NAME(m_irq_count_latch));
}
Exemplo n.º 5
0
void nes_event_device::device_start()
{
	common_start();
	event_timer = timer_alloc(TIMER_EVENT);
	event_timer->adjust(attotime::never);
	timer_freq = machine().device<cpu_device>("maincpu")->cycles_to_attotime(1);

	save_item(NAME(m_latch));
	save_item(NAME(m_count));
	save_item(NAME(m_reg));
	save_item(NAME(m_reg_write_enable));
	save_item(NAME(m_nwc_init));

	save_item(NAME(m_timer_count));
	save_item(NAME(m_timer_on));
	save_item(NAME(m_timer_enabled));
}
Exemplo n.º 6
0
void nes_txrom_device::mmc3_start()
{
	common_start();
	save_item(NAME(m_mmc_prg_bank));
	save_item(NAME(m_mmc_vrom_bank));
	save_item(NAME(m_latch));
	save_item(NAME(m_wram_protect));
	save_item(NAME(m_prg_base));
	save_item(NAME(m_prg_mask));
	save_item(NAME(m_chr_base));
	save_item(NAME(m_chr_mask));
	save_item(NAME(m_alt_irq));
	save_item(NAME(m_irq_enable));
	save_item(NAME(m_irq_count));
	save_item(NAME(m_irq_count_latch));
	save_item(NAME(m_irq_clear));
}
Exemplo n.º 7
0
static int
test_icap_stats(void){
	struct timeval tv;
	int ret = -1;

	Gettimeofday(&tv,NULL);
	if(common_start()){
		goto done;
	}
	if(init_ctlserver(CUNIT_CTLSERVER)){
		goto done;
	}
	printf(" Testing ICAP statistics (twice)...\n");
	if(ctlclient_quiet("icap_stats_dump") < 0){
		goto done;
	}
	if(ctlclient_quiet("pfd_table_dump") < 0){
		goto done;
	}
	if(ctlclient_quiet("snare_dump") < 0){
		goto done;
	}
	time_oqueue_session(&tv);
	Gettimeofday(&tv,NULL);
	time_oqueue_session(&tv);
	Gettimeofday(&tv,NULL);
	time_oqueue_session(&tv);
	Gettimeofday(&tv,NULL);
	time_oqueue_session(&tv);
	Gettimeofday(&tv,NULL);
	time_oqueue_session(&tv);
	Gettimeofday(&tv,NULL);
	ret = (ctlclient_quiet("icap_stats_dump") < 0);
	ret |= (ctlclient_quiet("pfd_table_dump") < 0);
	ret |= (ctlclient_quiet("snare_dump") < 0);

done:
	ret |= close_icap_servers();
	ret |= reap_poller_thread(snarepoller);
	ret |= destroy_poller(snarepoller);
	ret |= stop_config();
	ret |= stop_fileconf();
	ret |= stop_ctlserver();
	return ret;
}
Exemplo n.º 8
0
void nes_74x377_device::device_start()
{
	common_start();
}
Exemplo n.º 9
0
void nes_74x161x161x32_device::device_start()
{
	common_start();
}
Exemplo n.º 10
0
void nes_ffe3_device::device_start()
{
	common_start();
}
Exemplo n.º 11
0
void nes_cne_fsb_device::device_start()
{
	common_start();
}
Exemplo n.º 12
0
void nes_un1rom_device::device_start()
{
	common_start();
}
Exemplo n.º 13
0
void nes_cnrom_device::device_start()
{
	common_start();
	save_item(NAME(m_chr_open_bus));
}
Exemplo n.º 14
0
void nes_sachen_sa0037_device::device_start()
{
	common_start();
}
Exemplo n.º 15
0
void nes_jf19_device::device_start()
{
	common_start();
}
Exemplo n.º 16
0
void nes_jf17_device::device_start()
{
	common_start();
	save_item(NAME(m_latch));
}
Exemplo n.º 17
0
void nes_konami_vrc1_device::device_start()
{
	common_start();
	save_item(NAME(m_mmc_vrom_bank));
}
Exemplo n.º 18
0
void nes_sachen_sa72008_device::device_start()
{
	common_start();
}
Exemplo n.º 19
0
void nes_uxrom_cc_device::device_start()
{
	common_start();
}
Exemplo n.º 20
0
void nes_sachen_tcu01_device::device_start()
{
	common_start();
}
Exemplo n.º 21
0
void nes_cne_decathl_device::device_start()
{
	common_start();
}
Exemplo n.º 22
0
void nes_sachen_tcu02_device::device_start()
{
	common_start();
	save_item(NAME(m_latch));
}
Exemplo n.º 23
0
void nes_cne_shlz_device::device_start()
{
	common_start();
}
Exemplo n.º 24
0
void nes_sachen_74x374_device::device_start()
{
	common_start();
	save_item(NAME(m_latch));
	save_item(NAME(m_mmc_vrom_bank));
}
Exemplo n.º 25
0
void nes_hes_device::device_start()
{
	common_start();
}
Exemplo n.º 26
0
void nes_sachen_8259a_device::device_start()
{
	common_start();
	save_item(NAME(m_latch));
	save_item(NAME(m_reg));
}
Exemplo n.º 27
0
void nes_74x139x74_device::device_start()
{
	common_start();
}
Exemplo n.º 28
0
void nes_karaokestudio_device::device_start()
{
	common_start();
}
Exemplo n.º 29
0
void nes_ggenie_device::device_start()
{
	common_start();
	save_item(NAME(m_gg_bypass));
}
Exemplo n.º 30
0
void nes_oekakids_device::device_start()
{
	common_start();
	save_item(NAME(m_latch));
	save_item(NAME(m_reg));
}