From 9e249705f0b79ceafb76845cfdae2933a211dc39 Mon Sep 17 00:00:00 2001 From: angelosa Date: Thu, 9 Nov 2023 17:54:52 +0100 Subject: taito/ashnojoe.cpp: make sure sound section starts in a disabled state, fix full ADPCM playback on soft resets --- src/mame/taito/ashnojoe.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/mame/taito/ashnojoe.cpp b/src/mame/taito/ashnojoe.cpp index 7d2ffe1a64f..eea29851cb9 100644 --- a/src/mame/taito/ashnojoe.cpp +++ b/src/mame/taito/ashnojoe.cpp @@ -489,7 +489,7 @@ GFXDECODE_END void ashnojoe_state::ym2203_write_a(u8 data) { - // This gets called at 8910 startup with 0xff before the 5205 exists, causing a crash + // HACK: This gets called at 8910 startup with 0xff before the 5205 exists, causing a crash if (data == 0xff) return; @@ -528,8 +528,12 @@ void ashnojoe_state::machine_start() void ashnojoe_state::machine_reset() { + // start the sound section with a known state + // (would otherwise playback the full ADPCM bank on soft resets) m_adpcm_byte = 0; m_msm5205_vclk_toggle = 0; + m_msm->reset_w(1); + m_audiobank->set_entry(0); } -- cgit v1.2.3