mirror of
https://github.com/holub/mame
synced 2025-07-04 09:28:51 +03:00
bus/mtx/cfx: Do nothing when both CS0/CS1 are asserted.
This commit is contained in:
parent
b6c0392fa9
commit
6e80edf3be
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user