Skip to content

Commit 81362b5

Browse files
authored
bus/spectrum/musicmachine.cpp: confirm port decoding; fix save state (#12853)
1 parent b2e592e commit 81362b5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/devices/bus/spectrum/musicmachine.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,9 @@ u8 spectrum_musicmachine_device::iorq_r(offs_t offset)
101101
switch (offset & 0xff)
102102
{
103103
case 0x7f:
104-
if (offset == 0xfc7f)
104+
if ((offset & 0x3ff) == 0x27f)
105105
data = m_acia->status_r();
106-
else
106+
else if ((offset & 0x3ff) == 0x37f)
107107
data = m_acia->data_r();
108108
break;
109109
case 0xbf:
@@ -125,9 +125,9 @@ void spectrum_musicmachine_device::iorq_w(offs_t offset, u8 data)
125125
m_irq_select = data & 1;
126126
break;
127127
case 0x7f:
128-
if (offset == 0xfc7f)
128+
if ((offset & 0x3ff) == 0x07f)
129129
m_acia->control_w(data);
130-
else
130+
else if ((offset & 0x3ff) == 0x17f)
131131
m_acia->data_w(data);
132132
break;
133133
case 0x9f:

0 commit comments

Comments
 (0)