diff options
Diffstat (limited to 'src/mame/drivers/beaminv.c')
-rw-r--r-- | src/mame/drivers/beaminv.c | 33 |
1 files changed, 7 insertions, 26 deletions
diff --git a/src/mame/drivers/beaminv.c b/src/mame/drivers/beaminv.c index f525b3e9d26..5077041085e 100644 --- a/src/mame/drivers/beaminv.c +++ b/src/mame/drivers/beaminv.c @@ -206,8 +206,8 @@ static READ8_HANDLER( controller_r ) static ADDRESS_MAP_START( main_map, ADDRESS_SPACE_PROGRAM, 8 ) AM_RANGE(0x0000, 0x17ff) AM_ROM AM_RANGE(0x1800, 0x1fff) AM_RAM - AM_RANGE(0x2400, 0x2400) AM_MIRROR(0x03ff) AM_READ(input_port_0_r) - AM_RANGE(0x2800, 0x2800) AM_MIRROR(0x03ff) AM_READ(input_port_1_r) + AM_RANGE(0x2400, 0x2400) AM_MIRROR(0x03ff) AM_READ_PORT("DSW") + AM_RANGE(0x2800, 0x2800) AM_MIRROR(0x03ff) AM_READ_PORT("INPUTS") AM_RANGE(0x3400, 0x3400) AM_MIRROR(0x03ff) AM_READ(controller_r) AM_RANGE(0x3800, 0x3800) AM_MIRROR(0x03ff) AM_READ(v128_r) AM_RANGE(0x4000, 0x5fff) AM_RAM AM_BASE(&beaminv_videoram) AM_SIZE(&beaminv_videoram_size) @@ -235,7 +235,7 @@ ADDRESS_MAP_END *************************************/ static INPUT_PORTS_START( beaminv ) - PORT_START_TAG("IN0") + PORT_START_TAG("DSW") PORT_DIPNAME( 0x03, 0x00, DEF_STR( Lives ) ) PORT_DIPSETTING( 0x00, "3" ) PORT_DIPSETTING( 0x01, "4" ) @@ -254,7 +254,7 @@ static INPUT_PORTS_START( beaminv ) PORT_DIPSETTING( 0x60, "Never" ) PORT_DIPUNUSED( 0x80, IP_ACTIVE_HIGH ) - PORT_START_TAG("IN1") + PORT_START_TAG("INPUTS") PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START1 ) PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_START2 ) @@ -271,38 +271,19 @@ INPUT_PORTS_END static INPUT_PORTS_START( beaminva ) - PORT_START_TAG("IN0") - PORT_DIPNAME( 0x03, 0x00, DEF_STR( Lives ) ) - PORT_DIPSETTING( 0x00, "3" ) - PORT_DIPSETTING( 0x01, "4" ) - PORT_DIPSETTING( 0x02, "5" ) - PORT_DIPSETTING( 0x03, "6" ) + PORT_INCLUDE( beaminv ) + + PORT_MODIFY("DSW") PORT_DIPNAME( 0x0c, 0x04, DEF_STR( Bonus_Life ) ) PORT_DIPSETTING( 0x00, "1500" ) PORT_DIPSETTING( 0x04, "2000" ) PORT_DIPSETTING( 0x08, "2500" ) PORT_DIPSETTING( 0x0c, "3000" ) - PORT_DIPUNUSED( 0x10, IP_ACTIVE_HIGH ) PORT_DIPNAME( 0x60, 0x00, "Faster Bombs At" ) PORT_DIPSETTING( 0x00, "44 Enemies" ) PORT_DIPSETTING( 0x20, "39 Enemies" ) PORT_DIPSETTING( 0x40, "34 Enemies" ) PORT_DIPSETTING( 0x40, "29 Enemies" ) - PORT_DIPUNUSED( 0x80, IP_ACTIVE_HIGH ) - - PORT_START_TAG("IN1") - PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) - PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START1 ) - PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_START2 ) - PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) - PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) - PORT_BIT( 0xe0, IP_ACTIVE_LOW, IPT_UNUSED ) - - PORT_START_TAG(P1_CONTROL_PORT_TAG) - PORT_BIT( 0xff, 0x65, IPT_PADDLE ) PORT_MINMAX(0x35,0x95) PORT_SENSITIVITY(20) PORT_KEYDELTA(10) PORT_CENTERDELTA(0) PORT_PLAYER(1) - - PORT_START_TAG(P2_CONTROL_PORT_TAG) - PORT_BIT( 0xff, 0x65, IPT_PADDLE ) PORT_MINMAX(0x35,0x95) PORT_SENSITIVITY(20) PORT_KEYDELTA(10) PORT_CENTERDELTA(0) PORT_PLAYER(2) INPUT_PORTS_END |