summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/tp84.c
diff options
context:
space:
mode:
author Aaron Giles <aaron@aarongiles.com>2008-08-28 08:53:17 +0000
committer Aaron Giles <aaron@aarongiles.com>2008-08-28 08:53:17 +0000
commitb554d33448605bdae37423c39d8a6c4f7821fee2 (patch)
tree129bee1d1c755ce7433f93dba10b85a600f83e83 /src/mame/drivers/tp84.c
parentf8f967838707a269a1302b378d7a92c4e580391c (diff)
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
Diffstat (limited to 'src/mame/drivers/tp84.c')
-rw-r--r--src/mame/drivers/tp84.c40
1 files changed, 20 insertions, 20 deletions
diff --git a/src/mame/drivers/tp84.c b/src/mame/drivers/tp84.c
index 98a1cf38523..1e4d141999a 100644
--- a/src/mame/drivers/tp84.c
+++ b/src/mame/drivers/tp84.c
@@ -135,11 +135,11 @@ static WRITE8_HANDLER( tp84_sh_irqtrigger_w )
static ADDRESS_MAP_START( tp84_cpu1_map, ADDRESS_SPACE_PROGRAM, 8 )
AM_RANGE(0x2000, 0x2000) AM_WRITE(watchdog_reset_w)
- AM_RANGE(0x2800, 0x2800) AM_READWRITE(input_port_0_r, SMH_RAM) AM_BASE(&tp84_palette_bank)
- AM_RANGE(0x2820, 0x2820) AM_READ(input_port_1_r)
- AM_RANGE(0x2840, 0x2840) AM_READ(input_port_2_r)
- AM_RANGE(0x2860, 0x2860) AM_READ(input_port_3_r)
- AM_RANGE(0x3000, 0x3000) AM_READWRITE(input_port_4_r, SMH_RAM)
+ AM_RANGE(0x2800, 0x2800) AM_READ_PORT("SYSTEM") AM_WRITEONLY AM_BASE(&tp84_palette_bank)
+ AM_RANGE(0x2820, 0x2820) AM_READ_PORT("P1")
+ AM_RANGE(0x2840, 0x2840) AM_READ_PORT("P2")
+ AM_RANGE(0x2860, 0x2860) AM_READ_PORT("DSW1")
+ AM_RANGE(0x3000, 0x3000) AM_READ_PORT("DSW2") AM_WRITEONLY
AM_RANGE(0x3004, 0x3004) AM_WRITE(SMH_RAM) AM_BASE(&tp84_flipscreen_x)
AM_RANGE(0x3005, 0x3005) AM_WRITE(SMH_RAM) AM_BASE(&tp84_flipscreen_y)
AM_RANGE(0x3800, 0x3800) AM_WRITE(tp84_sh_irqtrigger_w)
@@ -161,11 +161,11 @@ static ADDRESS_MAP_START( tp84b_cpu1_map, ADDRESS_SPACE_PROGRAM, 8 )
AM_RANGE(0x0c00, 0x0fff) AM_RAM AM_BASE(&tp84_fg_colorram)
AM_RANGE(0x1000, 0x17ff) AM_RAM AM_SHARE(1)
AM_RANGE(0x1800, 0x1800) AM_WRITE(watchdog_reset_w)
- AM_RANGE(0x1a00, 0x1a00) AM_READWRITE(input_port_0_r, SMH_RAM) AM_BASE(&tp84_palette_bank)
- AM_RANGE(0x1a20, 0x1a20) AM_READ(input_port_1_r)
- AM_RANGE(0x1a40, 0x1a40) AM_READ(input_port_2_r)
- AM_RANGE(0x1a60, 0x1a60) AM_READ(input_port_3_r)
- AM_RANGE(0x1c00, 0x1c00) AM_READWRITE(input_port_4_r, SMH_NOP)
+ AM_RANGE(0x1a00, 0x1a00) AM_READ_PORT("SYSTEM") AM_WRITEONLY AM_BASE(&tp84_palette_bank)
+ AM_RANGE(0x1a20, 0x1a20) AM_READ_PORT("P1")
+ AM_RANGE(0x1a40, 0x1a40) AM_READ_PORT("P2")
+ AM_RANGE(0x1a60, 0x1a60) AM_READ_PORT("DSW1")
+ AM_RANGE(0x1c00, 0x1c00) AM_READ_PORT("DSW2") AM_WRITENOP
AM_RANGE(0x1c04, 0x1c04) AM_WRITE(SMH_RAM) AM_BASE(&tp84_flipscreen_x)
AM_RANGE(0x1c05, 0x1c05) AM_WRITE(SMH_RAM) AM_BASE(&tp84_flipscreen_y)
AM_RANGE(0x1e00, 0x1e00) AM_WRITE(tp84_sh_irqtrigger_w)
@@ -202,7 +202,7 @@ ADDRESS_MAP_END
static INPUT_PORTS_START( tp84 )
- PORT_START("SYSTEM") /* IN0 */
+ PORT_START("SYSTEM")
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_COIN3 )
@@ -212,7 +212,7 @@ static INPUT_PORTS_START( tp84 )
PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN )
PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
- PORT_START("P1") /* IN1 */
+ PORT_START("P1")
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY
PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY
@@ -222,7 +222,7 @@ static INPUT_PORTS_START( tp84 )
PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN )
PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
- PORT_START("P2") /* IN2 */
+ PORT_START("P2")
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_COCKTAIL
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_COCKTAIL
PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL
@@ -232,7 +232,7 @@ static INPUT_PORTS_START( tp84 )
PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN )
PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
- PORT_START("DSW1") /* DSW0 */
+ PORT_START("DSW1")
PORT_DIPNAME( 0x0f, 0x0f, DEF_STR( Coin_A ) )
PORT_DIPSETTING( 0x02, DEF_STR( 4C_1C ) )
PORT_DIPSETTING( 0x05, DEF_STR( 3C_1C ) )
@@ -268,7 +268,7 @@ static INPUT_PORTS_START( tp84 )
PORT_DIPSETTING( 0x90, DEF_STR( 1C_7C ) )
PORT_DIPSETTING( 0x00, "Invalid" )
- PORT_START("DSW2") /* DSW1 */
+ PORT_START("DSW2")
PORT_DIPNAME( 0x03, 0x02, DEF_STR( Lives ) )
PORT_DIPSETTING( 0x03, "2" )
PORT_DIPSETTING( 0x02, "3" )
@@ -293,7 +293,7 @@ static INPUT_PORTS_START( tp84 )
INPUT_PORTS_END
static INPUT_PORTS_START( tp84a )
- PORT_START("SYSTEM") /* IN0 */
+ PORT_START("SYSTEM")
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_COIN3 )
@@ -303,7 +303,7 @@ static INPUT_PORTS_START( tp84a )
PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN )
PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
- PORT_START("P1") /* IN1 */
+ PORT_START("P1")
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY
PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY
@@ -313,7 +313,7 @@ static INPUT_PORTS_START( tp84a )
PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN )
PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
- PORT_START("P2") /* IN2 */
+ PORT_START("P2")
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_COCKTAIL
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_COCKTAIL
PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL
@@ -323,7 +323,7 @@ static INPUT_PORTS_START( tp84a )
PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN )
PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
- PORT_START("DSW1") /* DSW0 */
+ PORT_START("DSW1")
PORT_DIPNAME( 0x0f, 0x0f, DEF_STR( Coin_A ) )
PORT_DIPSETTING( 0x02, DEF_STR( 4C_1C ) )
PORT_DIPSETTING( 0x05, DEF_STR( 3C_1C ) )
@@ -359,7 +359,7 @@ static INPUT_PORTS_START( tp84a )
PORT_DIPSETTING( 0x90, DEF_STR( 1C_7C ) )
PORT_DIPSETTING( 0x00, "Invalid" )
- PORT_START("DSW2") /* DSW1 */
+ PORT_START("DSW2")
PORT_DIPNAME( 0x03, 0x03, DEF_STR( Lives ) )
PORT_DIPSETTING( 0x03, "3" )
PORT_DIPSETTING( 0x02, "4" )