trunk/src/mame/machine/amiga.c
| r31437 | r31438 | |
| 337 | 337 | m_cia_0->tod_w(0); |
| 338 | 338 | } |
| 339 | 339 | |
| 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) |
| 342 | 341 | { |
| 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 | } |
| 347 | 350 | } |
| 348 | | |
| 351 | |
| 349 | 352 | // render up to this scanline |
| 350 | 353 | if (!m_screen->update_partial(scanline)) |
| 351 | 354 | { |
| r31437 | r31438 | |
| 1240 | 1243 | return CUSTOM_REG(REG_SERDATR); |
| 1241 | 1244 | |
| 1242 | 1245 | case REG_JOY0DAT: |
| 1243 | | return joy0dat_r(); |
| 1246 | if (state->m_joy0dat_port) |
| 1247 | return joy0dat_r(); |
| 1244 | 1248 | |
| 1245 | 1249 | case REG_JOY1DAT: |
| 1246 | | return joy1dat_r(); |
| 1250 | if (state->m_joy1dat_port) |
| 1251 | return joy1dat_r(); |
| 1247 | 1252 | |
| 1248 | 1253 | case REG_POTGOR: |
| 1249 | 1254 | if (state->m_potgo_port) |