mirror of
https://github.com/holub/mame
synced 2025-06-06 12:53:46 +03:00
update prev commit
This commit is contained in:
parent
95841d211e
commit
d961bfd2e8
@ -182,13 +182,14 @@ READ8_MEMBER( msm5832_device::data_r )
|
||||
{
|
||||
// TODO reference output
|
||||
}
|
||||
else if (m_address > REGISTER_Y10) // Otrona Attache CP/M BIOS checks these unused registers to detect it
|
||||
else if (m_address <= REGISTER_Y10)
|
||||
{
|
||||
data = 0x0f;
|
||||
data = m_reg[m_address];
|
||||
}
|
||||
else
|
||||
{
|
||||
data = m_reg[m_address];
|
||||
// Otrona Attache CP/M BIOS checks unused registers to detect it
|
||||
data = 0x0f;
|
||||
}
|
||||
}
|
||||
|
||||
@ -206,7 +207,13 @@ WRITE8_MEMBER( msm5832_device::data_w )
|
||||
{
|
||||
if (LOG) logerror("MSM5832 '%s' Register Write %01x: %01x\n", tag(), m_address, data & 0x0f);
|
||||
|
||||
if (m_cs && m_write && m_address <= REGISTER_Y10)
|
||||
if (m_cs && m_write)
|
||||
{
|
||||
if (m_address == REGISTER_REF)
|
||||
{
|
||||
// TODO reference output
|
||||
}
|
||||
else if (m_address <= REGISTER_Y10)
|
||||
{
|
||||
m_reg[m_address] = data & 0x0f;
|
||||
|
||||
@ -214,6 +221,7 @@ WRITE8_MEMBER( msm5832_device::data_w )
|
||||
read_counter(REGISTER_H1), read_counter(REGISTER_MI1), read_counter(REGISTER_S1));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//-------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user