예제 #1
0
static MACHINE_RESET( atetris )
{
	/* reset the slapstic */
	slapstic_reset();
	current_bank = slapstic_bank() & 1;
	reset_bank();

	/* start interrupts going (32V clocked by 16V) */
	timer_adjust_oneshot(interrupt_timer, video_screen_get_time_until_pos(machine->primary_screen, 48, 0), 48);
}
예제 #2
0
파일: atetris.c 프로젝트: Ilgrim/MAMEHub
void atetris_state::machine_reset()
{
	/* reset the slapstic */
	slapstic_reset();
	m_current_bank = slapstic_bank() & 1;
	reset_bank();

	/* start interrupts going (32V clocked by 16V) */
	m_interrupt_timer->adjust(machine().primary_screen->time_until_pos(48), 48);
}
예제 #3
0
파일: atetris.c 프로젝트: cdenix/psmame
static MACHINE_RESET( atetris )
{
	atetris_state *state = machine.driver_data<atetris_state>();

	/* reset the slapstic */
	slapstic_reset();
	state->m_current_bank = slapstic_bank() & 1;
	reset_bank(machine);

	/* start interrupts going (32V clocked by 16V) */
	state->m_interrupt_timer->adjust(machine.primary_screen->time_until_pos(48), 48);
}
예제 #4
0
void starwars_state::machine_reset()
{
	/* ESB-specific */
	if (m_is_esb)
	{
		address_space &space = machine().device("maincpu")->memory().space(AS_PROGRAM);

		/* reset the slapstic */
		slapstic_reset();
		m_slapstic_current_bank = slapstic_bank();
		memcpy(m_slapstic_base, &m_slapstic_source[m_slapstic_current_bank * 0x2000], 0x2000);

		/* reset all the banks */
		starwars_out_w(space, 4, 0);
	}

	/* reset the matrix processor */
	starwars_mproc_reset(machine());
}
예제 #5
0
static MACHINE_RESET( starwars )
{
	starwars_state *state = machine.driver_data<starwars_state>();
	/* ESB-specific */
	if (state->m_is_esb)
	{
		address_space *space = machine.device("maincpu")->memory().space(AS_PROGRAM);

		/* reset the slapstic */
		slapstic_reset();
		state->m_slapstic_current_bank = slapstic_bank();
		memcpy(state->m_slapstic_base, &state->m_slapstic_source[state->m_slapstic_current_bank * 0x2000], 0x2000);

		/* reset all the banks */
		state->starwars_out_w(*space, 4, 0);
	}

	/* reset the matrix processor */
	starwars_mproc_reset(machine);
}