This commit is contained in:
OBattler
2025-09-18 00:30:34 +02:00
2 changed files with 3 additions and 8 deletions

View File

@@ -1717,14 +1717,8 @@ uint8_t ymf278b::read_data_pcm()
{
// read from PCM
if (bitfield(m_address, 9) != 0)
{
uint8_t result = m_pcm.read(m_address & 0xff);
if ((m_address & 0xff) == 0x02)
result |= 0x20;
return result;
}
return 0;
return m_pcm.read(m_address & 0xff);
return 0;
}

View File

@@ -46,6 +46,7 @@ namespace ymfm
void pcm_registers::reset()
{
std::fill_n(&m_regdata[0], REGISTERS, 0);
m_regdata[0x02] = 0x20;
m_regdata[0xf8] = 0x1b;
}