fix some potential reset issues with the drivers in missb2.cpp; made soundnmi a required device (nw)

This commit is contained in:
Lord-Nightmare 2017-08-07 01:09:04 -04:00
parent 7ffd4ab12c
commit 8a209caeeb
2 changed files with 5 additions and 1 deletions

View File

@ -441,12 +441,16 @@ MACHINE_START_MEMBER(missb2_state,missb2)
{
m_gfxdecode->gfx(1)->set_palette(*m_bgpalette);
m_sreset_old = CLEAR_LINE;
save_item(NAME(m_video_enable));
save_item(NAME(m_sreset_old));
}
MACHINE_RESET_MEMBER(missb2_state,missb2)
{
MACHINE_RESET_CALL_MEMBER(common);
m_oki->reset();
bublbobl_bankswitch_w(m_maincpu->device_t::memory().space(AS_PROGRAM), 0, 0x00, 0xFF); // force a bankswitch write of all zeroes, as /RESET clears the latch
}
static MACHINE_CONFIG_START( missb2 )

View File

@ -84,7 +84,7 @@ public:
optional_device<ym2203_device> m_ym2203;
optional_device<ym3526_device> m_ym3526;
optional_device<input_merger_device> m_soundirq;
optional_device<input_merger_device> m_soundnmi;
required_device<input_merger_device> m_soundnmi;
required_device<generic_latch_8_device> m_main_to_sound;
required_device<generic_latch_8_device> m_sound_to_main;