mirror of
https://github.com/holub/mame
synced 2025-04-23 08:49:55 +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))
|
||||
m_ide->reset();
|
||||
|
||||
switch (BIT(data, 5, 2))
|
||||
switch (BIT(data, 3, 2))
|
||||
{
|
||||
case 0x01: // WRITE
|
||||
if (BIT(data, 3)) // CS0
|
||||
case 0x01: // CS0
|
||||
if (BIT(data, 5)) // WRITE
|
||||
m_ide->cs0_w(data & 0x07, m_ide_data);
|
||||
else if (BIT(data, 4)) // CS1
|
||||
m_ide->cs1_w(data & 0x07, m_ide_data);
|
||||
if (BIT(data, 6)) // READ
|
||||
m_ide_data = m_ide->cs0_r(data & 0x07);
|
||||
break;
|
||||
|
||||
case 0x02: // READ
|
||||
if (BIT(data, 3)) // CS0
|
||||
m_ide_data = m_ide->cs0_r(data & 0x07);
|
||||
else if (BIT(data, 4)) // CS1
|
||||
case 0x02: // CS1
|
||||
if (BIT(data, 5)) // WRITE
|
||||
m_ide->cs1_w(data & 0x07, m_ide_data);
|
||||
if (BIT(data, 6)) // READ
|
||||
m_ide_data = m_ide->cs1_r(data & 0x07);
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user