trunk/src/mame/drivers/8080bw.c
| r19655 | r19656 | |
| 2309 | 2309 | /* do nothing for now - different interrupt system */ |
| 2310 | 2310 | } |
| 2311 | 2311 | |
| 2312 | READ8_MEMBER(_8080bw_state::darthvdr_01_r) |
| 2313 | { |
| 2314 | UINT8 data = ioport("P2")->read(); |
| 2315 | if (m_invaders_flip_screen) return data; |
| 2316 | return (data & 0xe1) | (ioport("P1")->read() & 0x0e); |
| 2317 | } |
| 2312 | 2318 | |
| 2313 | 2319 | static ADDRESS_MAP_START( darthvdr_map, AS_PROGRAM, 8, _8080bw_state ) |
| 2314 | 2320 | AM_RANGE(0x0000, 0x17ff) AM_ROM |
| r19655 | r19656 | |
| 2318 | 2324 | |
| 2319 | 2325 | static ADDRESS_MAP_START( darthvdr_io_map, AS_IO, 8, _8080bw_state ) |
| 2320 | 2326 | AM_RANGE(0x00, 0x00) AM_READ_PORT("P1") |
| 2321 | | AM_RANGE(0x01, 0x01) AM_READ_PORT("P2") |
| 2327 | AM_RANGE(0x01, 0x01) AM_READ(darthvdr_01_r) |
| 2322 | 2328 | |
| 2323 | 2329 | AM_RANGE(0x00, 0x00) AM_WRITE(darthvdr_00_w) // flipscreen |
| 2324 | 2330 | AM_RANGE(0x04, 0x04) AM_WRITENOP |