diff options
Diffstat (limited to 'src/mame/drivers/dec0.cpp')
-rw-r--r-- | src/mame/drivers/dec0.cpp | 74 |
1 files changed, 37 insertions, 37 deletions
diff --git a/src/mame/drivers/dec0.cpp b/src/mame/drivers/dec0.cpp index 23261159d76..5a010d14dd6 100644 --- a/src/mame/drivers/dec0.cpp +++ b/src/mame/drivers/dec0.cpp @@ -890,7 +890,7 @@ INPUT_PORTS_END static const ioport_value rotary_table[12] = { - 0xfffe, 0xfffd, 0xfffb, 0xfff7, + 0xfffe, 0xfffd, 0xfffb, 0xfff7, 0xffef, 0xffdf, 0xffbf, 0xff7f, 0xfeff, 0xfdff, 0xfbff, 0xf7ff }; @@ -906,25 +906,25 @@ INPUT_PORTS_END static INPUT_PORTS_START( rotary_null ) PORT_START("AN0") PORT_BIT( 0xffff, IP_ACTIVE_LOW, IPT_UNKNOWN ) - + PORT_START("AN1") PORT_BIT( 0xffff, IP_ACTIVE_LOW, IPT_UNKNOWN ) INPUT_PORTS_END static INPUT_PORTS_START( hbarrel ) PORT_INCLUDE( dec0 ) - + PORT_MODIFY("INPUTS") PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_NAME("P1 Fire") PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_NAME("P1 Bomb") - PORT_BIT( 0x00c0, IP_ACTIVE_LOW, IPT_UNUSED ) + PORT_BIT( 0x00c0, IP_ACTIVE_LOW, IPT_UNUSED ) PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL PORT_NAME("P2 Fire") PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_COCKTAIL PORT_NAME("P2 Bomb") PORT_BIT( 0xc000, IP_ACTIVE_LOW, IPT_UNUSED ) - + PORT_MODIFY("SYSTEM") PORT_BIT( 0x0003, IP_ACTIVE_LOW, IPT_UNUSED ) - + PORT_START("DSW") PORT_DIPNAME( 0x0003, 0x0003, DEF_STR( Coin_A ) ) PORT_DIPLOCATION("SW1:1,2") PORT_DIPSETTING( 0x0000, DEF_STR( 2C_1C ) ) @@ -972,16 +972,16 @@ static INPUT_PORTS_START( birdtry ) PORT_INCLUDE( dec0 ) PORT_MODIFY("INPUTS") -// PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_NAME("P1 Shoot") -// PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_NAME("P1 Select") - PORT_BIT( 0x00c0, IP_ACTIVE_LOW, IPT_UNUSED ) -// PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL PORT_NAME("P2 Shoot") -// PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_COCKTAIL PORT_NAME("P2 Select") +// PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_NAME("P1 Shoot") +// PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_NAME("P1 Select") + PORT_BIT( 0x00c0, IP_ACTIVE_LOW, IPT_UNUSED ) +// PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL PORT_NAME("P2 Shoot") +// PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_COCKTAIL PORT_NAME("P2 Select") PORT_BIT( 0xc000, IP_ACTIVE_LOW, IPT_UNUSED ) - + PORT_MODIFY("SYSTEM") PORT_BIT( 0x0003, IP_ACTIVE_LOW, IPT_UNUSED ) - + PORT_START("DSW") DEC0_COIN_SETTING PORT_SERVICE_DIPLOC( 0x0010, IP_ACTIVE_LOW, "SW1:5" ) @@ -1031,7 +1031,7 @@ static INPUT_PORTS_START( birdtry ) */ PORT_INCLUDE( rotary_null ) -// TODO: trackball inputs +// TODO: trackball inputs INPUT_PORTS_END static INPUT_PORTS_START( baddudes ) @@ -1040,14 +1040,14 @@ static INPUT_PORTS_START( baddudes ) PORT_MODIFY("INPUTS") PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_NAME("P1 Attack") PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_NAME("P1 Jump") - PORT_BIT( 0x00c0, IP_ACTIVE_LOW, IPT_UNUSED ) + PORT_BIT( 0x00c0, IP_ACTIVE_LOW, IPT_UNUSED ) PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL PORT_NAME("P2 Attack") PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_COCKTAIL PORT_NAME("P2 Jump") PORT_BIT( 0xc000, IP_ACTIVE_LOW, IPT_UNUSED ) - + PORT_MODIFY("SYSTEM") PORT_BIT( 0x0003, IP_ACTIVE_LOW, IPT_UNUSED ) - + PORT_START("DSW") DEC0_COIN_SETTING PORT_SERVICE_DIPLOC( 0x0010, IP_ACTIVE_LOW, "SW1:5" ) @@ -1101,14 +1101,14 @@ static INPUT_PORTS_START( robocop ) PORT_MODIFY("INPUTS") PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_NAME("P1 Attack") PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_NAME("P1 Jump") - PORT_BIT( 0x00c0, IP_ACTIVE_LOW, IPT_UNUSED ) + PORT_BIT( 0x00c0, IP_ACTIVE_LOW, IPT_UNUSED ) PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL PORT_NAME("P2 Attack") PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_COCKTAIL PORT_NAME("P2 Jump") PORT_BIT( 0xc000, IP_ACTIVE_LOW, IPT_UNUSED ) - + PORT_MODIFY("SYSTEM") PORT_BIT( 0x0003, IP_ACTIVE_LOW, IPT_UNUSED ) - + PORT_START("DSW") DEC0_COIN_SETTING PORT_DIPUNUSED_DIPLOC( 0x0010, IP_ACTIVE_LOW, "SW1:5" ) // Always OFF @@ -1156,13 +1156,13 @@ static INPUT_PORTS_START( hippodrm ) PORT_MODIFY("INPUTS") PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_NAME("P1 Attack") PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_NAME("P1 Jump") - PORT_BIT( 0x00c0, IP_ACTIVE_LOW, IPT_UNUSED ) + PORT_BIT( 0x00c0, IP_ACTIVE_LOW, IPT_UNUSED ) PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL PORT_NAME("P2 Attack") PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_COCKTAIL PORT_NAME("P2 Jump") PORT_BIT( 0xc000, IP_ACTIVE_LOW, IPT_UNUSED ) - + PORT_MODIFY("SYSTEM") - PORT_BIT( 0x0003, IP_ACTIVE_LOW, IPT_UNUSED ) + PORT_BIT( 0x0003, IP_ACTIVE_LOW, IPT_UNUSED ) PORT_START("DSW") DEC0_COIN_SETTING @@ -1197,7 +1197,7 @@ static INPUT_PORTS_START( hippodrm ) PORT_START("VBLANK") PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_CUSTOM ) PORT_VBLANK("screen") - + PORT_INCLUDE( rotary_null ) INPUT_PORTS_END @@ -1233,7 +1233,7 @@ static INPUT_PORTS_START( slyspy ) PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL PORT_NAME("P2 Attack") PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_COCKTAIL PORT_NAME("P2 Jump") PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNUSED ) - + PORT_START("DSW") DEC0_COIN_SETTING PORT_SERVICE_DIPLOC( 0x0010, IP_ACTIVE_LOW, "SW1:5" ) @@ -1277,7 +1277,7 @@ static INPUT_PORTS_START( midres ) PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL PORT_NAME("P2 Fire") PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_COCKTAIL PORT_NAME("P2 Jump") PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNUSED ) - + PORT_START("DSW") DEC0_COIN_SETTING PORT_DIPUNUSED_DIPLOC( 0x0010, IP_ACTIVE_LOW, "SW1:5" ) // Always OFF @@ -1330,13 +1330,13 @@ static INPUT_PORTS_START( midresb ) PORT_MODIFY("INPUTS") PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_NAME("P1 Fire") PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_NAME("P1 Jump") - PORT_BIT( 0x00c0, IP_ACTIVE_LOW, IPT_UNUSED ) + PORT_BIT( 0x00c0, IP_ACTIVE_LOW, IPT_UNUSED ) PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL PORT_NAME("P2 Fire") PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_COCKTAIL PORT_NAME("P2 Jump") PORT_BIT( 0xc000, IP_ACTIVE_LOW, IPT_UNUSED ) - + PORT_MODIFY("SYSTEM") - PORT_BIT( 0x0003, IP_ACTIVE_LOW, IPT_UNUSED ) + PORT_BIT( 0x0003, IP_ACTIVE_LOW, IPT_UNUSED ) PORT_START("DSW") DEC0_COIN_SETTING @@ -1381,16 +1381,16 @@ static INPUT_PORTS_START( bouldash ) PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON1 ) // squeeze diamond PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON2 ) // escape PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_UNUSED ) /* Button 3 - only in Service Mode */ -// PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_START1 ) +// PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_START1 ) PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY PORT_COCKTAIL PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_4WAY PORT_COCKTAIL PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_4WAY PORT_COCKTAIL PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_4WAY PORT_COCKTAIL PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL // squeeze diamond PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_COCKTAIL // escape - PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNUSED ) -// PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_START2 ) - + PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNUSED ) +// PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_START2 ) + PORT_MODIFY("SYSTEM") PORT_BIT( 0x0008, IP_ACTIVE_HIGH, IPT_CUSTOM ) PORT_VBLANK("screen") /* extremely slow palette fades with ACTIVE_HIGH */ @@ -1441,7 +1441,7 @@ static INPUT_PORTS_START( bouldash ) PORT_DIPNAME( 0x8000, 0x0000, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW2:8") PORT_DIPSETTING( 0x8000, DEF_STR( Off ) ) PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) - + PORT_INCLUDE( rotary_null ) INPUT_PORTS_END @@ -3643,10 +3643,10 @@ ROM_END DRIVER_INIT_MEMBER(dec0_state,midresb) { -// m_maincpu->space(AS_PROGRAM).install_read_handler(0x00180000, 0x0018000f, read16_delegate(FUNC(dec0_state::dec0_controls_r),this)); -// m_maincpu->space(AS_PROGRAM).install_read_handler(0x001a0000, 0x001a000f, read16_delegate(FUNC(dec0_state::dec0_rotary_r),this)); +// m_maincpu->space(AS_PROGRAM).install_read_handler(0x00180000, 0x0018000f, read16_delegate(FUNC(dec0_state::dec0_controls_r),this)); +// m_maincpu->space(AS_PROGRAM).install_read_handler(0x001a0000, 0x001a000f, read16_delegate(FUNC(dec0_state::dec0_rotary_r),this)); -// m_maincpu->space(AS_PROGRAM).install_write_handler(0x00180014, 0x00180015, write16_delegate(FUNC(dec0_state::midres_sound_w),this)); +// m_maincpu->space(AS_PROGRAM).install_write_handler(0x00180014, 0x00180015, write16_delegate(FUNC(dec0_state::midres_sound_w),this)); } READ16_MEMBER(dec0_state::ffantasybl_242024_r) |