Previous 199869 Revisions Next

r31438 Sunday 27th July, 2014 at 16:22:31 UTC by Osso
Fixed MT05631 (nw)
[src/mame/machine]amiga.c

trunk/src/mame/machine/amiga.c
r31437r31438
337337      m_cia_0->tod_w(0);
338338   }
339339
340   // pot counters (start counting at 7 (ntsc) or 8 (pal))
341   if (BIT(CUSTOM_REG(REG_POTGO), 0) && (scanline /2 ) > 7)
340   if (m_potgo_port)
342341   {
343      m_pot0x += !(m_potgo_port->read() & 0x0100);
344      m_pot0y += !(m_potgo_port->read() & 0x0400);
345      m_pot1x += !(m_potgo_port->read() & 0x1000);
346      m_pot1y += !(m_potgo_port->read() & 0x4000);
342      // pot counters (start counting at 7 (ntsc) or 8 (pal))
343      if (BIT(CUSTOM_REG(REG_POTGO), 0) && (scanline /2 ) > 7)
344      {
345         m_pot0x += !(m_potgo_port->read() & 0x0100);
346         m_pot0y += !(m_potgo_port->read() & 0x0400);
347         m_pot1x += !(m_potgo_port->read() & 0x1000);
348         m_pot1y += !(m_potgo_port->read() & 0x4000);
349      }
347350   }
348
351   
349352   // render up to this scanline
350353   if (!m_screen->update_partial(scanline))
351354   {
r31437r31438
12401243         return CUSTOM_REG(REG_SERDATR);
12411244
12421245      case REG_JOY0DAT:
1243         return joy0dat_r();
1246         if (state->m_joy0dat_port)
1247            return joy0dat_r();
12441248
12451249      case REG_JOY1DAT:
1246         return joy1dat_r();
1250         if (state->m_joy1dat_port)
1251            return joy1dat_r();
12471252
12481253      case REG_POTGOR:
12491254         if (state->m_potgo_port)

Previous 199869 Revisions Next


© 1997-2024 The MAME Team