Previous 199869 Revisions Next

r18703 Thursday 25th October, 2012 at 14:16:51 UTC by hap
finlflng/rapidrvr testmode is now navigatable
[src/mame/drivers]namcos23.c

trunk/src/mame/drivers/namcos23.c
r18702r18703
28042804}
28052805
28062806static INPUT_PORTS_START( gorgon )
2807   // No idea if start is actually there, but we need buttons to pass error screens
28082807   PORT_START("P1")
2809   PORT_BIT( 0x001, IP_ACTIVE_LOW, IPT_START1 )
2810   PORT_BIT( 0xffe, IP_ACTIVE_LOW, IPT_UNKNOWN )
2808   PORT_BIT( 0xfff, IP_ACTIVE_LOW, IPT_UNKNOWN )
28112809
28122810   PORT_START("P2")
2813   PORT_BIT( 0x001, IP_ACTIVE_LOW, IPT_START2 )
2814   PORT_BIT( 0xffe, IP_ACTIVE_LOW, IPT_UNKNOWN )
2811   PORT_BIT( 0xfff, IP_ACTIVE_LOW, IPT_UNKNOWN )
28152812
28162813   PORT_START("IN0")
2817   PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_START1 )
2818   PORT_BIT(0xef, IP_ACTIVE_LOW, IPT_UNKNOWN )
2814   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_OTHER ) PORT_NAME("Test Button") PORT_CODE(KEYCODE_F1)
2815   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_NAME("Service Up")
2816   PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_NAME("Service Down")
2817   PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_NAME("Service Enter")
2818   PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_START1 )
2819   PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN )
2820   PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN )
2821   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
28192822
28202823   PORT_START("IN1")
2821   PORT_BIT(0xff, IP_ACTIVE_LOW, IPT_UNKNOWN )
2824   PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNKNOWN )
28222825
28232826   PORT_START("IN2")
2824   PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_COIN1 )
2825   PORT_BIT(0xf7, IP_ACTIVE_LOW, IPT_UNKNOWN )
2827   PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_COIN1 )
2828   PORT_BIT( 0xf7, IP_ACTIVE_LOW, IPT_UNKNOWN )
28262829
28272830   PORT_START("IN3")
2828   PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_BUTTON1 )
2829   PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_BUTTON2 )
2830   PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_BUTTON3 )
2831   PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_BUTTON4 )
2832   PORT_BIT(0xf0, IP_ACTIVE_LOW, IPT_UNKNOWN )
2831   PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNKNOWN )
28332832
28342833   PORT_START("SERVICE")
28352834   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_SERVICE1 )
28362835
28372836   PORT_START("DSW")
2838   PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) )
2837   PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) )   PORT_DIPLOCATION("DIP:8")
28392838   PORT_DIPSETTING(    0x01, DEF_STR( Off ) )
28402839   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
2841   PORT_DIPNAME( 0x02, 0x02, DEF_STR( Unknown ) )
2840   PORT_DIPNAME( 0x02, 0x02, DEF_STR( Unknown ) )   PORT_DIPLOCATION("DIP:7")
28422841   PORT_DIPSETTING(    0x02, DEF_STR( Off ) )
28432842   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
2844   PORT_DIPNAME( 0x04, 0x04, "Freeze?" )
2843   PORT_DIPNAME( 0x04, 0x04, DEF_STR( Unknown ) )   PORT_DIPLOCATION("DIP:6")
28452844   PORT_DIPSETTING(    0x04, DEF_STR( Off ) )
28462845   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
2847   PORT_DIPNAME( 0x08, 0x08, DEF_STR( Unknown ) )
2846   PORT_DIPNAME( 0x08, 0x08, DEF_STR( Unknown ) )   PORT_DIPLOCATION("DIP:5")
28482847   PORT_DIPSETTING(    0x08, DEF_STR( Off ) )
28492848   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
2850   PORT_DIPNAME( 0x10, 0x10, DEF_STR( Unknown ) )
2849   PORT_DIPNAME( 0x10, 0x10, DEF_STR( Unknown ) )   PORT_DIPLOCATION("DIP:4")
28512850   PORT_DIPSETTING(    0x10, DEF_STR( Off ) )
28522851   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
2853   PORT_DIPNAME( 0x20, 0x20, DEF_STR( Unknown ) )
2852   PORT_DIPNAME( 0x20, 0x20, DEF_STR( Unknown ) )   PORT_DIPLOCATION("DIP:3")
28542853   PORT_DIPSETTING(    0x20, DEF_STR( Off ) )
28552854   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
2856   PORT_DIPNAME( 0x40, 0x40, DEF_STR( Unknown ) )
2855   PORT_DIPNAME( 0x40, 0x40, DEF_STR( Unknown ) )   PORT_DIPLOCATION("DIP:2")
28572856   PORT_DIPSETTING(    0x40, DEF_STR( Off ) )
28582857   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
2859   PORT_DIPNAME( 0x80, 0x80, DEF_STR( Service_Mode ) )
2860   PORT_DIPSETTING(    0x80, DEF_STR( Off ) )
2861   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
2858   PORT_SERVICE_DIPLOC(0x80, IP_ACTIVE_LOW, "DIP:1" )
28622859INPUT_PORTS_END
28632860
28642861static INPUT_PORTS_START( rapidrvrp )
2862   PORT_INCLUDE( gorgon )
2863
28652864   // To fully use test mode, both Service Mode dipswitches need to be enabled.
28662865   // Some of the developer menus require you to navigate with the Dev keys,
28672866   // but usually the User keys work fine too.
2868   PORT_START("P1")
2867   PORT_MODIFY("P1")
28692868   PORT_BIT( 0x001, IP_ACTIVE_LOW, IPT_UNKNOWN )
28702869   PORT_BIT( 0x002, IP_ACTIVE_LOW, IPT_UNKNOWN ) // I/O Unknown Status
28712870   PORT_BIT( 0x004, IP_ACTIVE_LOW, IPT_UNKNOWN ) // I/O Air Dumper FR
2872   PORT_BIT( 0x008, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) PORT_NAME("Dev A") // + I/O Air Dumper RR
2871   PORT_BIT( 0x008, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) PORT_NAME("Dev Service A") // + I/O Air Dumper RR
28732872   PORT_BIT( 0x010, IP_ACTIVE_LOW, IPT_UNKNOWN )
28742873   PORT_BIT( 0x020, IP_ACTIVE_LOW, IPT_UNKNOWN )
2875   PORT_BIT( 0x040, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(2) PORT_NAME("Dev Down")
2876   PORT_BIT( 0x080, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(2) PORT_NAME("Dev Up")
2874   PORT_BIT( 0x040, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(2) PORT_NAME("Dev Service Down")
2875   PORT_BIT( 0x080, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(2) PORT_NAME("Dev Service Up")
28772876   PORT_BIT( 0x100, IP_ACTIVE_LOW, IPT_START2 ) PORT_NAME("Dev Start")
28782877   PORT_BIT( 0x200, IP_ACTIVE_LOW, IPT_UNKNOWN )
28792878   PORT_BIT( 0x400, IP_ACTIVE_LOW, IPT_UNKNOWN ) // I/O Air Dumper FL
2880   PORT_BIT( 0x800, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) PORT_NAME("Dev B") // + I/O Air Dumper RL
2879   PORT_BIT( 0x800, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) PORT_NAME("Dev Service B") // + I/O Air Dumper RL
28812880
2882   PORT_START("P2")
2883   PORT_BIT( 0xfff, IP_ACTIVE_LOW, IPT_UNKNOWN )
2884
2885   PORT_START("IN0")
2886   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_SERVICE )
2887   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_NAME("User Up")
2888   PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_NAME("User Down")
2889   PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_NAME("User Enter")
2890   PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_START1  ) PORT_NAME("User Start")
2881   PORT_MODIFY("IN0")
2882   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_OTHER ) PORT_NAME("Test Button") PORT_CODE(KEYCODE_F1)
2883   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_NAME("User Service Up")
2884   PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_NAME("User Service Down")
2885   PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_NAME("User Service Enter")
2886   PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_START1 ) PORT_NAME("User Start")
28912887   PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN )
28922888   PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN )
28932889   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
28942890
2895   PORT_START("IN1")
2896   PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNKNOWN )
2897
2898   PORT_START("IN2")
2899   PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_COIN1 )
2900   PORT_BIT( 0xf7, IP_ACTIVE_LOW, IPT_UNKNOWN )
2901
2902   PORT_START("IN3")
2903   PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNKNOWN )
2904
2905   PORT_START("SERVICE")
2906   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_SERVICE1 )
2907
2908   PORT_START("DSW")
2909   PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) )   PORT_DIPLOCATION("SW1:8")
2910   PORT_DIPSETTING(    0x01, DEF_STR( Off ) )
2911   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
2912   PORT_DIPNAME( 0x02, 0x02, DEF_STR( Unknown ) )   PORT_DIPLOCATION("SW1:7")
2913   PORT_DIPSETTING(    0x02, DEF_STR( Off ) )
2914   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
2915   PORT_DIPNAME( 0x04, 0x04, DEF_STR( Unknown ) )   PORT_DIPLOCATION("SW1:6")
2916   PORT_DIPSETTING(    0x04, DEF_STR( Off ) )
2917   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
2918   PORT_DIPNAME( 0x08, 0x08, "Debug Messages" )   PORT_DIPLOCATION("SW1:5")
2919   PORT_DIPSETTING(    0x08, DEF_STR( Off ) )
2920   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
2921   PORT_DIPNAME( 0x10, 0x10, DEF_STR( Unknown ) )   PORT_DIPLOCATION("SW1:4")
2922   PORT_DIPSETTING(    0x10, DEF_STR( Off ) )
2923   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
2924   PORT_DIPNAME( 0x20, 0x20, DEF_STR( Unknown ) )   PORT_DIPLOCATION("SW1:3")
2925   PORT_DIPSETTING(    0x20, DEF_STR( Off ) )
2926   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
2927   PORT_DIPNAME( 0x40, 0x40, "Dev Service Mode" )   PORT_DIPLOCATION("SW1:2")
2891   PORT_MODIFY("DSW")
2892   PORT_DIPNAME( 0x08, 0x08, "Debug Messages" )   PORT_DIPLOCATION("DIP:5")
2893   PORT_DIPNAME( 0x40, 0x40, "Dev Service Mode" )   PORT_DIPLOCATION("DIP:2")
29282894   PORT_DIPSETTING(    0x40, DEF_STR( Off ) )
29292895   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
2930   PORT_DIPNAME( 0x80, 0x80, "User Service Mode" )   PORT_DIPLOCATION("SW1:1")
2931   PORT_DIPSETTING(    0x80, DEF_STR( Off ) )
2932   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
2896   PORT_SERVICE_DIPLOC(0x80, IP_ACTIVE_LOW, "DIP:1" ) PORT_NAME("User Service Mode")
29332897INPUT_PORTS_END
29342898
29352899static INPUT_PORTS_START( s23 )

Previous 199869 Revisions Next


© 1997-2024 The MAME Team