mirror of
https://github.com/holub/mame
synced 2025-05-13 01:24:20 +03:00
Fixed MT05631 (nw)
This commit is contained in:
parent
4ca32baa67
commit
1298cb27a2
@ -337,13 +337,16 @@ TIMER_CALLBACK_MEMBER( amiga_state::scanline_callback )
|
|||||||
m_cia_0->tod_w(0);
|
m_cia_0->tod_w(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
// pot counters (start counting at 7 (ntsc) or 8 (pal))
|
if (m_potgo_port)
|
||||||
if (BIT(CUSTOM_REG(REG_POTGO), 0) && (scanline /2 ) > 7)
|
|
||||||
{
|
{
|
||||||
m_pot0x += !(m_potgo_port->read() & 0x0100);
|
// pot counters (start counting at 7 (ntsc) or 8 (pal))
|
||||||
m_pot0y += !(m_potgo_port->read() & 0x0400);
|
if (BIT(CUSTOM_REG(REG_POTGO), 0) && (scanline /2 ) > 7)
|
||||||
m_pot1x += !(m_potgo_port->read() & 0x1000);
|
{
|
||||||
m_pot1y += !(m_potgo_port->read() & 0x4000);
|
m_pot0x += !(m_potgo_port->read() & 0x0100);
|
||||||
|
m_pot0y += !(m_potgo_port->read() & 0x0400);
|
||||||
|
m_pot1x += !(m_potgo_port->read() & 0x1000);
|
||||||
|
m_pot1y += !(m_potgo_port->read() & 0x4000);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// render up to this scanline
|
// render up to this scanline
|
||||||
@ -1240,10 +1243,12 @@ READ16_MEMBER( amiga_state::custom_chip_r )
|
|||||||
return CUSTOM_REG(REG_SERDATR);
|
return CUSTOM_REG(REG_SERDATR);
|
||||||
|
|
||||||
case REG_JOY0DAT:
|
case REG_JOY0DAT:
|
||||||
return joy0dat_r();
|
if (state->m_joy0dat_port)
|
||||||
|
return joy0dat_r();
|
||||||
|
|
||||||
case REG_JOY1DAT:
|
case REG_JOY1DAT:
|
||||||
return joy1dat_r();
|
if (state->m_joy1dat_port)
|
||||||
|
return joy1dat_r();
|
||||||
|
|
||||||
case REG_POTGOR:
|
case REG_POTGOR:
|
||||||
if (state->m_potgo_port)
|
if (state->m_potgo_port)
|
||||||
|
Loading…
Reference in New Issue
Block a user