Exemple #1
0
void starwars_state::machine_reset()
{
	/* ESB-specific */
	if (m_is_esb)
	{
		address_space &space = m_maincpu->space(AS_PROGRAM);

		/* reset the slapstic */
		m_slapstic_device->slapstic_reset();
		m_slapstic_current_bank = m_slapstic_device->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();
}
Exemple #2
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);
}