summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/namcos23.c
diff options
context:
space:
mode:
author Michaël Banaan Ananas <happppp@users.noreply.github.com>2012-10-22 00:40:42 +0000
committer Michaël Banaan Ananas <happppp@users.noreply.github.com>2012-10-22 00:40:42 +0000
commit717948cdcb0705e77e5d94d2f3521c6dd943cc6a (patch)
tree2c25ed71d77a9f01f96aad7f6b863aa2bbf8e7ce /src/mame/drivers/namcos23.c
parent88f330aa8ee8b319a5ec760abc4ed5815fa3cafa (diff)
added rapidrvrp inputs for accessing the developer test menus
Diffstat (limited to 'src/mame/drivers/namcos23.c')
-rw-r--r--src/mame/drivers/namcos23.c114
1 files changed, 92 insertions, 22 deletions
diff --git a/src/mame/drivers/namcos23.c b/src/mame/drivers/namcos23.c
index c4221ef2f73..4828d602f01 100644
--- a/src/mame/drivers/namcos23.c
+++ b/src/mame/drivers/namcos23.c
@@ -2744,7 +2744,7 @@ static INPUT_PORTS_START( gorgon )
PORT_DIPNAME( 0x04, 0x04, "Freeze?" )
PORT_DIPSETTING( 0x04, DEF_STR( Off ) )
PORT_DIPSETTING( 0x00, DEF_STR( On ) )
- PORT_DIPNAME( 0x08, 0x08, DEF_STR( Unknown ) ) // verbose debug messages in rapidrvrp
+ PORT_DIPNAME( 0x08, 0x08, DEF_STR( Unknown ) )
PORT_DIPSETTING( 0x08, DEF_STR( Off ) )
PORT_DIPSETTING( 0x00, DEF_STR( On ) )
PORT_DIPNAME( 0x10, 0x10, DEF_STR( Unknown ) )
@@ -2761,6 +2761,76 @@ static INPUT_PORTS_START( gorgon )
PORT_DIPSETTING( 0x00, DEF_STR( On ) )
INPUT_PORTS_END
+static INPUT_PORTS_START( rapidrvrp )
+ PORT_START("H8PORT")
+
+ // To get into test mode, enable both Service Mode dipswitches, and then tap [Dev A] + [Dev B]
+ // (or hold [Dev B] and then tap [Dev A]). Some of the developer menus require you to
+ // navigate with the Dev keys, but usually the User keys work fine too.
+ PORT_START("P1")
+ PORT_BIT( 0x001, IP_ACTIVE_LOW, IPT_UNKNOWN )
+ PORT_BIT( 0x002, IP_ACTIVE_LOW, IPT_UNKNOWN ) // I/O Unknown Status
+ PORT_BIT( 0x004, IP_ACTIVE_LOW, IPT_UNKNOWN ) // I/O Air Dumper FR
+ PORT_BIT( 0x008, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) PORT_NAME("Dev A") // + I/O Air Dumper RR
+ PORT_BIT( 0x010, IP_ACTIVE_LOW, IPT_UNKNOWN )
+ PORT_BIT( 0x020, IP_ACTIVE_LOW, IPT_UNKNOWN )
+ PORT_BIT( 0x040, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(2) PORT_NAME("Dev Down")
+ PORT_BIT( 0x080, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(2) PORT_NAME("Dev Up")
+ PORT_BIT( 0x100, IP_ACTIVE_LOW, IPT_START2 ) PORT_NAME("Dev Start")
+ PORT_BIT( 0x200, IP_ACTIVE_LOW, IPT_UNKNOWN )
+ PORT_BIT( 0x400, IP_ACTIVE_LOW, IPT_UNKNOWN ) // I/O Air Dumper FL
+ PORT_BIT( 0x800, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) PORT_NAME("Dev B") // + I/O Air Dumper RL
+
+ PORT_START("P2")
+ PORT_BIT( 0xfff, IP_ACTIVE_LOW, IPT_UNKNOWN )
+
+ PORT_START("RRP0")
+ PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_SERVICE )
+ PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_NAME("User Up")
+ PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_NAME("User Down")
+ PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_NAME("User Enter")
+ PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_START1 ) PORT_NAME("User Start")
+ PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN )
+ PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN )
+ PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
+
+ PORT_START("RRP1")
+ PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNKNOWN )
+
+ PORT_START("RRP2")
+ PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_COIN1 )
+ PORT_BIT( 0xf7, IP_ACTIVE_LOW, IPT_UNKNOWN )
+
+ PORT_START("RRP3")
+ PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNKNOWN )
+
+ PORT_START("DSW")
+ PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) ) PORT_DIPLOCATION("SW1:8")
+ PORT_DIPSETTING( 0x01, DEF_STR( Off ) )
+ PORT_DIPSETTING( 0x00, DEF_STR( On ) )
+ PORT_DIPNAME( 0x02, 0x02, DEF_STR( Unknown ) ) PORT_DIPLOCATION("SW1:7")
+ PORT_DIPSETTING( 0x02, DEF_STR( Off ) )
+ PORT_DIPSETTING( 0x00, DEF_STR( On ) )
+ PORT_DIPNAME( 0x04, 0x04, DEF_STR( Unknown ) ) PORT_DIPLOCATION("SW1:6")
+ PORT_DIPSETTING( 0x04, DEF_STR( Off ) )
+ PORT_DIPSETTING( 0x00, DEF_STR( On ) )
+ PORT_DIPNAME( 0x08, 0x08, "Debug Messages" ) PORT_DIPLOCATION("SW1:5")
+ PORT_DIPSETTING( 0x08, DEF_STR( Off ) )
+ PORT_DIPSETTING( 0x00, DEF_STR( On ) )
+ PORT_DIPNAME( 0x10, 0x10, DEF_STR( Unknown ) ) PORT_DIPLOCATION("SW1:4")
+ PORT_DIPSETTING( 0x10, DEF_STR( Off ) )
+ PORT_DIPSETTING( 0x00, DEF_STR( On ) )
+ PORT_DIPNAME( 0x20, 0x20, DEF_STR( Unknown ) ) PORT_DIPLOCATION("SW1:3")
+ PORT_DIPSETTING( 0x20, DEF_STR( Off ) )
+ PORT_DIPSETTING( 0x00, DEF_STR( On ) )
+ PORT_DIPNAME( 0x40, 0x40, "Dev Service Mode" ) PORT_DIPLOCATION("SW1:2")
+ PORT_DIPSETTING( 0x40, DEF_STR( Off ) )
+ PORT_DIPSETTING( 0x00, DEF_STR( On ) )
+ PORT_DIPNAME( 0x80, 0x80, "User Service Mode" ) PORT_DIPLOCATION("SW1:1")
+ PORT_DIPSETTING( 0x80, DEF_STR( Off ) )
+ PORT_DIPSETTING( 0x00, DEF_STR( On ) )
+INPUT_PORTS_END
+
static INPUT_PORTS_START( s23 )
PORT_START("H8PORT")
@@ -4280,25 +4350,25 @@ ROM_END
/* Games */
#define GAME_FLAGS (GAME_NOT_WORKING | GAME_UNEMULATED_PROTECTION | GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND)
-// YEAR, NAME, PARENT, MACHINE, INPUT, INIT, MNTR, COMPANY, FULLNAME, FLAGS
-GAME( 1997, rapidrvr, 0, gorgon, gorgon, namcos23_state, ss23, ROT0, "Namco", "Rapid River (RD3 Ver. C)", GAME_FLAGS ) // 97/11/27, USA
-GAME( 1997, rapidrvr2,rapidrvr, gorgon, gorgon, namcos23_state, ss23, ROT0, "Namco", "Rapid River (RD2 Ver. C)", GAME_FLAGS ) // 97/11/27, Europe
-GAME( 1997, rapidrvrp,rapidrvr, gorgon, gorgon, namcos23_state, ss23, ROT0, "Namco", "Rapid River (prototype)", GAME_FLAGS ) // 97/11/10, USA
-GAME( 1997, finlflng, 0, gorgon, gorgon, namcos23_state, ss23, ROT0, "Namco", "Final Furlong (FF2 Ver. A)", GAME_FLAGS )
-GAME( 1997, downhill, 0, s23, s23, namcos23_state, ss23, ROT0, "Namco", "Downhill Bikers (DH3 Ver. A)", GAME_FLAGS )
-GAME( 1997, motoxgo, 0, s23, s23, namcos23_state, ss23, ROT0, "Namco", "Motocross Go! (MG3 Ver. A)", GAME_FLAGS )
-GAME( 1997, motoxgoa, motoxgo, s23, s23, namcos23_state, ss23, ROT0, "Namco", "Motocross Go! (MG2 Ver. A)", GAME_FLAGS )
-GAME( 1997, timecrs2, 0, timecrs2, timecrs2, namcos23_state, ss23, ROT0, "Namco", "Time Crisis II (TSS3 Ver. B)", GAME_FLAGS )
-GAME( 1997, timecrs2b,timecrs2, timecrs2, timecrs2, namcos23_state, ss23, ROT0, "Namco", "Time Crisis II (TSS2 Ver. B)", GAME_FLAGS )
-GAME( 1997, timecrs2c,timecrs2, timecrs2c,timecrs2, namcos23_state, ss23, ROT0, "Namco", "Time Crisis II (TSS4 Ver. A)", GAME_FLAGS )
-GAME( 1998, panicprk, 0, s23, s23, namcos23_state, ss23, ROT0, "Namco", "Panic Park (PNP2 Ver. A)", GAME_FLAGS )
-GAME( 1998, gunwars, 0, gmen, ss23, namcos23_state, ss23, ROT0, "Namco", "Gunmen Wars (GM1 Ver. A)", GAME_FLAGS )
-GAME( 1998, raceon, 0, gmen, ss23, namcos23_state, ss23, ROT0, "Namco", "Race On! (RO2 Ver. A)", GAME_FLAGS )
-GAME( 1998, 500gp, 0, ss23, ss23, namcos23_state, ss23, ROT0, "Namco", "500 GP (5GP3 Ver. C)", GAME_FLAGS )
-GAME( 1999, finfurl2, 0, gmen, ss23, namcos23_state, ss23, ROT0, "Namco", "Final Furlong 2 (World)", GAME_FLAGS )
-GAME( 1999, finfurl2j,finfurl2, gmen, ss23, namcos23_state, ss23, ROT0, "Namco", "Final Furlong 2 (Japan)", GAME_FLAGS )
-GAME( 2000, crszone, 0, ss23e2, ss23, namcos23_state, ss23, ROT0, "Namco", "Crisis Zone (CSZO4 Ver. B)", GAME_FLAGS )
-GAME( 2000, crszonea, crszone, ss23e2, ss23, namcos23_state, ss23, ROT0, "Namco", "Crisis Zone (CSZO3 Ver. B)", GAME_FLAGS )
-GAME( 2000, crszoneb, crszone, ss23e2, ss23, namcos23_state, ss23, ROT0, "Namco", "Crisis Zone (CSZO3 Ver. A)", GAME_FLAGS )
-GAME( 2000, crszonec, crszone, ss23e2, ss23, namcos23_state, ss23, ROT0, "Namco", "Crisis Zone (CSZO2 Ver. A)", GAME_FLAGS )
+// YEAR, NAME, PARENT, MACHINE, INPUT, INIT, MNTR, COMPANY, FULLNAME, FLAGS
+GAME( 1997, rapidrvr, 0, gorgon, gorgon, namcos23_state, ss23, ROT0, "Namco", "Rapid River (RD3 Ver. C)", GAME_FLAGS ) // 97/11/27, USA
+GAME( 1997, rapidrvr2, rapidrvr, gorgon, gorgon, namcos23_state, ss23, ROT0, "Namco", "Rapid River (RD2 Ver. C)", GAME_FLAGS ) // 97/11/27, Europe
+GAME( 1997, rapidrvrp, rapidrvr, gorgon, rapidrvrp, namcos23_state, ss23, ROT0, "Namco", "Rapid River (prototype)", GAME_FLAGS ) // 97/11/10, USA
+GAME( 1997, finlflng, 0, gorgon, gorgon, namcos23_state, ss23, ROT0, "Namco", "Final Furlong (FF2 Ver. A)", GAME_FLAGS )
+GAME( 1997, downhill, 0, s23, s23, namcos23_state, ss23, ROT0, "Namco", "Downhill Bikers (DH3 Ver. A)", GAME_FLAGS )
+GAME( 1997, motoxgo, 0, s23, s23, namcos23_state, ss23, ROT0, "Namco", "Motocross Go! (MG3 Ver. A)", GAME_FLAGS )
+GAME( 1997, motoxgoa, motoxgo, s23, s23, namcos23_state, ss23, ROT0, "Namco", "Motocross Go! (MG2 Ver. A)", GAME_FLAGS )
+GAME( 1997, timecrs2, 0, timecrs2, timecrs2, namcos23_state, ss23, ROT0, "Namco", "Time Crisis II (TSS3 Ver. B)", GAME_FLAGS )
+GAME( 1997, timecrs2b, timecrs2, timecrs2, timecrs2, namcos23_state, ss23, ROT0, "Namco", "Time Crisis II (TSS2 Ver. B)", GAME_FLAGS )
+GAME( 1997, timecrs2c, timecrs2, timecrs2c, timecrs2, namcos23_state, ss23, ROT0, "Namco", "Time Crisis II (TSS4 Ver. A)", GAME_FLAGS )
+GAME( 1998, panicprk, 0, s23, s23, namcos23_state, ss23, ROT0, "Namco", "Panic Park (PNP2 Ver. A)", GAME_FLAGS )
+GAME( 1998, gunwars, 0, gmen, ss23, namcos23_state, ss23, ROT0, "Namco", "Gunmen Wars (GM1 Ver. A)", GAME_FLAGS )
+GAME( 1998, raceon, 0, gmen, ss23, namcos23_state, ss23, ROT0, "Namco", "Race On! (RO2 Ver. A)", GAME_FLAGS )
+GAME( 1998, 500gp, 0, ss23, ss23, namcos23_state, ss23, ROT0, "Namco", "500 GP (5GP3 Ver. C)", GAME_FLAGS )
+GAME( 1999, finfurl2, 0, gmen, ss23, namcos23_state, ss23, ROT0, "Namco", "Final Furlong 2 (World)", GAME_FLAGS )
+GAME( 1999, finfurl2j, finfurl2, gmen, ss23, namcos23_state, ss23, ROT0, "Namco", "Final Furlong 2 (Japan)", GAME_FLAGS )
+GAME( 2000, crszone, 0, ss23e2, ss23, namcos23_state, ss23, ROT0, "Namco", "Crisis Zone (CSZO4 Ver. B)", GAME_FLAGS )
+GAME( 2000, crszonea, crszone, ss23e2, ss23, namcos23_state, ss23, ROT0, "Namco", "Crisis Zone (CSZO3 Ver. B)", GAME_FLAGS )
+GAME( 2000, crszoneb, crszone, ss23e2, ss23, namcos23_state, ss23, ROT0, "Namco", "Crisis Zone (CSZO3 Ver. A)", GAME_FLAGS )
+GAME( 2000, crszonec, crszone, ss23e2, ss23, namcos23_state, ss23, ROT0, "Namco", "Crisis Zone (CSZO2 Ver. A)", GAME_FLAGS )