nes_apu: update stream before reading statusreg

This commit is contained in:
hap 2022-11-30 20:50:12 +01:00
parent dda13b44f3
commit 46b3f81f94
2 changed files with 3 additions and 0 deletions

View File

@ -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;

View File

@ -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