Fixed MT05631 (nw)

This commit is contained in:
Ivan Vangelista 2014-07-27 16:22:31 +00:00
parent 4ca32baa67
commit 1298cb27a2

View File

@ -337,6 +337,8 @@ TIMER_CALLBACK_MEMBER( amiga_state::scanline_callback )
m_cia_0->tod_w(0); m_cia_0->tod_w(0);
} }
if (m_potgo_port)
{
// pot counters (start counting at 7 (ntsc) or 8 (pal)) // pot counters (start counting at 7 (ntsc) or 8 (pal))
if (BIT(CUSTOM_REG(REG_POTGO), 0) && (scanline /2 ) > 7) if (BIT(CUSTOM_REG(REG_POTGO), 0) && (scanline /2 ) > 7)
{ {
@ -345,6 +347,7 @@ TIMER_CALLBACK_MEMBER( amiga_state::scanline_callback )
m_pot1x += !(m_potgo_port->read() & 0x1000); m_pot1x += !(m_potgo_port->read() & 0x1000);
m_pot1y += !(m_potgo_port->read() & 0x4000); m_pot1y += !(m_potgo_port->read() & 0x4000);
} }
}
// render up to this scanline // render up to this scanline
if (!m_screen->update_partial(scanline)) if (!m_screen->update_partial(scanline))
@ -1240,9 +1243,11 @@ READ16_MEMBER( amiga_state::custom_chip_r )
return CUSTOM_REG(REG_SERDATR); return CUSTOM_REG(REG_SERDATR);
case REG_JOY0DAT: case REG_JOY0DAT:
if (state->m_joy0dat_port)
return joy0dat_r(); return joy0dat_r();
case REG_JOY1DAT: case REG_JOY1DAT:
if (state->m_joy1dat_port)
return joy1dat_r(); return joy1dat_r();
case REG_POTGOR: case REG_POTGOR: