Previous 199869 Revisions Next

r19656 Tuesday 18th December, 2012 at 12:05:43 UTC by Robbbert
Darthvdr : fixed player2 controls in upright cab
[src/mame/drivers]8080bw.c
[src/mame/includes]8080bw.h

trunk/src/mame/includes/8080bw.h
r19655r19656
5959   DECLARE_WRITE8_MEMBER(lrescue_sh_port_1_w);
6060   DECLARE_WRITE8_MEMBER(lrescue_sh_port_2_w);
6161   DECLARE_WRITE8_MEMBER(cosmo_sh_port_2_w);
62   DECLARE_READ8_MEMBER(darthvdr_01_r);
6263   DECLARE_WRITE8_MEMBER(darthvdr_00_w);
6364   DECLARE_WRITE8_MEMBER(darthvdr_08_w);
6465   DECLARE_WRITE8_MEMBER(ballbomb_01_w);
trunk/src/mame/drivers/8080bw.c
r19655r19656
23092309   /* do nothing for now - different interrupt system */
23102310}
23112311
2312READ8_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}
23122318
23132319static ADDRESS_MAP_START( darthvdr_map, AS_PROGRAM, 8, _8080bw_state )
23142320   AM_RANGE(0x0000, 0x17ff) AM_ROM
r19655r19656
23182324
23192325static ADDRESS_MAP_START( darthvdr_io_map, AS_IO, 8, _8080bw_state )
23202326   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)
23222328
23232329   AM_RANGE(0x00, 0x00) AM_WRITE(darthvdr_00_w) // flipscreen
23242330   AM_RANGE(0x04, 0x04) AM_WRITENOP

Previous 199869 Revisions Next


© 1997-2024 The MAME Team