summaryrefslogtreecommitdiffstatshomepage
path: root/src
diff options
context:
space:
mode:
author Aaron Giles <aaron@aarongiles.com>2008-09-26 05:26:15 +0000
committer Aaron Giles <aaron@aarongiles.com>2008-09-26 05:26:15 +0000
commit390e9f007c174bc8d5d18b39132764d32917685a (patch)
tree4889e8c8d66030bb20bc2953082bfbd4e4fdb7d3 /src
parent0f3e79564d97f0b97344681372035b865604f4b4 (diff)
From: abcd efgh [mailto:cix_999@yahoo.it]
Sent: Mon 9/22/2008 3:15 PM To: submit@mamedev.org Subject: Better Input clean in system1 I've re-made the job better than last time (i hope), clean up the inputs in system1, next time i'll fix all dips location. Bye Sonikos.
Diffstat (limited to 'src')
-rw-r--r--src/mame/drivers/system1.c474
1 files changed, 190 insertions, 284 deletions
diff --git a/src/mame/drivers/system1.c b/src/mame/drivers/system1.c
index 72840ab4ce4..d226e27b5b2 100644
--- a/src/mame/drivers/system1.c
+++ b/src/mame/drivers/system1.c
@@ -395,49 +395,13 @@ static ADDRESS_MAP_START( sound_map, ADDRESS_SPACE_PROGRAM, 8 )
ADDRESS_MAP_END
-#define COINAGE_PORT \
- PORT_DIPNAME( 0x0f, 0x0f, DEF_STR( Coin_A ) ) PORT_DIPLOCATION("SW A:1,2,3,4") \
- PORT_DIPSETTING( 0x07, DEF_STR( 4C_1C ) ) \
- PORT_DIPSETTING( 0x08, DEF_STR( 3C_1C ) ) \
- PORT_DIPSETTING( 0x09, DEF_STR( 2C_1C ) ) \
- PORT_DIPSETTING( 0x05, "2 Coins/1 Credit 4/2 5/3 6/4" ) \
- PORT_DIPSETTING( 0x04, "2 Coins/1 Credit 4/3" ) \
- PORT_DIPSETTING( 0x0f, DEF_STR( 1C_1C ) ) \
-/* PORT_DIPSETTING( 0x00, DEF_STR( 1C_1C ) ) Not allowed by mame coinage sorting, but valid */ \
- PORT_DIPSETTING( 0x03, "1 Coin/1 Credit 5/6" ) \
- PORT_DIPSETTING( 0x02, "1 Coin/1 Credit 4/5" ) \
- PORT_DIPSETTING( 0x01, "1 Coin/1 Credit 2/3" ) \
- PORT_DIPSETTING( 0x06, DEF_STR( 2C_3C ) ) \
- PORT_DIPSETTING( 0x0e, DEF_STR( 1C_2C ) ) \
- PORT_DIPSETTING( 0x0d, DEF_STR( 1C_3C ) ) \
- PORT_DIPSETTING( 0x0c, DEF_STR( 1C_4C ) ) \
- PORT_DIPSETTING( 0x0b, DEF_STR( 1C_5C ) ) \
- PORT_DIPSETTING( 0x0a, DEF_STR( 1C_6C ) ) \
- PORT_DIPNAME( 0xf0, 0xf0, DEF_STR( Coin_B ) ) PORT_DIPLOCATION("SW A:5,6,7,8") \
- PORT_DIPSETTING( 0x70, DEF_STR( 4C_1C ) ) \
- PORT_DIPSETTING( 0x80, DEF_STR( 3C_1C ) ) \
- PORT_DIPSETTING( 0x90, DEF_STR( 2C_1C ) ) \
- PORT_DIPSETTING( 0x50, "2 Coins/1 Credit 4/2 5/3 6/4" ) \
- PORT_DIPSETTING( 0x40, "2 Coins/1 Credit 4/3" ) \
- PORT_DIPSETTING( 0xf0, DEF_STR( 1C_1C ) ) \
-/* PORT_DIPSETTING( 0x00, DEF_STR( 1C_1C ) ) Not allowed by mame coinage sorting, but valid */ \
- PORT_DIPSETTING( 0x30, "1 Coin/1 Credit 5/6" ) \
- PORT_DIPSETTING( 0x20, "1 Coin/1 Credit 4/5" ) \
- PORT_DIPSETTING( 0x10, "1 Coin/1 Credit 2/3" ) \
- PORT_DIPSETTING( 0x60, DEF_STR( 2C_3C ) ) \
- PORT_DIPSETTING( 0xe0, DEF_STR( 1C_2C ) ) \
- PORT_DIPSETTING( 0xd0, DEF_STR( 1C_3C ) ) \
- PORT_DIPSETTING( 0xc0, DEF_STR( 1C_4C ) ) \
- PORT_DIPSETTING( 0xb0, DEF_STR( 1C_5C ) ) \
- PORT_DIPSETTING( 0xa0, DEF_STR( 1C_6C ) )
+/*************************************
+ *
+ * Generic port definitions
+ *
+ *************************************/
-/* If you don't like the description, feel free to change it */
-#define DSW0_BIT7 \
- PORT_DIPNAME( 0x80, 0x80, "SW 0 Read From" ) \
- PORT_DIPSETTING( 0x80, "Port $0D" ) \
- PORT_DIPSETTING( 0x00, "Port $10" )
-
-static INPUT_PORTS_START( common )
+static INPUT_PORTS_START( system1_generic )
PORT_START("P1")
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 )
@@ -468,15 +432,66 @@ static INPUT_PORTS_START( common )
PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN )
PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
+ PORT_START("DSW1")
+ PORT_DIPUNUSED_DIPLOC( 0x01, 0x01, "SWB:1" )
+ PORT_DIPUNUSED_DIPLOC( 0x02, 0x02, "SWB:2" )
+ PORT_DIPUNUSED_DIPLOC( 0x04, 0x04, "SWB:3" )
+ PORT_DIPUNUSED_DIPLOC( 0x08, 0x08, "SWB:4" )
+ PORT_DIPUNUSED_DIPLOC( 0x10, 0x10, "SWB:5" )
+ PORT_DIPUNUSED_DIPLOC( 0x20, 0x20, "SWB:6" )
+ PORT_DIPUNUSED_DIPLOC( 0x40, 0x40, "SWB:7" )
+/* If you don't like the description, feel free to change it */
+ PORT_DIPNAME( 0x80, 0x80, "SW 0 Read From" ) PORT_DIPLOCATION("SWB:8")
+ PORT_DIPSETTING( 0x80, "Port $0D" )
+ PORT_DIPSETTING( 0x00, "Port $10" )
+
PORT_START("DSW2")
- COINAGE_PORT
+ PORT_DIPNAME( 0x0f, 0x0f, DEF_STR( Coin_A ) ) PORT_DIPLOCATION("SWA:1,2,3,4")
+ PORT_DIPSETTING( 0x07, DEF_STR( 4C_1C ) )
+ PORT_DIPSETTING( 0x08, DEF_STR( 3C_1C ) )
+ PORT_DIPSETTING( 0x09, DEF_STR( 2C_1C ) )
+ PORT_DIPSETTING( 0x05, "2 Coins/1 Credit 5/3 6/4" )
+ PORT_DIPSETTING( 0x04, "2 Coins/1 Credit 4/3" )
+ PORT_DIPSETTING( 0x0f, DEF_STR( 1C_1C ) )
+ PORT_DIPSETTING( 0x01, "1 Coin/1 Credit 2/3" )
+ PORT_DIPSETTING( 0x02, "1 Coin/1 Credit 4/5" )
+ PORT_DIPSETTING( 0x03, "1 Coin/1 Credit 5/6" )
+ PORT_DIPSETTING( 0x06, DEF_STR( 2C_3C ) )
+ PORT_DIPSETTING( 0x0e, DEF_STR( 1C_2C ) )
+ PORT_DIPSETTING( 0x0d, DEF_STR( 1C_3C ) )
+ PORT_DIPSETTING( 0x0c, DEF_STR( 1C_4C ) )
+ PORT_DIPSETTING( 0x0b, DEF_STR( 1C_5C ) )
+ PORT_DIPSETTING( 0x0a, DEF_STR( 1C_6C ) )
+/* PORT_DIPSETTING( 0x00, DEF_STR( 1C_1C ) ) Not allowed by mame coinage sorting, but valid */
+ PORT_DIPNAME( 0xf0, 0xf0, DEF_STR( Coin_B ) ) PORT_DIPLOCATION("SWA:5,6,7,8")
+ PORT_DIPSETTING( 0x70, DEF_STR( 4C_1C ) )
+ PORT_DIPSETTING( 0x80, DEF_STR( 3C_1C ) )
+ PORT_DIPSETTING( 0x90, DEF_STR( 2C_1C ) )
+ PORT_DIPSETTING( 0x50, "2 Coins/1 Credit 5/3 6/4" )
+ PORT_DIPSETTING( 0x40, "2 Coins/1 Credit 4/3" )
+ PORT_DIPSETTING( 0xf0, DEF_STR( 1C_1C ) )
+ PORT_DIPSETTING( 0x10, "1 Coin/1 Credit 2/3" )
+ PORT_DIPSETTING( 0x20, "1 Coin/1 Credit 4/5" )
+ PORT_DIPSETTING( 0x30, "1 Coin/1 Credit 5/6" )
+ PORT_DIPSETTING( 0x60, DEF_STR( 2C_3C ) )
+ PORT_DIPSETTING( 0xe0, DEF_STR( 1C_2C ) )
+ PORT_DIPSETTING( 0xd0, DEF_STR( 1C_3C ) )
+ PORT_DIPSETTING( 0xc0, DEF_STR( 1C_4C ) )
+ PORT_DIPSETTING( 0xb0, DEF_STR( 1C_5C ) )
+ PORT_DIPSETTING( 0xa0, DEF_STR( 1C_6C ) )
+/* PORT_DIPSETTING( 0x00, DEF_STR( 1C_1C ) ) Not allowed by mame coinage sorting, but valid */
INPUT_PORTS_END
+/*************************************
+ *
+ * Game-specific port definitions
+ *
+ *************************************/
static INPUT_PORTS_START( starjack )
- PORT_INCLUDE( common )
+ PORT_INCLUDE( system1_generic )
- PORT_START("DSW1")
+ PORT_MODIFY("DSW1")
PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) )
PORT_DIPSETTING( 0x00, DEF_STR( Upright ) )
PORT_DIPSETTING( 0x01, DEF_STR( Cocktail ) )
@@ -502,17 +517,9 @@ static INPUT_PORTS_START( starjack )
INPUT_PORTS_END
static INPUT_PORTS_START( starjacs )
- PORT_INCLUDE( common )
+ PORT_INCLUDE( starjack )
- PORT_START("DSW1")
- PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) )
- PORT_DIPSETTING( 0x00, DEF_STR( Upright ) )
- PORT_DIPSETTING( 0x01, DEF_STR( Cocktail ) )
- PORT_DIPNAME( 0x06, 0x06, DEF_STR( Lives ) )
- PORT_DIPSETTING( 0x06, "3" )
- PORT_DIPSETTING( 0x04, "4" )
- PORT_DIPSETTING( 0x02, "5" )
- PORT_DIPSETTING( 0x00, DEF_STR( Infinite ) )
+ PORT_MODIFY("DSW1")
PORT_DIPNAME( 0x08, 0x08, "Ship" )
PORT_DIPSETTING( 0x08, DEF_STR( Single ) )
PORT_DIPSETTING( 0x00, "Multi" )
@@ -521,17 +528,12 @@ static INPUT_PORTS_START( starjacs )
PORT_DIPSETTING( 0x20, "40k, then every 50k" )
PORT_DIPSETTING( 0x10, "50k, then every 60k" )
PORT_DIPSETTING( 0x00, "60k, then every 70k" )
- PORT_DIPNAME( 0xc0, 0xc0, DEF_STR( Difficulty ) )
- PORT_DIPSETTING( 0xc0, DEF_STR( Easy ) )
- PORT_DIPSETTING( 0x80, DEF_STR( Medium ) )
- PORT_DIPSETTING( 0x40, DEF_STR( Hard ) )
- PORT_DIPSETTING( 0x00, DEF_STR( Hardest ) )
INPUT_PORTS_END
static INPUT_PORTS_START( regulus )
- PORT_INCLUDE( common )
+ PORT_INCLUDE( system1_generic )
- PORT_START("DSW1")
+ PORT_MODIFY("DSW1")
PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) )
PORT_DIPSETTING( 0x00, DEF_STR( Upright ) )
PORT_DIPSETTING( 0x01, DEF_STR( Cocktail ) )
@@ -568,7 +570,7 @@ static INPUT_PORTS_START( reguluso )
INPUT_PORTS_END
static INPUT_PORTS_START( upndown )
- PORT_INCLUDE( common )
+ PORT_INCLUDE( system1_generic )
PORT_MODIFY("P1")
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* no button 2 */
@@ -576,7 +578,7 @@ static INPUT_PORTS_START( upndown )
PORT_MODIFY("P2")
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* no button 2 */
- PORT_START("DSW1")
+ PORT_MODIFY("DSW1")
PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) )
PORT_DIPSETTING( 0x00, DEF_STR( Upright ) )
PORT_DIPSETTING( 0x01, DEF_STR( Cocktail ) )
@@ -602,7 +604,7 @@ static INPUT_PORTS_START( upndown )
INPUT_PORTS_END
static INPUT_PORTS_START( mrviking )
- PORT_INCLUDE( common )
+ PORT_INCLUDE( system1_generic )
PORT_MODIFY("P1")
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 )
@@ -612,7 +614,7 @@ static INPUT_PORTS_START( mrviking )
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL
PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_COCKTAIL
- PORT_START("DSW1")
+ PORT_MODIFY("DSW1")
PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) )
PORT_DIPSETTING( 0x00, DEF_STR( Upright ) )
PORT_DIPSETTING( 0x01, DEF_STR( Cocktail ) )
@@ -632,7 +634,6 @@ static INPUT_PORTS_START( mrviking )
PORT_DIPNAME( 0x40, 0x40, DEF_STR( Difficulty ) )
PORT_DIPSETTING( 0x40, DEF_STR( Easy ) )
PORT_DIPSETTING( 0x00, DEF_STR( Hard ) )
- DSW0_BIT7
INPUT_PORTS_END
/* Same as 'mrviking', but no "Maximum Credits" Dip Switch and "Difficulty" Dip Switch is
@@ -653,21 +654,9 @@ static INPUT_PORTS_START( mrvikngj )
INPUT_PORTS_END
static INPUT_PORTS_START( swat )
- PORT_INCLUDE( common )
-
- PORT_MODIFY("P1")
- PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_4WAY
- PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY
- PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_4WAY
- PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_4WAY
-
- PORT_MODIFY("P2")
- PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_4WAY PORT_COCKTAIL
- PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY PORT_COCKTAIL
- PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_4WAY PORT_COCKTAIL
- PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_4WAY PORT_COCKTAIL
+ PORT_INCLUDE( system1_generic )
- PORT_START("DSW1")
+ PORT_MODIFY("DSW1")
PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) )
PORT_DIPSETTING( 0x00, DEF_STR( Upright ) )
PORT_DIPSETTING( 0x01, DEF_STR( Cocktail ) )
@@ -694,7 +683,7 @@ static INPUT_PORTS_START( swat )
INPUT_PORTS_END
static INPUT_PORTS_START( flicky )
- PORT_INCLUDE( common )
+ PORT_INCLUDE( system1_generic )
PORT_MODIFY("P1")
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* no button 2 */
@@ -707,10 +696,10 @@ static INPUT_PORTS_START( flicky )
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* no button 2 */
PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* only 2way inputs */
PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* only 2way inputs */
- PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_COCKTAIL
- PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_COCKTAIL
+ PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_2WAY PORT_COCKTAIL
+ PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_2WAY PORT_COCKTAIL
- PORT_START("DSW1")
+ PORT_MODIFY("DSW1")
PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) )
PORT_DIPSETTING( 0x00, DEF_STR( Upright ) )
PORT_DIPSETTING( 0x01, DEF_STR( Cocktail ) )
@@ -730,11 +719,12 @@ static INPUT_PORTS_START( flicky )
PORT_DIPNAME( 0x40, 0x40, DEF_STR( Difficulty ) )
PORT_DIPSETTING( 0x40, DEF_STR( Easy ) )
PORT_DIPSETTING( 0x00, DEF_STR( Hard ) )
- DSW0_BIT7
INPUT_PORTS_END
static INPUT_PORTS_START( wmatch )
- PORT_START("P1")
+ PORT_INCLUDE( system1_generic )
+
+ PORT_MODIFY("P1")
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICKRIGHT_DOWN ) PORT_8WAY
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICKRIGHT_UP ) PORT_8WAY
PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICKRIGHT_RIGHT ) PORT_8WAY
@@ -744,7 +734,7 @@ static INPUT_PORTS_START( wmatch )
PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICKLEFT_RIGHT ) PORT_8WAY
PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICKLEFT_LEFT ) PORT_8WAY
- PORT_START("P2")
+ PORT_MODIFY("P2")
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICKRIGHT_DOWN ) PORT_8WAY PORT_COCKTAIL
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICKRIGHT_UP ) PORT_8WAY PORT_COCKTAIL
PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICKRIGHT_RIGHT ) PORT_8WAY PORT_COCKTAIL
@@ -754,20 +744,11 @@ static INPUT_PORTS_START( wmatch )
PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICKLEFT_RIGHT ) PORT_8WAY PORT_COCKTAIL
PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICKLEFT_LEFT ) PORT_8WAY PORT_COCKTAIL
- PORT_START("SYSTEM")
- PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
- PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
- PORT_SERVICE_NO_TOGGLE( 0x04, IP_ACTIVE_LOW )
- PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_SERVICE1 )
- PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_START1 )
- PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_START2 )
- PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON1 ) /* TURN P1 */
+ PORT_MODIFY("SYSTEM")
+ PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON1 ) /* TURN P1 */
PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL /* TURN P2 */
- PORT_START("DSW2")
- COINAGE_PORT
-
- PORT_START("DSW1")
+ PORT_MODIFY("DSW1")
PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) )
PORT_DIPSETTING( 0x00, DEF_STR( Upright ) )
PORT_DIPSETTING( 0x01, DEF_STR( Cocktail ) )
@@ -788,13 +769,12 @@ static INPUT_PORTS_START( wmatch )
PORT_DIPNAME( 0x40, 0x40, DEF_STR( Difficulty ) )
PORT_DIPSETTING( 0x40, DEF_STR( Easy ) )
PORT_DIPSETTING( 0x00, DEF_STR( Hard ) )
- DSW0_BIT7
INPUT_PORTS_END
static INPUT_PORTS_START( bullfgt )
- PORT_INCLUDE( common )
+ PORT_INCLUDE( system1_generic )
- PORT_START("DSW1")
+ PORT_MODIFY("DSW1")
PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) )
PORT_DIPSETTING( 0x00, DEF_STR( Upright ) )
PORT_DIPSETTING( 0x01, DEF_STR( Cocktail ) )
@@ -811,16 +791,12 @@ static INPUT_PORTS_START( bullfgt )
PORT_DIPSETTING( 0x20, "50000" )
PORT_DIPSETTING( 0x10, "70000" )
PORT_DIPSETTING( 0x00, DEF_STR( None ) )
- PORT_DIPNAME( 0x40, 0x40, "Unused SW 0-6" )
- PORT_DIPSETTING( 0x40, DEF_STR( Off ) )
- PORT_DIPSETTING( 0x00, DEF_STR( On ) )
- DSW0_BIT7
INPUT_PORTS_END
static INPUT_PORTS_START( spatter )
- PORT_INCLUDE( common )
+ PORT_INCLUDE( system1_generic )
- PORT_START("DSW1")
+ PORT_MODIFY("DSW1")
PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) )
PORT_DIPSETTING( 0x00, DEF_STR( Upright ) )
PORT_DIPSETTING( 0x01, DEF_STR( Cocktail ) )
@@ -840,13 +816,12 @@ static INPUT_PORTS_START( spatter )
PORT_DIPNAME( 0x40, 0x40, "Reset Timer/Objects On Life Loss" )
PORT_DIPSETTING( 0x40, DEF_STR( No ) )
PORT_DIPSETTING( 0x00, DEF_STR( Yes ) )
- DSW0_BIT7
INPUT_PORTS_END
static INPUT_PORTS_START( pitfall2 )
- PORT_INCLUDE( common )
+ PORT_INCLUDE( system1_generic )
- PORT_START("DSW1")
+ PORT_MODIFY("DSW1")
PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) )
PORT_DIPSETTING( 0x00, DEF_STR( Upright ) )
PORT_DIPSETTING( 0x01, DEF_STR( Cocktail ) )
@@ -873,12 +848,9 @@ static INPUT_PORTS_START( pitfall2 )
INPUT_PORTS_END
static INPUT_PORTS_START( pitfallu )
- PORT_INCLUDE( common )
+ PORT_INCLUDE( pitfall2 )
- PORT_START("DSW1") /* DSW0 */
- PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) )
- PORT_DIPSETTING( 0x00, DEF_STR( Upright ) )
- PORT_DIPSETTING( 0x01, DEF_STR( Cocktail ) )
+ PORT_MODIFY("DSW1")
PORT_DIPNAME( 0x06, 0x06, DEF_STR( Lives ) )
PORT_DIPSETTING( 0x06, "3" )
PORT_DIPSETTING( 0x04, "4" )
@@ -889,19 +861,10 @@ static INPUT_PORTS_START( pitfallu )
PORT_DIPSETTING( 0x10, "2" )
PORT_DIPSETTING( 0x08, "3" )
PORT_DIPSETTING( 0x00, "4" )
- PORT_DIPNAME( 0x20, 0x00, DEF_STR( Allow_Continue ) )
- PORT_DIPSETTING( 0x20, DEF_STR( No ) )
- PORT_DIPSETTING( 0x00, DEF_STR( Yes ) )
- PORT_DIPNAME( 0x40, 0x40, "Time" )
- PORT_DIPSETTING( 0x00, "2 Minutes" )
- PORT_DIPSETTING( 0x40, "3 Minutes" )
- PORT_DIPNAME( 0x80, 0x80, "Unused SW 0-7" )
- PORT_DIPSETTING( 0x80, DEF_STR( Off ) )
- PORT_DIPSETTING( 0x00, DEF_STR( On ) )
INPUT_PORTS_END
static INPUT_PORTS_START( seganinj )
- PORT_INCLUDE( common )
+ PORT_INCLUDE( system1_generic )
PORT_MODIFY("P1")
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON3 )
@@ -909,7 +872,7 @@ static INPUT_PORTS_START( seganinj )
PORT_MODIFY("P1")
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_COCKTAIL
- PORT_START("DSW1")
+ PORT_MODIFY("DSW1")
PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) )
PORT_DIPSETTING( 0x00, DEF_STR( Upright ) )
PORT_DIPSETTING( 0x01, DEF_STR( Cocktail ) )
@@ -930,13 +893,12 @@ static INPUT_PORTS_START( seganinj )
PORT_DIPNAME( 0x40, 0x40, DEF_STR( Difficulty ) )
PORT_DIPSETTING( 0x40, DEF_STR( Easy ) )
PORT_DIPSETTING( 0x00, DEF_STR( Hard ) )
- DSW0_BIT7
INPUT_PORTS_END
static INPUT_PORTS_START( imsorry )
- PORT_INCLUDE( common )
+ PORT_INCLUDE( system1_generic )
- PORT_START("DSW1")
+ PORT_MODIFY("DSW1")
PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) )
PORT_DIPSETTING( 0x00, DEF_STR( Upright ) )
PORT_DIPSETTING( 0x01, DEF_STR( Cocktail ) )
@@ -956,11 +918,10 @@ static INPUT_PORTS_START( imsorry )
PORT_DIPNAME( 0x40, 0x40, "Unused SW 0-6" )
PORT_DIPSETTING( 0x40, DEF_STR( Off ) )
PORT_DIPSETTING( 0x00, DEF_STR( On ) )
- DSW0_BIT7
INPUT_PORTS_END
static INPUT_PORTS_START( teddybb )
- PORT_INCLUDE( common )
+ PORT_INCLUDE( system1_generic )
PORT_MODIFY("P1")
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 )
@@ -970,7 +931,7 @@ static INPUT_PORTS_START( teddybb )
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL
PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_COCKTAIL
- PORT_START("DSW1")
+ PORT_MODIFY("DSW1")
PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) )
PORT_DIPSETTING( 0x00, DEF_STR( Upright ) )
PORT_DIPSETTING( 0x01, DEF_STR( Cocktail ) )
@@ -990,11 +951,10 @@ static INPUT_PORTS_START( teddybb )
PORT_DIPNAME( 0x40, 0x40, DEF_STR( Difficulty ) )
PORT_DIPSETTING( 0x40, DEF_STR( Easy ) )
PORT_DIPSETTING( 0x00, DEF_STR( Hard ) )
- DSW0_BIT7
INPUT_PORTS_END
static INPUT_PORTS_START( hvymetal )
- PORT_INCLUDE( common )
+ PORT_INCLUDE( system1_generic )
PORT_MODIFY("P1")
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 )
@@ -1004,7 +964,7 @@ static INPUT_PORTS_START( hvymetal )
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL
PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_COCKTAIL
- PORT_START("DSW1")
+ PORT_MODIFY("DSW1")
PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) )
PORT_DIPSETTING( 0x00, DEF_STR( Upright ) )
PORT_DIPSETTING( 0x01, DEF_STR( Cocktail ) )
@@ -1030,7 +990,7 @@ static INPUT_PORTS_START( hvymetal )
INPUT_PORTS_END
static INPUT_PORTS_START( myhero )
- PORT_INCLUDE( common )
+ PORT_INCLUDE( system1_generic )
PORT_MODIFY("P1")
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 )
@@ -1040,7 +1000,7 @@ static INPUT_PORTS_START( myhero )
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL
PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_COCKTAIL
- PORT_START("DSW1")
+ PORT_MODIFY("DSW1")
PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) )
PORT_DIPSETTING( 0x00, DEF_STR( Upright ) )
PORT_DIPSETTING( 0x01, DEF_STR( Cocktail ) )
@@ -1060,45 +1020,81 @@ static INPUT_PORTS_START( myhero )
PORT_DIPNAME( 0x40, 0x40, DEF_STR( Difficulty ) )
PORT_DIPSETTING( 0x40, DEF_STR( Easy ) )
PORT_DIPSETTING( 0x00, DEF_STR( Hard ) )
- DSW0_BIT7
+INPUT_PORTS_END
+
+static INPUT_PORTS_START( chplft )
+ PORT_INCLUDE( system1_generic )
+
+ PORT_MODIFY("DSW1")
+ PORT_DIPNAME( 0x0f, 0x0f, DEF_STR( Coin_A ) ) PORT_DIPLOCATION("SWA:1,2,3,4")
+ PORT_DIPSETTING( 0x07, DEF_STR( 4C_1C ) )
+ PORT_DIPSETTING( 0x08, DEF_STR( 3C_1C ) )
+ PORT_DIPSETTING( 0x09, DEF_STR( 2C_1C ) )
+ PORT_DIPSETTING( 0x05, "2 Coins/1 Credit 5/3 6/4" )
+ PORT_DIPSETTING( 0x04, "2 Coins/1 Credit 4/3" )
+ PORT_DIPSETTING( 0x0f, DEF_STR( 1C_1C ) )
+ PORT_DIPSETTING( 0x01, "1 Coin/1 Credit 2/3" )
+ PORT_DIPSETTING( 0x02, "1 Coin/1 Credit 4/5" )
+ PORT_DIPSETTING( 0x03, "1 Coin/1 Credit 5/6" )
+ PORT_DIPSETTING( 0x06, DEF_STR( 2C_3C ) )
+ PORT_DIPSETTING( 0x0e, DEF_STR( 1C_2C ) )
+ PORT_DIPSETTING( 0x0d, DEF_STR( 1C_3C ) )
+ PORT_DIPSETTING( 0x0c, DEF_STR( 1C_4C ) )
+ PORT_DIPSETTING( 0x0b, DEF_STR( 1C_5C ) )
+ PORT_DIPSETTING( 0x0a, DEF_STR( 1C_6C ) )
+ PORT_DIPNAME( 0xf0, 0xf0, DEF_STR( Coin_B ) ) PORT_DIPLOCATION("SWA:5,6,7,8")
+ PORT_DIPSETTING( 0x70, DEF_STR( 4C_1C ) )
+ PORT_DIPSETTING( 0x80, DEF_STR( 3C_1C ) )
+ PORT_DIPSETTING( 0x90, DEF_STR( 2C_1C ) )
+ PORT_DIPSETTING( 0x50, "2 Coins/1 Credit 5/3 6/4" )
+ PORT_DIPSETTING( 0x40, "2 Coins/1 Credit 4/3" )
+ PORT_DIPSETTING( 0xf0, DEF_STR( 1C_1C ) )
+ PORT_DIPSETTING( 0x10, "1 Coin/1 Credit 2/3" )
+ PORT_DIPSETTING( 0x20, "1 Coin/1 Credit 4/5" )
+ PORT_DIPSETTING( 0x30, "1 Coin/1 Credit 5/6" )
+ PORT_DIPSETTING( 0x60, DEF_STR( 2C_3C ) )
+ PORT_DIPSETTING( 0xe0, DEF_STR( 1C_2C ) )
+ PORT_DIPSETTING( 0xd0, DEF_STR( 1C_3C ) )
+ PORT_DIPSETTING( 0xc0, DEF_STR( 1C_4C ) )
+ PORT_DIPSETTING( 0xb0, DEF_STR( 1C_5C ) )
+ PORT_DIPSETTING( 0xa0, DEF_STR( 1C_6C ) )
+
+ PORT_MODIFY("DSW2")
+ PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) ) PORT_DIPLOCATION("SWB:1")
+ PORT_DIPSETTING( 0x00, DEF_STR( Upright ) )
+ PORT_DIPSETTING( 0x01, DEF_STR( Cocktail ) )
+ PORT_DIPNAME( 0x02, 0x00, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SWB:2")
+ PORT_DIPSETTING( 0x02, DEF_STR( Off ) )
+ PORT_DIPSETTING( 0x00, DEF_STR( On ) )
+ PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Lives ) ) PORT_DIPLOCATION("SWB:3,4")
+ PORT_DIPSETTING( 0x08, "2" )
+ PORT_DIPSETTING( 0x0c, "3" )
+ PORT_DIPSETTING( 0x04, "4" )
+ PORT_DIPSETTING( 0x00, DEF_STR( Free_Play ) )
+ PORT_DIPNAME( 0x10, 0x10, DEF_STR( Bonus_Life ) ) PORT_DIPLOCATION("SWB:5")
+ PORT_DIPSETTING( 0x10, "20k 70k 120k 170k" )
+ PORT_DIPSETTING( 0x00, "50k 100k 150k 200k" )
+ PORT_DIPNAME( 0x20, 0x00, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SWB:6")
+ PORT_DIPSETTING( 0x00, DEF_STR( Hard ) )
+ PORT_DIPSETTING( 0x20, DEF_STR( Easy ) )
+ PORT_DIPNAME( 0x40, 0x40, DEF_STR( Unused ) ) PORT_DIPLOCATION("SWB:7")
+ PORT_DIPSETTING( 0x40, DEF_STR( Off ) )
+ PORT_DIPSETTING( 0x00, DEF_STR( On ) )
+ PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unused ) ) PORT_DIPLOCATION("SWB:8")
+ PORT_DIPSETTING( 0x80, DEF_STR( Off ) )
+ PORT_DIPSETTING( 0x00, DEF_STR( On ) )
INPUT_PORTS_END
static INPUT_PORTS_START( shtngmst )
- PORT_START("P1")
- /*
- PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )
- PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 )
- PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON1 )
- PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN )
- PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY
- PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY
- PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY
- PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY
- */
+ PORT_INCLUDE( chplft )
- PORT_START("P2")
- /*
- PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )
- PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_COCKTAIL
- PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL
- PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN )
- PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_COCKTAIL
- PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL
- PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_COCKTAIL
- PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_COCKTAIL
- */
+ PORT_MODIFY("P1")
+ PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNUSED )
- PORT_START("SYSTEM")
- PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
- PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
- PORT_SERVICE_NO_TOGGLE( 0x04, IP_ACTIVE_LOW )
- PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_SERVICE1 )
- PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_START1 )
- PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_START2 )
- PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN )
- PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
+ PORT_MODIFY("P2")
+ PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNUSED )
- PORT_START("DSW2")
+ PORT_MODIFY("DSW2")
PORT_DIPNAME( 0x01, 0x01, "DSW2" )
PORT_DIPSETTING( 0x01, DEF_STR( Off ) )
PORT_DIPSETTING( 0x00, DEF_STR( On ) )
@@ -1124,9 +1120,6 @@ static INPUT_PORTS_START( shtngmst )
PORT_DIPSETTING( 0x80, DEF_STR( Off ) )
PORT_DIPSETTING( 0x00, DEF_STR( On ) )
- PORT_START("DSW1")
- COINAGE_PORT
-
PORT_START("TRIGGER") /* trigger is in here */
PORT_BIT( 0x3f, IP_ACTIVE_LOW, IPT_UNUSED )
PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON1 )
@@ -1169,43 +1162,10 @@ static INPUT_PORTS_START( shtngmst )
PORT_DIPSETTING( 0x00, DEF_STR( On ) )
INPUT_PORTS_END
-
-static INPUT_PORTS_START( chplft )
- PORT_INCLUDE( common )
-
- PORT_MODIFY("DSW2")
- PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) ) PORT_DIPLOCATION("SW B:1")
- PORT_DIPSETTING( 0x00, DEF_STR( Upright ) )
- PORT_DIPSETTING( 0x01, DEF_STR( Cocktail ) )
- PORT_DIPNAME( 0x02, 0x00, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW B:2")
- PORT_DIPSETTING( 0x02, DEF_STR( Off ) )
- PORT_DIPSETTING( 0x00, DEF_STR( On ) )
- PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW B:3,4")
- PORT_DIPSETTING( 0x08, "2" )
- PORT_DIPSETTING( 0x0c, "3" )
- PORT_DIPSETTING( 0x04, "4" )
- PORT_DIPSETTING( 0x00, DEF_STR( Free_Play ) )
- PORT_DIPNAME( 0x10, 0x10, DEF_STR( Bonus_Life ) ) PORT_DIPLOCATION("SW B:5")
- PORT_DIPSETTING( 0x10, "20k 70k 120k 170k" )
- PORT_DIPSETTING( 0x00, "50k 100k 150k 200k" )
- PORT_DIPNAME( 0x20, 0x00, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW B:6")
- PORT_DIPSETTING( 0x00, DEF_STR( Hard ) )
- PORT_DIPSETTING( 0x20, DEF_STR( Easy ) )
- PORT_DIPNAME( 0x40, 0x40, DEF_STR( Unused ) ) PORT_DIPLOCATION("SW B:7")
- PORT_DIPSETTING( 0x40, DEF_STR( Off ) )
- PORT_DIPSETTING( 0x00, DEF_STR( On ) )
- PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unused ) ) PORT_DIPLOCATION("SW B:8")
- PORT_DIPSETTING( 0x80, DEF_STR( Off ) )
- PORT_DIPSETTING( 0x00, DEF_STR( On ) )
-
- PORT_START("DSW1")
- COINAGE_PORT
-INPUT_PORTS_END
-
static INPUT_PORTS_START( 4dwarrio )
- PORT_INCLUDE( common )
+ PORT_INCLUDE( system1_generic )
- PORT_START("DSW1")
+ PORT_MODIFY("DSW1")
PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) )
PORT_DIPSETTING( 0x00, DEF_STR( Upright ) )
PORT_DIPSETTING( 0x01, DEF_STR( Cocktail ) )
@@ -1226,13 +1186,12 @@ static INPUT_PORTS_START( 4dwarrio )
PORT_DIPNAME( 0x40, 0x40, DEF_STR( Difficulty ) )
PORT_DIPSETTING( 0x40, DEF_STR( Easy ) )
PORT_DIPSETTING( 0x00, DEF_STR( Hard ) )
- DSW0_BIT7
INPUT_PORTS_END
static INPUT_PORTS_START( brain )
- PORT_INCLUDE( common )
+ PORT_INCLUDE( system1_generic )
- PORT_START("DSW1")
+ PORT_MODIFY("DSW1")
PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) )
PORT_DIPSETTING( 0x00, DEF_STR( Upright ) )
PORT_DIPSETTING( 0x01, DEF_STR( Cocktail ) )
@@ -1259,9 +1218,9 @@ static INPUT_PORTS_START( brain )
INPUT_PORTS_END
static INPUT_PORTS_START( gardia )
- PORT_INCLUDE( common )
+ PORT_INCLUDE( system1_generic )
- PORT_START("DSW1")
+ PORT_MODIFY("DSW1")
PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) )
PORT_DIPSETTING( 0x00, DEF_STR( Upright ) )
PORT_DIPSETTING( 0x01, DEF_STR( Cocktail ) )
@@ -1287,9 +1246,9 @@ static INPUT_PORTS_START( gardia )
INPUT_PORTS_END
static INPUT_PORTS_START( raflesia )
- PORT_INCLUDE( common )
+ PORT_INCLUDE( system1_generic )
- PORT_START("DSW1")
+ PORT_MODIFY("DSW1")
PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) )
PORT_DIPSETTING( 0x00, DEF_STR( Upright ) )
PORT_DIPSETTING( 0x01, DEF_STR( Cocktail ) )
@@ -1309,11 +1268,10 @@ static INPUT_PORTS_START( raflesia )
PORT_DIPNAME( 0x40, 0x40, DEF_STR( Unused ) ) /* Manual lists this dip as "Unused" */
PORT_DIPSETTING( 0x40, DEF_STR( Off ) )
PORT_DIPSETTING( 0x00, DEF_STR( On ) )
- DSW0_BIT7
INPUT_PORTS_END
static INPUT_PORTS_START( wboy )
- PORT_INCLUDE( common )
+ PORT_INCLUDE( system1_generic )
PORT_MODIFY("P1")
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 )
@@ -1331,7 +1289,7 @@ static INPUT_PORTS_START( wboy )
PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_2WAY PORT_COCKTAIL
PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_2WAY PORT_COCKTAIL
- PORT_START("DSW1")
+ PORT_MODIFY("DSW1")
PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) ) PORT_DIPLOCATION("SW B:1")
PORT_DIPSETTING( 0x00, DEF_STR( Upright ) )
PORT_DIPSETTING( 0x01, DEF_STR( Cocktail ) )
@@ -1369,7 +1327,7 @@ static INPUT_PORTS_START( wboy3 )
INPUT_PORTS_END
static INPUT_PORTS_START( wboysys2 )
- PORT_INCLUDE( common )
+ PORT_INCLUDE( chplft )
PORT_MODIFY("P1")
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 )
@@ -1411,9 +1369,6 @@ static INPUT_PORTS_START( wboysys2 )
PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unused ) ) PORT_DIPLOCATION("SW B:8")
PORT_DIPSETTING( 0x80, DEF_STR( Off ) )
PORT_DIPSETTING( 0x00, DEF_STR( On ) )
-
- PORT_START("DSW1")
- COINAGE_PORT
INPUT_PORTS_END
/* same as wboy, additional Energy Consumption switch */
@@ -1529,23 +1484,19 @@ Useful addresses:
*/
static INPUT_PORTS_START( blockgal )
- PORT_START("P1")
+ PORT_INCLUDE( chplft )
+
+ PORT_MODIFY("P1")
PORT_BIT( 0xff, 0x00, IPT_DIAL ) PORT_SENSITIVITY(60) PORT_KEYDELTA(15) PORT_REVERSE
- PORT_START("P2")
+ PORT_MODIFY("P2")
PORT_BIT( 0xff, 0x00, IPT_DIAL ) PORT_SENSITIVITY(60) PORT_KEYDELTA(15) PORT_REVERSE PORT_COCKTAIL
- 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_UNKNOWN )
- PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_SERVICE1 )
- PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_START1 )
- PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_START2 )
+ PORT_MODIFY("SYSTEM")
PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON1 )
PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL
- PORT_START("DSW2")
+ PORT_MODIFY("DSW2")
PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) )
PORT_DIPSETTING( 0x00, DEF_STR( Upright ) )
PORT_DIPSETTING( 0x01, DEF_STR( Cocktail ) )
@@ -1568,13 +1519,10 @@ static INPUT_PORTS_START( blockgal )
PORT_DIPSETTING( 0x40, DEF_STR( Off ) )
PORT_DIPSETTING( 0x00, DEF_STR( On ) )
PORT_SERVICE( 0x80, IP_ACTIVE_LOW )
-
- PORT_START("DSW1")
- COINAGE_PORT
INPUT_PORTS_END
static INPUT_PORTS_START( tokisens )
- PORT_INCLUDE( common )
+ PORT_INCLUDE( chplft )
PORT_MODIFY("DSW2")
PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) )
@@ -1600,13 +1548,10 @@ static INPUT_PORTS_START( tokisens )
PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unknown ) )
PORT_DIPSETTING( 0x80, DEF_STR( Off ) )
PORT_DIPSETTING( 0x00, DEF_STR( On ) )
-
- PORT_START("DSW1")
- COINAGE_PORT
INPUT_PORTS_END
static INPUT_PORTS_START( wbml )
- PORT_INCLUDE( common )
+ PORT_INCLUDE( chplft )
PORT_MODIFY("DSW2")
PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) )
@@ -1632,13 +1577,10 @@ static INPUT_PORTS_START( wbml )
PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unknown ) )
PORT_DIPSETTING( 0x80, DEF_STR( Off ) )
PORT_DIPSETTING( 0x00, DEF_STR( On ) )
-
- PORT_START("DSW1")
- COINAGE_PORT
INPUT_PORTS_END
static INPUT_PORTS_START( noboranb )
- PORT_INCLUDE( common )
+ PORT_INCLUDE( system1_generic )
PORT_MODIFY("P1")
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) // shot
@@ -1671,7 +1613,7 @@ static INPUT_PORTS_START( noboranb )
PORT_DIPSETTING( 0x00, DEF_STR( Off ) )
PORT_DIPSETTING( 0x80, DEF_STR( On ) )
- PORT_START("DSW1")
+ PORT_MODIFY("DSW1")
PORT_DIPNAME( 0x03, 0x03, DEF_STR( Lives ) )
PORT_DIPSETTING( 0x02, "2" )
PORT_DIPSETTING( 0x03, "3" )
@@ -1703,7 +1645,7 @@ INPUT_PORTS_END
*/
static INPUT_PORTS_START( ufosensi )
- PORT_INCLUDE( common )
+ PORT_INCLUDE( chplft )
PORT_MODIFY("P1")
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON3 )
@@ -1734,42 +1676,6 @@ static INPUT_PORTS_START( ufosensi )
PORT_DIPNAME( 0x80, 0x80, "Invulnerability" )
PORT_DIPSETTING( 0x80, DEF_STR( Off ) )
PORT_DIPSETTING( 0x00, DEF_STR( On ) )
-
- PORT_START("DSW1")
- PORT_DIPNAME( 0x0f, 0x0f, DEF_STR( Coin_A ) )
- PORT_DIPSETTING( 0x07, DEF_STR( 4C_1C ) )
- PORT_DIPSETTING( 0x08, DEF_STR( 3C_1C ) )
- PORT_DIPSETTING( 0x09, DEF_STR( 2C_1C ) )
- PORT_DIPSETTING( 0x05, "2 Coins/1 Credit 5/3 6/4" )
- PORT_DIPSETTING( 0x04, "2 Coins/1 Credit 4/3" )
- PORT_DIPSETTING( 0x0f, DEF_STR( 1C_1C ) )
- PORT_DIPSETTING( 0x03, "1 Coin/1 Credit 5/6" )
- PORT_DIPSETTING( 0x02, "1 Coin/1 Credit 4/5" )
- PORT_DIPSETTING( 0x01, "1 Coin/1 Credit 2/3" )
- PORT_DIPSETTING( 0x06, DEF_STR( 2C_3C ) )
- PORT_DIPSETTING( 0x0e, DEF_STR( 1C_2C ) )
- PORT_DIPSETTING( 0x0d, DEF_STR( 1C_3C ) )
- PORT_DIPSETTING( 0x0c, DEF_STR( 1C_4C ) )
- PORT_DIPSETTING( 0x0b, DEF_STR( 1C_5C ) )
- PORT_DIPSETTING( 0x0a, DEF_STR( 1C_6C ) )
- PORT_DIPSETTING( 0x00, "Infinite Lives (both set)" )
- PORT_DIPNAME( 0xf0, 0xf0, DEF_STR( Coin_B ) )
- PORT_DIPSETTING( 0x70, DEF_STR( 4C_1C ) )
- PORT_DIPSETTING( 0x80, DEF_STR( 3C_1C ) )
- PORT_DIPSETTING( 0x90, DEF_STR( 2C_1C ) )
- PORT_DIPSETTING( 0x50, "2 Coins/1 Credit 5/3 6/4" )
- PORT_DIPSETTING( 0x40, "2 Coins/1 Credit 4/3" )
- PORT_DIPSETTING( 0xf0, DEF_STR( 1C_1C ) )
- PORT_DIPSETTING( 0x30, "1 Coin/1 Credit 5/6" )
- PORT_DIPSETTING( 0x20, "1 Coin/1 Credit 4/5" )
- PORT_DIPSETTING( 0x10, "1 Coin/1 Credit 2/3" )
- PORT_DIPSETTING( 0x60, DEF_STR( 2C_3C ) )
- PORT_DIPSETTING( 0xe0, DEF_STR( 1C_2C ) )
- PORT_DIPSETTING( 0xd0, DEF_STR( 1C_3C ) )
- PORT_DIPSETTING( 0xc0, DEF_STR( 1C_4C ) )
- PORT_DIPSETTING( 0xb0, DEF_STR( 1C_5C ) )
- PORT_DIPSETTING( 0xa0, DEF_STR( 1C_6C ) )
- PORT_DIPSETTING( 0x00, "Infinite Lives (both set)" )
INPUT_PORTS_END
static const gfx_layout charlayout =