bus/mtx/cfx: Do nothing when both CS0/CS1 are asserted.

This commit is contained in:
Nigel Barnes 2022-05-20 01:59:02 +01:00
parent b6c0392fa9
commit 6e80edf3be

View File

@ -123,19 +123,19 @@ void mtx_cfx_device::portc_w(uint8_t data)
if (BIT(data, 7)) if (BIT(data, 7))
m_ide->reset(); m_ide->reset();
switch (BIT(data, 5, 2)) switch (BIT(data, 3, 2))
{ {
case 0x01: // WRITE case 0x01: // CS0
if (BIT(data, 3)) // CS0 if (BIT(data, 5)) // WRITE
m_ide->cs0_w(data & 0x07, m_ide_data); m_ide->cs0_w(data & 0x07, m_ide_data);
else if (BIT(data, 4)) // CS1 if (BIT(data, 6)) // READ
m_ide->cs1_w(data & 0x07, m_ide_data); m_ide_data = m_ide->cs0_r(data & 0x07);
break; break;
case 0x02: // READ case 0x02: // CS1
if (BIT(data, 3)) // CS0 if (BIT(data, 5)) // WRITE
m_ide_data = m_ide->cs0_r(data & 0x07); m_ide->cs1_w(data & 0x07, m_ide_data);
else if (BIT(data, 4)) // CS1 if (BIT(data, 6)) // READ
m_ide_data = m_ide->cs1_r(data & 0x07); m_ide_data = m_ide->cs1_r(data & 0x07);
break; break;
} }