Merge pull request #6186 from Cacodemon345/opl4-fixes-2
Actually fix OPL4 ID readbacks
This commit is contained in:
@@ -1716,8 +1716,14 @@ uint8_t ymf278b::read_status()
|
|||||||
uint8_t ymf278b::read_data_pcm()
|
uint8_t ymf278b::read_data_pcm()
|
||||||
{
|
{
|
||||||
// read from PCM
|
// read from PCM
|
||||||
if (bitfield(m_address, 9) != 0)
|
if (bitfield(m_address, 9) != 0) {
|
||||||
return m_pcm.read(m_address & 0xff);
|
auto ret = m_pcm.read(m_address & 0xff);
|
||||||
|
if (m_address == 0x202) {
|
||||||
|
ret &= ~0xe0;
|
||||||
|
ret |= 0x20;
|
||||||
|
}
|
||||||
|
return ret;
|
||||||
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user