Previous 199869 Revisions Next

r23961 Wednesday 26th June, 2013 at 19:45:59 UTC by Alex Jackson
toaplan2.c: bgaregga DSW3 really are dipswitches and not "configuration". Also, make bbakraid inputs inherit from very similar batrider [Alex Jackson]
[src/mame/drivers]toaplan2.c

trunk/src/mame/drivers/toaplan2.c
r23960r23961
25612561   PORT_DIPSETTING(        0x0080, "1000k and 2000k" )     PORT_CONDITION("JMPR",0x0003,EQUALS,0x0000) // Japan
25622562   PORT_DIPSETTING(        0x0000, "Every 1000k" )         PORT_CONDITION("JMPR",0x0003,EQUALS,0x0000) // Japan
25632563
2564   PORT_START("JMPR")
2565   PORT_CONFNAME( 0x0008,  0x0000, "Stage Edit" )  //PORT_CONFLOCATION("SW3:!1")
2566   PORT_CONFSETTING(       0x0000, DEF_STR( Off ) )
2567   PORT_CONFSETTING(       0x0008, DEF_STR( On ) )
2568   PORT_CONFNAME( 0x0004,  0x0000, DEF_STR( Allow_Continue ) ) //PORT_CONFLOCATION("SW3:!2")
2569   PORT_CONFSETTING(       0x0004, DEF_STR( No ) )
2570   PORT_CONFSETTING(       0x0000, DEF_STR( Yes ) )
2564   PORT_START("JMPR") // DSW3 and jumper
2565   PORT_DIPNAME( 0x0008,  0x0000, "Stage Edit" ) PORT_DIPLOCATION("SW3:!1")
2566   PORT_DIPSETTING(       0x0000, DEF_STR( Off ) )
2567   PORT_DIPSETTING(       0x0008, DEF_STR( On ) )
2568   PORT_DIPNAME( 0x0004,  0x0000, DEF_STR( Allow_Continue ) ) PORT_DIPLOCATION("SW3:!2")
2569   PORT_DIPSETTING(       0x0004, DEF_STR( No ) )
2570   PORT_DIPSETTING(       0x0000, DEF_STR( Yes ) )
25712571   PORT_CONFNAME( 0x0003,  0x0001, DEF_STR( Region ) ) //PORT_CONFLOCATION("JP:!2,!1")
25722572   PORT_CONFSETTING(       0x0001, "Europe (Tuning)" )
25732573   PORT_CONFSETTING(       0x0002, "USA (Fabtek)" )
r23960r23961
27452745
27462746
27472747static INPUT_PORTS_START( bbakraid )
2748   PORT_START("IN")        // Player Inputs
2749   PORT_BIT( 0x0001, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1)
2750   PORT_BIT( 0x0002, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1)
2751   PORT_BIT( 0x0004, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1)
2752   PORT_BIT( 0x0008, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1)
2753   PORT_BIT( 0x0010, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_PLAYER(1)
2754   PORT_BIT( 0x0020, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_PLAYER(1)
2755   PORT_BIT( 0x0040, IP_ACTIVE_HIGH, IPT_BUTTON3 ) PORT_PLAYER(1)
2756   PORT_BIT( 0x0100, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2)
2757   PORT_BIT( 0x0200, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2)
2758   PORT_BIT( 0x0400, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2)
2759   PORT_BIT( 0x0800, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2)
2760   PORT_BIT( 0x1000, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_PLAYER(2)
2761   PORT_BIT( 0x2000, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_PLAYER(2)
2762   PORT_BIT( 0x4000, IP_ACTIVE_HIGH, IPT_BUTTON3 ) PORT_PLAYER(2)
2763   PORT_BIT( 0x8080, IP_ACTIVE_HIGH, IPT_UNKNOWN )
2748   PORT_INCLUDE( batrider )
27642749
2765   PORT_START("DSW")       // DSWA and DSWB
2766   PORT_SERVICE_DIPLOC(0x0001, IP_ACTIVE_HIGH, "SW1:!1")
2767   PORT_DIPNAME( 0x0002,   0x0000, "Credits to Start" )    PORT_CONDITION("DSW", 0x001c, NOTEQUALS, 0x001c)    PORT_DIPLOCATION("SW1:!2")
2768   PORT_DIPSETTING(        0x0000, "1" )                   PORT_CONDITION("DSW", 0x001c, NOTEQUALS, 0x001c)
2769   PORT_DIPSETTING(        0x0002, "2" )                   PORT_CONDITION("DSW", 0x001c, NOTEQUALS, 0x001c)
2770   PORT_DIPNAME( 0x0002,   0x0000, "Joystick Mode" )       PORT_CONDITION("DSW", 0x001c, EQUALS, 0x001c)       PORT_DIPLOCATION("SW1:!2")
2771   PORT_DIPSETTING(        0x0000, DEF_STR( Normal ) )     PORT_CONDITION("DSW", 0x001c, EQUALS, 0x001c)
2772   PORT_DIPSETTING(        0x0002, "90 degrees ACW" )      PORT_CONDITION("DSW", 0x001c, EQUALS, 0x001c)
2773   PORT_DIPNAME( 0x001c,   0x0000, DEF_STR( Coin_A ) )     PORT_DIPLOCATION("SW1:!3,!4,!5")
2774   PORT_DIPSETTING(        0x0018, DEF_STR( 4C_1C ) )
2775   PORT_DIPSETTING(        0x0014, DEF_STR( 3C_1C ) )
2776   PORT_DIPSETTING(        0x0010, DEF_STR( 2C_1C ) )
2777   PORT_DIPSETTING(        0x0000, DEF_STR( 1C_1C ) )
2778   PORT_DIPSETTING(        0x0004, DEF_STR( 1C_2C ) )
2779   PORT_DIPSETTING(        0x0008, DEF_STR( 1C_3C ) )
2780   PORT_DIPSETTING(        0x000c, DEF_STR( 1C_4C ) )
2781   PORT_DIPSETTING(        0x001c, DEF_STR( Free_Play ) )
2782   PORT_DIPNAME( 0x00e0,   0x0000, DEF_STR( Coin_B ) )     PORT_CONDITION("DSW", 0x001c, NOTEQUALS, 0x001c)    PORT_DIPLOCATION("SW1:!6,!7,!8")
2783   PORT_DIPSETTING(        0x00c0, DEF_STR( 4C_1C ) )      PORT_CONDITION("DSW", 0x001c, NOTEQUALS, 0x001c)
2784   PORT_DIPSETTING(        0x00a0, DEF_STR( 3C_1C ) )      PORT_CONDITION("DSW", 0x001c, NOTEQUALS, 0x001c)
2785   PORT_DIPSETTING(        0x0080, DEF_STR( 2C_1C ) )      PORT_CONDITION("DSW", 0x001c, NOTEQUALS, 0x001c)
2786   PORT_DIPSETTING(        0x0000, DEF_STR( 1C_1C ) )      PORT_CONDITION("DSW", 0x001c, NOTEQUALS, 0x001c)
2787//  PORT_DIPSETTING(        0x00e0, DEF_STR( 1C_1C ) )      PORT_CONDITION("DSW", 0x001c, NOTEQUALS, 0x001c)
2788   PORT_DIPSETTING(        0x0020, DEF_STR( 1C_2C ) )      PORT_CONDITION("DSW", 0x001c, NOTEQUALS, 0x001c)
2789   PORT_DIPSETTING(        0x0040, DEF_STR( 1C_3C ) )      PORT_CONDITION("DSW", 0x001c, NOTEQUALS, 0x001c)
2790   PORT_DIPSETTING(        0x0060, DEF_STR( 1C_4C ) )      PORT_CONDITION("DSW", 0x001c, NOTEQUALS, 0x001c)
2791   // When Coin_A is set to Free_Play, Coin_A becomes Coin_A and Coin_B, and the following dips occur
2792   PORT_DIPNAME( 0x0020,   0x0000, "Hit Score" )           PORT_CONDITION("DSW", 0x001c, EQUALS, 0x001c)   PORT_DIPLOCATION("SW1:!6")
2793   PORT_DIPSETTING(        0x0000, DEF_STR( Off ) )        PORT_CONDITION("DSW", 0x001c, EQUALS, 0x001c)
2794   PORT_DIPSETTING(        0x0020, DEF_STR( On ) )         PORT_CONDITION("DSW", 0x001c, EQUALS, 0x001c)
2795   PORT_DIPNAME( 0x0040,   0x0000, "Sound Effect" )        PORT_CONDITION("DSW", 0x001c, EQUALS, 0x001c)   PORT_DIPLOCATION("SW1:!7")
2796   PORT_DIPSETTING(        0x0000, DEF_STR( Off ) )        PORT_CONDITION("DSW", 0x001c, EQUALS, 0x001c)
2797   PORT_DIPSETTING(        0x0040, DEF_STR( On ) )         PORT_CONDITION("DSW", 0x001c, EQUALS, 0x001c)
2798   PORT_DIPNAME( 0x0080,   0x0000, "Music" )               PORT_CONDITION("DSW", 0x001c, EQUALS, 0x001c)   PORT_DIPLOCATION("SW1:!8")
2799   PORT_DIPSETTING(        0x0000, DEF_STR( Off ) )        PORT_CONDITION("DSW", 0x001c, EQUALS, 0x001c)
2800   PORT_DIPSETTING(        0x0080, DEF_STR( On ) )         PORT_CONDITION("DSW", 0x001c, EQUALS, 0x001c)
2801   PORT_DIPNAME( 0x0300,   0x0000, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW2:!1,!2")
2802   PORT_DIPSETTING(        0x0100, DEF_STR( Easy ) )
2803   PORT_DIPSETTING(        0x0000, DEF_STR( Normal ) )
2804   PORT_DIPSETTING(        0x0200, DEF_STR( Hard ) )
2805   PORT_DIPSETTING(        0x0300, DEF_STR( Very_Hard ) )
2806   PORT_DIPNAME( 0x0c00,   0x0000, "Timer" )               PORT_DIPLOCATION("SW2:!3,!4")
2807   PORT_DIPSETTING(        0x0c00, DEF_STR( Highest ) )
2808   PORT_DIPSETTING(        0x0800, DEF_STR( High ) )
2809   PORT_DIPSETTING(        0x0000, DEF_STR( Normal ) )
2810   PORT_DIPSETTING(        0x0400, DEF_STR( Low ) )
2811   PORT_DIPNAME( 0x3000,   0x0000, DEF_STR( Lives ) )      PORT_DIPLOCATION("SW2:!5,!6")
2812   PORT_DIPSETTING(        0x3000, "1" )
2813   PORT_DIPSETTING(        0x2000, "2" )
2814   PORT_DIPSETTING(        0x0000, "3" )
2815   PORT_DIPSETTING(        0x1000, "4" )
2750   PORT_MODIFY("DSW")       // DSWA and DSWB
28162751   PORT_DIPNAME( 0xc000,   0x0000, DEF_STR( Bonus_Life ) ) PORT_DIPLOCATION("SW2:!7,!8")
28172752   PORT_DIPSETTING(        0xc000, DEF_STR( None ) )
28182753   PORT_DIPSETTING(        0x8000, "Every 4000k" )
28192754   PORT_DIPSETTING(        0x4000, "Every 3000k" )
28202755   PORT_DIPSETTING(        0x0000, "Every 2000k" )
28212756
2822   PORT_START("SYS-DSW")   // Coin/System and DSW-3
2823   PORT_BIT( 0x0001, IP_ACTIVE_HIGH, IPT_SERVICE1 )
2824   PORT_BIT( 0x0002, IP_ACTIVE_HIGH, IPT_UNKNOWN)
2825   TOAPLAN_TEST_SWITCH( 0x04, IP_ACTIVE_HIGH )
2826   PORT_BIT( 0x0008, IP_ACTIVE_HIGH, IPT_COIN1 )
2827   PORT_BIT( 0x0010, IP_ACTIVE_HIGH, IPT_COIN2 )
2828   PORT_BIT( 0x0020, IP_ACTIVE_HIGH, IPT_START1 )
2829   PORT_BIT( 0x0040, IP_ACTIVE_HIGH, IPT_START2 )
2830   PORT_BIT( 0x0080, IP_ACTIVE_HIGH, IPT_UNKNOWN)
2831   PORT_DIPNAME( 0x0100,   0x0000, DEF_STR( Flip_Screen ) )    PORT_DIPLOCATION("SW3:!1")
2832   PORT_DIPSETTING(        0x0000, DEF_STR( Off ) )
2833   PORT_DIPSETTING(        0x0100, DEF_STR( On ) )
2834   PORT_DIPNAME( 0x0200,   0x0000, DEF_STR( Demo_Sounds ) )    PORT_DIPLOCATION("SW3:!2")
2835   PORT_DIPSETTING(        0x0200, DEF_STR( Off ) )
2836   PORT_DIPSETTING(        0x0000, DEF_STR( On ) )
2837   PORT_DIPNAME( 0x0400,   0x0000, "Stage Edit" )              PORT_DIPLOCATION("SW3:!3")
2838   PORT_DIPSETTING(        0x0000, DEF_STR( Off ) )
2839   PORT_DIPSETTING(        0x0400, DEF_STR( On ) )
2840   PORT_DIPNAME( 0x0800,   0x0000, DEF_STR( Allow_Continue ) ) PORT_DIPLOCATION("SW3:!4")
2841   PORT_DIPSETTING(        0x0800, DEF_STR( No ) )
2842   PORT_DIPSETTING(        0x0000, DEF_STR( Yes ) )
2843   PORT_DIPNAME( 0x1000,   0x0000, "Invulnerability (Cheat)" )         PORT_DIPLOCATION("SW3:!5")
2844   PORT_DIPSETTING(        0x0000, DEF_STR( Off ) )
2845   PORT_DIPSETTING(        0x1000, DEF_STR( On ) )
2757   PORT_MODIFY("SYS-DSW")   // Coin/System and DSW-3
28462758   PORT_DIPNAME( 0x2000,   0x0000, "Save Scores" )             PORT_DIPLOCATION("SW3:!6")
28472759   PORT_DIPSETTING(        0x2000, DEF_STR( Off ) )
28482760   PORT_DIPSETTING(        0x0000, DEF_STR( On ) )

Previous 199869 Revisions Next


© 1997-2024 The MAME Team