Previous 199869 Revisions Next

r19446 Monday 10th December, 2012 at 11:57:50 UTC by Robbbert
polaris : fixed player inputs in upright cabinet (nw)
[src/mame/drivers]8080bw.c
[src/mame/includes]8080bw.h

trunk/src/mame/includes/8080bw.h
r19445r19446
5050   DECLARE_CUSTOM_INPUT_MEMBER(claybust_gun_on_r);
5151
5252   DECLARE_READ8_MEMBER(indianbt_r);
53   DECLARE_READ8_MEMBER(polaris_port00_r);
5354   DECLARE_WRITE8_MEMBER(steelwkr_sh_port_3_w);
5455   DECLARE_WRITE8_MEMBER(invadpt2_sh_port_1_w);
5556   DECLARE_WRITE8_MEMBER(invadpt2_sh_port_2_w);
trunk/src/mame/drivers/8080bw.c
r19445r19446
15661566   MACHINE_START_CALL_MEMBER(mw8080bw);
15671567}
15681568
1569READ8_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
15691576// Port 5 is used to reset the watchdog timer.
15701577// This port is also written to when the boss plane is going up and down.
15711578// If you write this value to a note ciruit similar to the music,
r19445r19446
15731580// It sounds better then the actual circuit used.
15741581// Probably an unfinished feature.
15751582static 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)
15771584   AM_RANGE(0x01, 0x01) AM_READ_PORT("IN1")
15781585   AM_RANGE(0x02, 0x02) AM_READ_PORT("IN2") AM_WRITE(polaris_sh_port_1_w)
15791586   AM_RANGE(0x03, 0x03) AM_DEVREADWRITE_LEGACY("mb14241", mb14241_shift_result_r, mb14241_shift_data_w)

Previous 199869 Revisions Next


© 1997-2024 The MAME Team