From 46b3f81f9431600be4fdaa98691be8c1aa50db55 Mon Sep 17 00:00:00 2001 From: hap Date: Wed, 30 Nov 2022 20:50:12 +0100 Subject: nes_apu: update stream before reading statusreg --- src/devices/sound/nes_apu.cpp | 2 ++ src/mame/handheld/hh_hmcs40.cpp | 1 + 2 files changed, 3 insertions(+) diff --git a/src/devices/sound/nes_apu.cpp b/src/devices/sound/nes_apu.cpp index ee059c1cd22..62f105159d0 100644 --- a/src/devices/sound/nes_apu.cpp +++ b/src/devices/sound/nes_apu.cpp @@ -699,6 +699,8 @@ u8 nesapu_device::read(offs_t offset) { if (offset == 0x15) /*FIXED* Address $4015 has different behaviour*/ { + m_stream->update(); + int readval = 0; if (m_APU.squ[0].vbl_length > 0) readval |= 0x01; diff --git a/src/mame/handheld/hh_hmcs40.cpp b/src/mame/handheld/hh_hmcs40.cpp index 4f062c309a3..591dce5ad0b 100644 --- a/src/mame/handheld/hh_hmcs40.cpp +++ b/src/mame/handheld/hh_hmcs40.cpp @@ -33,6 +33,7 @@ known chips: @A70 HD38800 1982, Coleco Galaxian @A73 HD38800 1982, Mattel Star Hawk (PT-317B) @A77 HD38800 1982, Bandai Frisky Tom (PT-327A) + *A87 HD38800 1982, Gakken Paint Roller @A88 HD38800 1982, Tomy Tron (THN-02) @B01 HD38800 1982, Gakken Crazy Kong @B19 HD38800 1982, Bandai Zaxxon -- cgit v1.2.3