bus/spectrum/musicmachine.cpp: confirm port decoding; fix save state (#12853)

This commit is contained in:
holub 2024-10-04 11:48:05 -04:00 committed by GitHub
parent b2e592e865
commit 81362b5700
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -101,9 +101,9 @@ u8 spectrum_musicmachine_device::iorq_r(offs_t offset)
switch (offset & 0xff)
{
case 0x7f:
if (offset == 0xfc7f)
if ((offset & 0x3ff) == 0x27f)
data = m_acia->status_r();
else
else if ((offset & 0x3ff) == 0x37f)
data = m_acia->data_r();
break;
case 0xbf:
@ -125,9 +125,9 @@ void spectrum_musicmachine_device::iorq_w(offs_t offset, u8 data)
m_irq_select = data & 1;
break;
case 0x7f:
if (offset == 0xfc7f)
if ((offset & 0x3ff) == 0x07f)
m_acia->control_w(data);
else
else if ((offset & 0x3ff) == 0x17f)
m_acia->data_w(data);
break;
case 0x9f: