summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/oneshot.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/oneshot.c')
-rw-r--r--src/mame/drivers/oneshot.c78
1 files changed, 39 insertions, 39 deletions
diff --git a/src/mame/drivers/oneshot.c b/src/mame/drivers/oneshot.c
index 3ac86724acf..60635ccfddc 100644
--- a/src/mame/drivers/oneshot.c
+++ b/src/mame/drivers/oneshot.c
@@ -109,7 +109,7 @@ static ADDRESS_MAP_START( oneshot_map, AS_PROGRAM, 16, oneshot_state )
AM_RANGE(0x180000, 0x180fff) AM_RAM_WRITE(oneshot_mid_videoram_w) AM_SHARE("mid_videoram") // some people , girl etc.
AM_RANGE(0x181000, 0x181fff) AM_RAM_WRITE(oneshot_fg_videoram_w) AM_SHARE("fg_videoram") // credits etc.
AM_RANGE(0x182000, 0x182fff) AM_RAM_WRITE(oneshot_bg_videoram_w) AM_SHARE("bg_videoram") // credits etc.
- AM_RANGE(0x188000, 0x18800f) AM_WRITEONLY AM_SHARE("scroll") // scroll registers
+ AM_RANGE(0x188000, 0x18800f) AM_WRITEONLY AM_SHARE("scroll") // scroll registers
AM_RANGE(0x190002, 0x190003) AM_READ(soundlatch_word_r)
AM_RANGE(0x190010, 0x190011) AM_WRITE(soundlatch_word_w)
AM_RANGE(0x190018, 0x190019) AM_WRITE(soundbank_w)
@@ -134,49 +134,49 @@ ADDRESS_MAP_END
static INPUT_PORTS_START( oneshot )
- PORT_START("DSW1") /* 0x19c020.l -> 0x08006c.l */
- PORT_DIPNAME( 0x03, 0x00, DEF_STR( Coinage ) ) // 0x080084.l : credits (00-09)
+ PORT_START("DSW1") /* 0x19c020.l -> 0x08006c.l */
+ PORT_DIPNAME( 0x03, 0x00, DEF_STR( Coinage ) ) // 0x080084.l : credits (00-09)
PORT_DIPSETTING( 0x03, DEF_STR( 3C_1C ) )
PORT_DIPSETTING( 0x02, DEF_STR( 2C_1C ) )
PORT_DIPSETTING( 0x00, DEF_STR( 1C_1C ) )
PORT_DIPSETTING( 0x01, DEF_STR( 1C_2C ) )
- PORT_DIPNAME( 0x0c, 0x00, "Gun X Shift Left" ) // 0x0824ec.l (not in "test mode")
+ PORT_DIPNAME( 0x0c, 0x00, "Gun X Shift Left" ) // 0x0824ec.l (not in "test mode")
PORT_DIPSETTING( 0x04, "30" )
PORT_DIPSETTING( 0x00, "35" )
PORT_DIPSETTING( 0x08, "40" )
PORT_DIPSETTING( 0x0c, "50" )
- PORT_DIPNAME( 0x10, 0x10, DEF_STR( Demo_Sounds ) ) // 0x082706.l - to be confirmed
+ PORT_DIPNAME( 0x10, 0x10, DEF_STR( Demo_Sounds ) ) // 0x082706.l - to be confirmed
PORT_DIPSETTING( 0x00, DEF_STR( Off ) )
PORT_DIPSETTING( 0x10, DEF_STR( On ) )
- PORT_SERVICE( 0x20, IP_ACTIVE_HIGH ) // 0x0824fe.l
- PORT_DIPNAME( 0x40, 0x00, "Start Round" ) // 0x08224e.l
+ PORT_SERVICE( 0x20, IP_ACTIVE_HIGH ) // 0x0824fe.l
+ PORT_DIPNAME( 0x40, 0x00, "Start Round" ) // 0x08224e.l
PORT_DIPSETTING( 0x00, "Gun Trigger" )
PORT_DIPSETTING( 0x40, "Start Button" )
- PORT_DIPNAME( 0x80, 0x00, "Gun Test" ) // 0x082286.l
+ PORT_DIPNAME( 0x80, 0x00, "Gun Test" ) // 0x082286.l
PORT_DIPSETTING( 0x00, DEF_STR( Off ) )
PORT_DIPSETTING( 0x80, DEF_STR( On ) )
- PORT_START("DSW2") /* 0x19c024.l -> 0x08006e.l */
- PORT_DIPNAME( 0x03, 0x00, DEF_STR( Lives ) ) // 0x082500.l
+ PORT_START("DSW2") /* 0x19c024.l -> 0x08006e.l */
+ PORT_DIPNAME( 0x03, 0x00, DEF_STR( Lives ) ) // 0x082500.l
PORT_DIPSETTING( 0x01, "1" )
PORT_DIPSETTING( 0x02, "2" )
PORT_DIPSETTING( 0x00, "3" )
PORT_DIPSETTING( 0x03, "5" )
PORT_DIPUNUSED( 0x04, IP_ACTIVE_HIGH )
PORT_DIPUNUSED( 0x08, IP_ACTIVE_HIGH )
- PORT_DIPNAME( 0x30, 0x00, DEF_STR( Difficulty ) ) // 0x082506.l
- PORT_DIPSETTING( 0x10, DEF_STR( Easy ) ) // 0
- PORT_DIPSETTING( 0x00, DEF_STR( Normal ) ) // 1
- PORT_DIPSETTING( 0x20, DEF_STR( Hard ) ) // 2
- PORT_DIPSETTING( 0x30, DEF_STR( Hardest ) ) // 3
- PORT_DIPNAME( 0x40, 0x00, "Round Select" ) // 0x082f16.l - only after 1st stage
- PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) // "On" in the "test mode"
- PORT_DIPSETTING( 0x00, DEF_STR( On ) ) // "Off" in the "test mode"
- PORT_DIPNAME( 0x80, 0x00, DEF_STR( Free_Play ) ) // 0x0800ca.l
+ PORT_DIPNAME( 0x30, 0x00, DEF_STR( Difficulty ) ) // 0x082506.l
+ PORT_DIPSETTING( 0x10, DEF_STR( Easy ) ) // 0
+ PORT_DIPSETTING( 0x00, DEF_STR( Normal ) ) // 1
+ PORT_DIPSETTING( 0x20, DEF_STR( Hard ) ) // 2
+ PORT_DIPSETTING( 0x30, DEF_STR( Hardest ) ) // 3
+ PORT_DIPNAME( 0x40, 0x00, "Round Select" ) // 0x082f16.l - only after 1st stage
+ PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) // "On" in the "test mode"
+ PORT_DIPSETTING( 0x00, DEF_STR( On ) ) // "Off" in the "test mode"
+ PORT_DIPNAME( 0x80, 0x00, DEF_STR( Free_Play ) ) // 0x0800ca.l
PORT_DIPSETTING( 0x00, DEF_STR( Off ) )
PORT_DIPSETTING( 0x80, DEF_STR( On ) )
- PORT_START("CREDITS") /* 0x19c02c.l -> 0x08007a.l */
+ PORT_START("CREDITS") /* 0x19c02c.l -> 0x08007a.l */
PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNKNOWN )
PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNKNOWN )
PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_UNKNOWN )
@@ -186,7 +186,7 @@ static INPUT_PORTS_START( oneshot )
PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_START2 )
PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN )
- PORT_START("P1") /* Player 1 Gun Trigger (0x19c030.l) */
+ PORT_START("P1") /* Player 1 Gun Trigger (0x19c030.l) */
PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNKNOWN )
PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNKNOWN )
PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_UNKNOWN )
@@ -196,7 +196,7 @@ static INPUT_PORTS_START( oneshot )
PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN )
PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN )
- PORT_START("P2") /* Player 2 Gun Trigger (0x19c034.l) */
+ PORT_START("P2") /* Player 2 Gun Trigger (0x19c034.l) */
PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNKNOWN )
PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNKNOWN )
PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_UNKNOWN )
@@ -206,16 +206,16 @@ static INPUT_PORTS_START( oneshot )
PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN )
PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN )
- PORT_START("LIGHT0_X") /* Player 1 Gun X ($190026.l) */
+ PORT_START("LIGHT0_X") /* Player 1 Gun X ($190026.l) */
PORT_BIT( 0xff, 0x80, IPT_LIGHTGUN_X ) PORT_CROSSHAIR(X, 1.0, 0.0, 0) PORT_SENSITIVITY(35) PORT_KEYDELTA(15) PORT_PLAYER(1)
- PORT_START("LIGHT0_Y") /* Player 1 Gun Y ($190036.l) */
+ PORT_START("LIGHT0_Y") /* Player 1 Gun Y ($190036.l) */
PORT_BIT( 0xff, 0x80, IPT_LIGHTGUN_Y ) PORT_CROSSHAIR(Y, 1.0, 0.0, 0) PORT_SENSITIVITY(35) PORT_KEYDELTA(15) PORT_PLAYER(1)
- PORT_START("LIGHT1_X") /* Player 2 Gun X ($19002e.l) */
+ PORT_START("LIGHT1_X") /* Player 2 Gun X ($19002e.l) */
PORT_BIT( 0xff, 0x80, IPT_LIGHTGUN_X ) PORT_CROSSHAIR(X, 1.0, 0.0, 0) PORT_SENSITIVITY(35) PORT_KEYDELTA(15) PORT_PLAYER(2)
- PORT_START("LIGHT1_Y") /* Player 2 Gun Y ($19003e.l) */
+ PORT_START("LIGHT1_Y") /* Player 2 Gun Y ($19003e.l) */
PORT_BIT( 0xff, 0x80, IPT_LIGHTGUN_Y ) PORT_CROSSHAIR(Y, 1.0, 0.0, 0) PORT_SENSITIVITY(35) PORT_KEYDELTA(15) PORT_PLAYER(2)
INPUT_PORTS_END
@@ -230,26 +230,26 @@ static INPUT_PORTS_START( maddonna )
PORT_DIPNAME( 0x04, 0x04, "Girl Pictures" )
PORT_DIPSETTING( 0x00, DEF_STR( Off ) )
PORT_DIPSETTING( 0x04, DEF_STR( On ) )
- PORT_DIPNAME( 0x08, 0x00, DEF_STR( Unknown ) ) // Not defined in the manual
+ PORT_DIPNAME( 0x08, 0x00, DEF_STR( Unknown ) ) // Not defined in the manual
PORT_DIPSETTING( 0x00, DEF_STR( Off ) )
PORT_DIPSETTING( 0x08, DEF_STR( On ) )
PORT_DIPNAME( 0x10, 0x00, DEF_STR( Demo_Sounds ) )
PORT_DIPSETTING( 0x10, DEF_STR( Off ) )
PORT_DIPSETTING( 0x00, DEF_STR( On ) )
- PORT_DIPNAME( 0x20, 0x00, DEF_STR( Unknown ) ) // Not defined in the manual
+ PORT_DIPNAME( 0x20, 0x00, DEF_STR( Unknown ) ) // Not defined in the manual
PORT_DIPSETTING( 0x00, DEF_STR( Off ) )
PORT_DIPSETTING( 0x20, DEF_STR( On ) )
- PORT_DIPNAME( 0x40, 0x00, "Invulnerability" ) // This one was not defined in the manual
+ PORT_DIPNAME( 0x40, 0x00, "Invulnerability" ) // This one was not defined in the manual
PORT_DIPSETTING( 0x00, DEF_STR( Off ) )
PORT_DIPSETTING( 0x40, DEF_STR( On ) )
PORT_SERVICE( 0x80, IP_ACTIVE_HIGH )
PORT_START("DSW2")
PORT_DIPNAME( 0x03, 0x02, DEF_STR( Difficulty ) )
- PORT_DIPSETTING( 0x00, DEF_STR( Easy ) ) // 2 Monsters at start, but "dumber"??
- PORT_DIPSETTING( 0x01, DEF_STR( Normal ) ) // 2 Monsters at start
- PORT_DIPSETTING( 0x02, DEF_STR( Hard ) ) // 3 Monsters at start
- PORT_DIPSETTING( 0x03, DEF_STR( Hardest ) ) // 4 Monsters at start
+ PORT_DIPSETTING( 0x00, DEF_STR( Easy ) ) // 2 Monsters at start, but "dumber"??
+ PORT_DIPSETTING( 0x01, DEF_STR( Normal ) ) // 2 Monsters at start
+ PORT_DIPSETTING( 0x02, DEF_STR( Hard ) ) // 3 Monsters at start
+ PORT_DIPSETTING( 0x03, DEF_STR( Hardest ) ) // 4 Monsters at start
PORT_DIPNAME( 0x0c, 0x08, "Time Per Round" )
PORT_DIPSETTING( 0x08, "80 Seconds" )
PORT_DIPSETTING( 0x04, "90 Seconds" )
@@ -258,12 +258,12 @@ static INPUT_PORTS_START( maddonna )
PORT_DIPNAME( 0x10, 0x10, DEF_STR( Lives ) )
PORT_DIPSETTING( 0x10, "3" )
PORT_DIPSETTING( 0x00, "5" )
- PORT_DIPNAME( 0x20, 0x00, DEF_STR( Unknown ) ) // Not defined in the manual
+ PORT_DIPNAME( 0x20, 0x00, DEF_STR( Unknown ) ) // Not defined in the manual
PORT_DIPSETTING( 0x00, DEF_STR( Off ) )
PORT_DIPSETTING( 0x20, DEF_STR( On ) )
- PORT_DIPNAME( 0xc0, 0x00, "Hurry Up!" ) // Controls "Hurry Up!" banner & Vampire - Not defined the in manual
- PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) // No Hurry up
- PORT_DIPSETTING( 0x40, "On - 10" ) // The rest show the banner but is there a difference in how the Vampire shows up???
+ PORT_DIPNAME( 0xc0, 0x00, "Hurry Up!" ) // Controls "Hurry Up!" banner & Vampire - Not defined the in manual
+ PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) // No Hurry up
+ PORT_DIPSETTING( 0x40, "On - 10" ) // The rest show the banner but is there a difference in how the Vampire shows up???
PORT_DIPSETTING( 0x80, "On - 01" )
PORT_DIPSETTING( 0xc0, "On - 11" )
@@ -306,9 +306,9 @@ static const gfx_layout oneshot16x16_layout =
8,
{ RGN_FRAC(0,8),RGN_FRAC(1,8),RGN_FRAC(2,8),RGN_FRAC(3,8),RGN_FRAC(4,8),RGN_FRAC(5,8),RGN_FRAC(6,8),RGN_FRAC(7,8) },
{ 0,1,2,3,4,5,6,7,
- 64+0,64+1,64+2,64+3,64+4,64+5,64+6,64+7 },
+ 64+0,64+1,64+2,64+3,64+4,64+5,64+6,64+7 },
{ 0*8, 1*8, 2*8, 3*8, 4*8, 5*8, 6*8, 7*8,
- 128+0*8, 128+1*8, 128+2*8, 128+3*8, 128+4*8, 128+5*8, 128+6*8, 128+7*8 },
+ 128+0*8, 128+1*8, 128+2*8, 128+3*8, 128+4*8, 128+5*8, 128+6*8, 128+7*8 },
16*16
};