mirror of
https://github.com/holub/mame
synced 2025-04-23 00:39:36 +03:00
bus/spectrum/musicmachine.cpp: confirm port decoding; fix save state (#12853)
This commit is contained in:
parent
b2e592e865
commit
81362b5700
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user