do reset on different way (nw)

This commit is contained in:
Miodrag Milanovic 2014-03-17 10:28:34 +00:00
parent 5e8e5629e3
commit 68f8eeda6e
5 changed files with 7 additions and 11 deletions

View File

@ -690,15 +690,13 @@ static MACHINE_CONFIG_DERIVED( llander, asteroid )
MCFG_CPU_PROGRAM_MAP(llander_map)
MCFG_CPU_PERIODIC_INT_DRIVER(asteroid_state, llander_interrupt, (double)MASTER_CLOCK/4096/12)
MCFG_MACHINE_RESET(avgdvg)
MCFG_MACHINE_RESET_OVERRIDE(asteroid_state, llander)
MCFG_SCREEN_MODIFY("screen")
MCFG_SCREEN_REFRESH_RATE(40)
MCFG_SCREEN_VISIBLE_AREA(522, 1566, 270, 1070)
MCFG_SCREEN_UPDATE_DEVICE("vector", vector_device, screen_update)
MCFG_VIDEO_START(dvg)
/* sound hardware */
MCFG_SOUND_REPLACE("discrete", DISCRETE, 0)
MCFG_SOUND_CONFIG_DISCRETE(llander)

View File

@ -42,6 +42,7 @@ public:
DECLARE_WRITE8_MEMBER(asteroid_noise_reset_w);
DECLARE_WRITE8_MEMBER(llander_snd_reset_w);
DECLARE_WRITE8_MEMBER(llander_sounds_w);
DECLARE_MACHINE_RESET(llander);
required_device<cpu_device> m_maincpu;
};

View File

@ -136,3 +136,8 @@ void asteroid_state::machine_reset()
asteroid_bank_switch_w(m_maincpu->space(AS_PROGRAM), 0, 0);
avgdvg_reset_w(m_maincpu->space(AS_PROGRAM), 0, 0);
}
MACHINE_RESET_MEMBER(asteroid_state, llander)
{
avgdvg_reset_w(m_maincpu->space(AS_PROGRAM), 0, 0);
}

View File

@ -1285,12 +1285,6 @@ WRITE16_HANDLER( avgdvg_reset_word_w )
avgdvg_reset_w (space,0,0);
}
MACHINE_RESET( avgdvg )
{
avgdvg_reset_w (machine.device("maincpu")->memory().space(AS_PROGRAM),0,0);
}
/*************************************
*
* Configuration of VG variants

View File

@ -20,6 +20,4 @@ VIDEO_START( avg_quantum );
VIDEO_START( avg_bzone );
VIDEO_START( avg_tomcat );
MACHINE_RESET( avgdvg );
#endif