summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/tsamurai.c
diff options
context:
space:
mode:
author Aaron Giles <aaron@aarongiles.com>2008-08-06 13:56:38 +0000
committer Aaron Giles <aaron@aarongiles.com>2008-08-06 13:56:38 +0000
commit5dcdb1d1c3e2fd3b3f71d7d418938bf83a17134c (patch)
tree17a7f72c151618bc0c227ada701df44d03672799 /src/mame/drivers/tsamurai.c
parent4a36b515ed656ccdaffe01af527524503d2d7bf3 (diff)
NOTE: with this change, I have also removed PORT_START and renamed
PORT_START_TAG to PORT_START. From: Fabio Priuli [mailto:doge.fabio@gmail.com] Subject: let's say goodbye to untagged input ports ;) Hi, enclosed please find a few patches against 126u3 source * port01.diff -> port09.diff : these patches continues the cleanup of inputs in drivers starting with C (the remaining ones), D and E. No ambiguous situations this time, so I guess there should be no problem with the changes. Improvements include conditional dips added to dynduke and diplocations for chinagat, chqflag, circus, citycon, cloak, contra and dynduke * tag01.diff -> tag09.diff : these patches add tag to EVERY input port in drivers starting with F->Z. Notice that only tags are added, no AM_READ_PORT, nor PORT_INCLUDE (and I saw a lot of drivers would need it ;) ), nor other cleanups contained in the patches above. I'll keep cleaning input next week, probably, but at least we can definitely remove the untagged version of PORT_START :) Notice I was able to compile the source commenting out the definition of PORT_START, so I guess every occurrence is covered...
Diffstat (limited to 'src/mame/drivers/tsamurai.c')
-rw-r--r--src/mame/drivers/tsamurai.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/mame/drivers/tsamurai.c b/src/mame/drivers/tsamurai.c
index 78c75e8eb1a..4dbd360d0b9 100644
--- a/src/mame/drivers/tsamurai.c
+++ b/src/mame/drivers/tsamurai.c
@@ -438,7 +438,7 @@ ADDRESS_MAP_END
/*******************************************************************************/
#define TS_IN0\
- PORT_START_TAG("IN0")\
+ PORT_START("IN0")\
PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_4WAY\
PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_4WAY\
PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_4WAY\
@@ -449,7 +449,7 @@ ADDRESS_MAP_END
PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN )
#define TS_IN1\
- PORT_START_TAG("IN1")\
+ PORT_START("IN1")\
PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_4WAY PORT_COCKTAIL\
PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_4WAY PORT_COCKTAIL\
PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_4WAY PORT_COCKTAIL\
@@ -460,7 +460,7 @@ ADDRESS_MAP_END
PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN )
#define TS_IN2\
- PORT_START_TAG("IN2")\
+ PORT_START("IN2")\
PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 )\
PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 )\
PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_SERVICE1 )\
@@ -471,7 +471,7 @@ ADDRESS_MAP_END
PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN )
#define TS_DSW1\
- PORT_START_TAG("DSW1")\
+ PORT_START("DSW1")\
PORT_DIPNAME( 0x07, 0x00, DEF_STR( Coin_A ) )\
PORT_DIPSETTING( 0x07, DEF_STR( 6C_1C ) )\
PORT_DIPSETTING( 0x06, DEF_STR( 3C_1C ) )\
@@ -503,7 +503,7 @@ TS_IN1
TS_IN2
TS_DSW1
- PORT_START_TAG("DSW2")
+ PORT_START("DSW2")
PORT_DIPNAME( 0x03, 0x00, DEF_STR( Lives ) )
PORT_DIPSETTING( 0x00, "3" )
PORT_DIPSETTING( 0x01, "5" )
@@ -533,7 +533,7 @@ TS_IN1
TS_IN2
TS_DSW1
- PORT_START_TAG("DSW2")
+ PORT_START("DSW2")
PORT_DIPNAME( 0x03, 0x00, DEF_STR( Lives ) )
PORT_DIPSETTING( 0x00, "3" )
PORT_DIPSETTING( 0x01, "5" )
@@ -563,7 +563,7 @@ TS_IN1
TS_IN2
TS_DSW1
- PORT_START_TAG("DSW2")
+ PORT_START("DSW2")
PORT_DIPNAME( 0x01, 0x00, DEF_STR( Unknown ) )
PORT_DIPSETTING( 0x00, DEF_STR( Off ) )
PORT_DIPSETTING( 0x01, DEF_STR( On ) )
@@ -591,7 +591,7 @@ TS_DSW1
INPUT_PORTS_END
#define YAMINS\
- PORT_START_TAG("IN0")\
+ PORT_START("IN0")\
PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY\
PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY\
PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY\
@@ -600,7 +600,7 @@ INPUT_PORTS_END
PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_BUTTON1 )\
PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN )\
PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN )\
- PORT_START_TAG("IN1")\
+ PORT_START("IN1")\
PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_COCKTAIL\
PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_COCKTAIL\
PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL\
@@ -615,7 +615,7 @@ static INPUT_PORTS_START( yamagchi )
TS_IN2
TS_DSW1
- PORT_START_TAG("DSW2")
+ PORT_START("DSW2")
PORT_DIPNAME( 0x03, 0x00, DEF_STR( Lives ) )
PORT_DIPSETTING( 0x00, "3" )
PORT_DIPSETTING( 0x01, "5" )
@@ -644,7 +644,7 @@ static INPUT_PORTS_START( m660 )
YAMINS
TS_IN2
- PORT_START_TAG("DSW1")
+ PORT_START("DSW1")
PORT_DIPNAME( 0x07, 0x00, DEF_STR( Coin_A ) )
PORT_DIPSETTING( 0x04, DEF_STR( 5C_1C ) )
PORT_DIPSETTING( 0x03, DEF_STR( 4C_1C ) )
@@ -670,7 +670,7 @@ static INPUT_PORTS_START( m660 )
PORT_DIPSETTING( 0x00, DEF_STR( Off ) )
PORT_DIPSETTING( 0x80, DEF_STR( On ) )
- PORT_START_TAG("DSW2")
+ PORT_START("DSW2")
PORT_DIPNAME( 0x03, 0x00, DEF_STR( Lives ) )
PORT_DIPSETTING( 0x00, "3" )
PORT_DIPSETTING( 0x01, "4" )