diff options
author | 2017-02-04 19:00:35 -0500 | |
---|---|---|
committer | 2017-02-04 19:00:35 -0500 | |
commit | aed1d8afeeaa5d7d727edba8c05217c47e33ec98 (patch) | |
tree | 1ee0fa84b0551c6d2f7069afac80b21835d51ae5 | |
parent | e23525589fa6f9ccb5e22bde48c6919da8c5b46f (diff) |
lastbank: Allow sound CPU to reset the ES-8712 and M6295
-rw-r--r-- | src/mame/drivers/lastbank.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/mame/drivers/lastbank.cpp b/src/mame/drivers/lastbank.cpp index df33ff870d1..b5c2d6fd9cf 100644 --- a/src/mame/drivers/lastbank.cpp +++ b/src/mame/drivers/lastbank.cpp @@ -29,12 +29,14 @@ public: : driver_device(mconfig, type, tag), m_maincpu(*this, "maincpu"), m_vdp(*this, "tc0091lvc"), - m_oki(*this, "oki") + m_oki(*this, "oki"), + m_essnd(*this, "essnd") { } required_device<cpu_device> m_maincpu; required_device<tc0091lvc_device> m_vdp; required_device<okim6295_device> m_oki; + required_device<es8712_device> m_essnd; virtual void video_start() override; uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); @@ -222,6 +224,10 @@ READ8_MEMBER(lastbank_state::soundlatch2_r) WRITE8_MEMBER(lastbank_state::sound_flags_w) { m_sound_flags = data; + if (!BIT(data, 4)) + m_essnd->reset(); + if (!BIT(data, 5)) + m_oki->reset(); } CUSTOM_INPUT_MEMBER(lastbank_state::sound_status_r) |