trunk/src/mame/drivers/8080bw.c
| r19445 | r19446 | |
| 1566 | 1566 | MACHINE_START_CALL_MEMBER(mw8080bw); |
| 1567 | 1567 | } |
| 1568 | 1568 | |
| 1569 | READ8_MEMBER( _8080bw_state::polaris_port00_r ) |
| 1570 | { |
| 1571 | UINT8 data = ioport("IN0")->read(); |
| 1572 | if (m_c8080bw_flip_screen) return data; |
| 1573 | return (data & 7) | (ioport("IN1")->read() & 0xf8); |
| 1574 | } |
| 1575 | |
| 1569 | 1576 | // Port 5 is used to reset the watchdog timer. |
| 1570 | 1577 | // This port is also written to when the boss plane is going up and down. |
| 1571 | 1578 | // If you write this value to a note ciruit similar to the music, |
| r19445 | r19446 | |
| 1573 | 1580 | // It sounds better then the actual circuit used. |
| 1574 | 1581 | // Probably an unfinished feature. |
| 1575 | 1582 | static ADDRESS_MAP_START( polaris_io_map, AS_IO, 8, _8080bw_state ) |
| 1576 | | AM_RANGE(0x00, 0x00) AM_READ_PORT("IN0") AM_DEVWRITE_LEGACY("mb14241", mb14241_shift_count_w) |
| 1583 | AM_RANGE(0x00, 0x00) AM_READ(polaris_port00_r) AM_DEVWRITE_LEGACY("mb14241", mb14241_shift_count_w) |
| 1577 | 1584 | AM_RANGE(0x01, 0x01) AM_READ_PORT("IN1") |
| 1578 | 1585 | AM_RANGE(0x02, 0x02) AM_READ_PORT("IN2") AM_WRITE(polaris_sh_port_1_w) |
| 1579 | 1586 | AM_RANGE(0x03, 0x03) AM_DEVREADWRITE_LEGACY("mb14241", mb14241_shift_result_r, mb14241_shift_data_w) |