Previous 199869 Revisions Next

r19577 Saturday 15th December, 2012 at 23:38:18 UTC by Robbbert
invrvnge : fixed player 2 controls for upright cab. Added a note.
[src/mame/audio]8080bw.c
[src/mame/drivers]8080bw.c
[src/mame/includes]8080bw.h

trunk/src/mame/drivers/8080bw.c
r19576r19577
752752/*                                                     */
753753/*******************************************************/
754754
755READ8_MEMBER( _8080bw_state::invrvnge_02_r )
756{
757   UINT8 data = ioport("IN2")->read();
758   if (m_c8080bw_flip_screen) return data;
759   return (data & 0x8f) | (ioport("IN1")->read() & 0x70);
760}
761
755762static ADDRESS_MAP_START( invrvnge_io_map, AS_IO, 8, _8080bw_state )
756763   AM_RANGE(0x00, 0x00) AM_READ_PORT("IN0")
757764   AM_RANGE(0x01, 0x01) AM_READ_PORT("IN1")
758   AM_RANGE(0x02, 0x02) AM_READ_PORT("IN2") AM_DEVWRITE_LEGACY("mb14241", mb14241_shift_count_w)
765   AM_RANGE(0x02, 0x02) AM_READ(invrvnge_02_r) AM_DEVWRITE_LEGACY("mb14241", mb14241_shift_count_w)
759766   AM_RANGE(0x03, 0x03) AM_DEVREAD_LEGACY("mb14241", mb14241_shift_result_r) AM_WRITE(invrvnge_sh_port_1_w)
760767   AM_RANGE(0x04, 0x04) AM_DEVWRITE_LEGACY("mb14241", mb14241_shift_data_w)
761768   AM_RANGE(0x05, 0x05) AM_WRITE(invrvnge_sh_port_2_w)
trunk/src/mame/audio/8080bw.c
r19576r19577
10151015
10161016WRITE8_MEMBER(_8080bw_state::invrvnge_sh_port_2_w)
10171017{
1018   m_screen_red = data & 0x10;
1019   m_c8080bw_flip_screen = (data & 0x20) && (ioport(CABINET_PORT_TAG)->read() & 0x01);
1018   /*
1019        00 - normal play
1020        0A, 0E - alternate during play/attract at about once per second (invrvngegw only) purpose unknown
1021        01 - briefly at boot time
1022        10 - different colour map (or screen red) when you die
1023        20 - flip screen */
10201024
1021   // no sound-related writes?
1025   m_screen_red = BIT(data, 4);
1026   m_c8080bw_flip_screen = BIT(data, 5) & BIT(ioport(CABINET_PORT_TAG)->read(), 0);
1027
1028        // no sound-related writes?
10221029}
10231030
10241031
trunk/src/mame/includes/8080bw.h
r19576r19577
6969   DECLARE_WRITE8_MEMBER(schaser_sh_port_1_w);
7070   DECLARE_WRITE8_MEMBER(schaser_sh_port_2_w);
7171   DECLARE_WRITE8_MEMBER(rollingc_sh_port_w);
72   DECLARE_READ8_MEMBER(invrvnge_02_r);
7273   DECLARE_WRITE8_MEMBER(invrvnge_sh_port_1_w);
7374   DECLARE_WRITE8_MEMBER(invrvnge_sh_port_2_w);
7475   DECLARE_WRITE8_MEMBER(lupin3_00_w);

Previous 199869 Revisions Next


© 1997-2024 The MAME Team