mirror of
https://github.com/holub/mame
synced 2025-04-22 16:31:49 +03:00
c140: c219 has less voice regs, don't call c140_r
This commit is contained in:
parent
2dd082e07c
commit
0656b4ab4d
@ -478,8 +478,10 @@ inline u8 c140_device::keyon_status_read(u16 offset)
|
||||
u8 c140_device::c140_r(offs_t offset)
|
||||
{
|
||||
offset &= 0x1ff;
|
||||
|
||||
if ((offset & 0xf) == 0x5 && offset < 0x180)
|
||||
return keyon_status_read(offset);
|
||||
|
||||
return m_REG[offset];
|
||||
}
|
||||
|
||||
@ -556,7 +558,10 @@ u8 c219_device::c219_r(offs_t offset)
|
||||
|
||||
// assume same as c140
|
||||
// TODO: what happens here on reading unmapped voice regs?
|
||||
return c140_r(offset);
|
||||
if ((offset & 0xf) == 0x5 && offset < 0x100)
|
||||
return keyon_status_read(offset);
|
||||
|
||||
return m_REG[offset];
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user