mirror of
https://github.com/holub/mame
synced 2025-05-09 15:51:48 +03:00
apple2: corrected Joyport multiplexing [Golden Child]
This commit is contained in:
parent
18cbb7d521
commit
0075e8c519
@ -76,23 +76,23 @@ void apple2_joyport_device::device_start()
|
|||||||
|
|
||||||
READ_LINE_MEMBER(apple2_joyport_device::sw0_r)
|
READ_LINE_MEMBER(apple2_joyport_device::sw0_r)
|
||||||
{
|
{
|
||||||
u8 port_read = m_an1 ? m_player2->read() : m_player1->read();
|
u8 port_read = m_an0 ? m_player2->read() : m_player1->read();
|
||||||
|
|
||||||
return BIT(port_read, 4);
|
return BIT(port_read, 4);
|
||||||
}
|
}
|
||||||
|
|
||||||
READ_LINE_MEMBER(apple2_joyport_device::sw1_r)
|
READ_LINE_MEMBER(apple2_joyport_device::sw1_r)
|
||||||
{
|
{
|
||||||
u8 port_read = m_an1 ? m_player2->read() : m_player1->read();
|
u8 port_read = m_an0 ? m_player2->read() : m_player1->read();
|
||||||
|
|
||||||
return m_an0 ? BIT(port_read, 0) : BIT(port_read, 3);
|
return m_an1 ? BIT(port_read, 0) : BIT(port_read, 3);
|
||||||
}
|
}
|
||||||
|
|
||||||
READ_LINE_MEMBER(apple2_joyport_device::sw2_r)
|
READ_LINE_MEMBER(apple2_joyport_device::sw2_r)
|
||||||
{
|
{
|
||||||
u8 port_read = m_an1 ? m_player2->read() : m_player1->read();
|
u8 port_read = m_an0 ? m_player2->read() : m_player1->read();
|
||||||
|
|
||||||
return m_an0 ? BIT(port_read, 2) : BIT(port_read, 1);
|
return m_an1 ? BIT(port_read, 2) : BIT(port_read, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
WRITE_LINE_MEMBER(apple2_joyport_device::an0_w)
|
WRITE_LINE_MEMBER(apple2_joyport_device::an0_w)
|
||||||
|
Loading…
Reference in New Issue
Block a user