From b554d33448605bdae37423c39d8a6c4f7821fee2 Mon Sep 17 00:00:00 2001 From: Aaron Giles Date: Thu, 28 Aug 2008 08:53:17 +0000 Subject: From: Fabio Priuli [mailto:doge.fabio@gmail.com] Subject: few more patches Hi, enclosed please find a few patches: TV_1.diff -> TV_4.diff: clean up of input ports for drivers starting with T,U,V eeprom.diff: some remaining eeprom_bit_r made CUSTOM_PORT stv_fix.diff: a small missing bit in my previous stv fix for bug 650. this patch assumes the previous has been applied and removes duplication of button 4 also from batmanfr (somehow I think I sent an outdated version of stv.diff previously) That's all folks Regards, Fabio --- src/mame/drivers/taxidrvr.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'src/mame/drivers/taxidrvr.c') diff --git a/src/mame/drivers/taxidrvr.c b/src/mame/drivers/taxidrvr.c index c6c433bf256..2e5c19c1b4e 100644 --- a/src/mame/drivers/taxidrvr.c +++ b/src/mame/drivers/taxidrvr.c @@ -61,7 +61,7 @@ static READ8_HANDLER( p1b_r ) static READ8_HANDLER( p1c_r ) { - return (s2 << 7) | (s4 << 6) | ((input_port_read(machine, "IN2") & 1) << 4); + return (s2 << 7) | (s4 << 6) | ((input_port_read(machine, "SERVCOIN") & 1) << 4); } static WRITE8_HANDLER( p1a_w ) @@ -167,11 +167,11 @@ static ADDRESS_MAP_START( cpu2_map, ADDRESS_SPACE_PROGRAM, 8 ) AM_RANGE(0x6000, 0x67ff) AM_RAM AM_RANGE(0x8000, 0x87ff) AM_RAM AM_RANGE(0xa000, 0xa003) AM_DEVREADWRITE(PPI8255, "ppi8255_1", ppi8255_r, ppi8255_w) - AM_RANGE(0xe000, 0xe000) AM_READ(input_port_0_r) - AM_RANGE(0xe001, 0xe001) AM_READ(input_port_1_r) - AM_RANGE(0xe002, 0xe002) AM_READ(input_port_2_r) - AM_RANGE(0xe003, 0xe003) AM_READ(input_port_3_r) - AM_RANGE(0xe004, 0xe004) AM_READ(input_port_4_r) + AM_RANGE(0xe000, 0xe000) AM_READ_PORT("DSW0") + AM_RANGE(0xe001, 0xe001) AM_READ_PORT("DSW1") + AM_RANGE(0xe002, 0xe002) AM_READ_PORT("DSW2") + AM_RANGE(0xe003, 0xe003) AM_READ_PORT("P1") + AM_RANGE(0xe004, 0xe004) AM_READ_PORT("P2") ADDRESS_MAP_END static ADDRESS_MAP_START( cpu3_map, ADDRESS_SPACE_PROGRAM, 8 ) @@ -276,7 +276,7 @@ static INPUT_PORTS_START( taxidrvr ) PORT_DIPSETTING( 0x80, "20/15" ) PORT_DIPSETTING( 0xc0, "10/10" ) - PORT_START("IN0") + PORT_START("P1") PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_BUTTON2 ) @@ -286,7 +286,7 @@ static INPUT_PORTS_START( taxidrvr ) PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_4WAY PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_4WAY - PORT_START("IN1") + PORT_START("P2") PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN2 ) PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_COCKTAIL PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_COCKTAIL @@ -296,7 +296,7 @@ static INPUT_PORTS_START( taxidrvr ) PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_4WAY PORT_COCKTAIL PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_4WAY PORT_COCKTAIL - PORT_START("IN2") + PORT_START("SERVCOIN") PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_SERVICE1 ) /* handled by p1c_r() */ INPUT_PORTS_END -- cgit v1.2.3