Previous 199869 Revisions Next

r31382 Tuesday 22nd July, 2014 at 13:04:49 UTC by Robbbert
GamePlan 1: WIP
[src/mame]mame.mak
[src/mame/drivers]gp_1.c
[src/mame/layout]gp_1.lay*

trunk/src/mame/layout/gp_1.lay
r0r31382
1<!-- Game Plan 1 copied from s6.lay -->
2
3<!-- 2014-07-22: Initial version.  [Robbbert] -->
4
5<mamelayout version="2">
6
7   <element name="digit" defstate="0">
8      <led7seg>
9         <color red="1.0" green="0.25" blue="0.0" />
10      </led7seg>
11   </element>
12   <element name="red_led">
13      <disk><color red="1.0" green="0.0" blue="0.0" /></disk>
14   </element>
15   <element name="background">
16      <rect>
17         <bounds left="0" top="0" right="1" bottom="1" />
18         <color red="0.0" green="0.0" blue="0.0" />
19      </rect>
20   </element>
21   <element name="P0"><text string="Ball / Match"><color red="1.0" green="1.0" blue="1.0" /></text></element>
22   <element name="P1"><text string="Credits"><color red="1.0" green="1.0" blue="1.0" /></text></element>
23   <element name="P3"><text string="Player 1"><color red="1.0" green="1.0" blue="1.0" /></text></element>
24   <element name="P4"><text string="Player 2"><color red="1.0" green="1.0" blue="1.0" /></text></element>
25   <element name="P5"><text string="Player 3"><color red="1.0" green="1.0" blue="1.0" /></text></element>
26   <element name="P6"><text string="Player 4"><color red="1.0" green="1.0" blue="1.0" /></text></element>
27
28   <view name="Default Layout">
29
30      <!-- Background -->
31      <backdrop element="background">
32         <bounds left="0" top="20" right="274" bottom="394" />
33      </backdrop>
34
35      <!-- LEDs -->
36
37      <!-- Player 1 Score -->
38
39      <bezel name="digit0" element="digit">
40         <bounds left="10" top="45" right="44" bottom="84" />
41      </bezel>
42      <bezel name="digit1" element="digit">
43         <bounds left="54" top="45" right="88" bottom="84" />
44      </bezel>
45      <bezel name="digit2" element="digit">
46         <bounds left="98" top="45" right="132" bottom="84" />
47      </bezel>
48      <bezel name="digit3" element="digit">
49         <bounds left="142" top="45" right="176" bottom="84" />
50      </bezel>
51      <bezel name="digit4" element="digit">
52         <bounds left="186" top="45" right="220" bottom="84" />
53      </bezel>
54      <bezel name="digit5" element="digit">
55         <bounds left="230" top="45" right="264" bottom="84" />
56      </bezel>
57
58      <!-- Player 2 Score -->
59      <bezel name="digit8" element="digit">
60         <bounds left="10" top="105" right="44" bottom="144" />
61      </bezel>
62      <bezel name="digit9" element="digit">
63         <bounds left="54" top="105" right="88" bottom="144" />
64      </bezel>
65      <bezel name="digit10" element="digit">
66         <bounds left="98" top="105" right="132" bottom="144" />
67      </bezel>
68      <bezel name="digit11" element="digit">
69         <bounds left="142" top="105" right="176" bottom="144" />
70      </bezel>
71      <bezel name="digit12" element="digit">
72         <bounds left="186" top="105" right="220" bottom="144" />
73      </bezel>
74      <bezel name="digit13" element="digit">
75         <bounds left="230" top="105" right="264" bottom="144" />
76      </bezel>
77
78      <!-- Player 3 Score -->
79      <bezel name="digit16" element="digit">
80         <bounds left="10" top="165" right="44" bottom="204" />
81      </bezel>
82      <bezel name="digit17" element="digit">
83         <bounds left="54" top="165" right="88" bottom="204" />
84      </bezel>
85      <bezel name="digit18" element="digit">
86         <bounds left="98" top="165" right="132" bottom="204" />
87      </bezel>
88      <bezel name="digit19" element="digit">
89         <bounds left="142" top="165" right="176" bottom="204" />
90      </bezel>
91      <bezel name="digit20" element="digit">
92         <bounds left="186" top="165" right="220" bottom="204" />
93      </bezel>
94      <bezel name="digit21" element="digit">
95         <bounds left="230" top="165" right="264" bottom="204" />
96      </bezel>
97
98      <!-- Player 4 Score -->
99      <bezel name="digit24" element="digit">
100         <bounds left="10" top="225" right="44" bottom="264" />
101      </bezel>
102      <bezel name="digit25" element="digit">
103         <bounds left="54" top="225" right="88" bottom="264" />
104      </bezel>
105      <bezel name="digit26" element="digit">
106         <bounds left="98" top="225" right="132" bottom="264" />
107      </bezel>
108      <bezel name="digit27" element="digit">
109         <bounds left="142" top="225" right="176" bottom="264" />
110      </bezel>
111      <bezel name="digit28" element="digit">
112         <bounds left="186" top="225" right="220" bottom="264" />
113      </bezel>
114      <bezel name="digit29" element="digit">
115         <bounds left="230" top="225" right="264" bottom="264" />
116      </bezel>
117
118      <!-- Credits and Balls -->
119      <bezel name="digit14" element="digit">
120         <bounds left="10" top="345" right="44" bottom="384" />
121      </bezel>
122      <bezel name="digit15" element="digit">
123         <bounds left="54" top="345" right="88" bottom="384" />
124      </bezel>
125      <bezel name="digit6" element="digit">
126         <bounds left="186" top="345" right="220" bottom="384" />
127      </bezel>
128      <bezel name="digit7" element="digit">
129         <bounds left="230" top="345" right="264" bottom="384" />
130      </bezel>
131      <bezel element="P0"><bounds left="200" right="258" top="330" bottom="342" /></bezel>
132      <bezel element="P1"><bounds left="30" right="88" top="330" bottom="342" /></bezel>
133      <bezel name="text3" element="P3"><bounds left="100" right="180" top="30" bottom="42" /></bezel>
134      <bezel name="text2" element="P4"><bounds left="100" right="180" top="90" bottom="102" /></bezel>
135      <bezel name="text1" element="P5"><bounds left="100" right="180" top="150" bottom="162" /></bezel>
136      <bezel name="text0" element="P6"><bounds left="100" right="180" top="210" bottom="222" /></bezel>
137      <bezel name="led0" element="red_led">
138         <bounds left="110" right="125" top="360" bottom="375" /></bezel>
139   </view>
140</mamelayout>
Property changes on: trunk/src/mame/layout/gp_1.lay
Added: svn:eol-style
   + native
Added: svn:mime-type
   + text/plain
trunk/src/mame/drivers/gp_1.c
r31381r31382
1111#include "cpu/z80/z80daisy.h"
1212#include "machine/i8255.h"
1313#include "machine/z80ctc.h"
14#include "gp_1.lh"
1415
1516class gp_1_state : public genpin_class
1617{
r31381r31382
2930private:
3031   UINT8 m_u14;
3132   UINT8 m_digit;
32   UINT8 m_sol;
33   UINT8 m_segment;
3334   virtual void machine_reset();
3435   required_device<cpu_device> m_maincpu;
3536   required_device<z80ctc_device> m_ctc;
r31381r31382
4849ADDRESS_MAP_END
4950
5051static INPUT_PORTS_START( gp_1 )
51   PORT_START("TEST")
52   //PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("Self Test") PORT_IMPULSE(1) PORT_CHANGED_MEMBER(DEVICE_SELF, gp_1_state, self_test, 0)
53
5452   PORT_START("DSW0")
55   PORT_DIPNAME( 0x01, 0x01, "S01") // S1-5: 32 combinations of coins/credits of coin slot 1.
56   PORT_DIPSETTING(    0x01, DEF_STR( Off ))
57   PORT_DIPSETTING(    0x00, DEF_STR( On ))
58   PORT_DIPNAME( 0x02, 0x00, "S02")
59   PORT_DIPSETTING(    0x02, DEF_STR( Off ))
60   PORT_DIPSETTING(    0x00, DEF_STR( On ))
61   PORT_DIPNAME( 0x04, 0x04, "S03")
62   PORT_DIPSETTING(    0x04, DEF_STR( Off ))
63   PORT_DIPSETTING(    0x00, DEF_STR( On ))
64   PORT_DIPNAME( 0x08, 0x08, "S04")
65   PORT_DIPSETTING(    0x08, DEF_STR( Off ))
66   PORT_DIPSETTING(    0x00, DEF_STR( On ))
67   PORT_DIPNAME( 0x10, 0x10, "S05")
68   PORT_DIPSETTING(    0x10, DEF_STR( Off ))
69   PORT_DIPSETTING(    0x00, DEF_STR( On ))
70   PORT_DIPNAME( 0x20, 0x20, "S06")
71   PORT_DIPSETTING(    0x20, DEF_STR( Off ))
72   PORT_DIPSETTING(    0x00, DEF_STR( On ))
73   PORT_DIPNAME( 0x40, 0x40, "S07")
74   PORT_DIPSETTING(    0x40, DEF_STR( Off ))
75   PORT_DIPSETTING(    0x00, DEF_STR( On ))
76   PORT_DIPNAME( 0x80, 0x80, "Free Play")
77   PORT_DIPSETTING(    0x80, DEF_STR( Off ))
78   PORT_DIPSETTING(    0x00, DEF_STR( On ))
53   PORT_DIPNAME( 0x01, 0x00, "S01") // S1-5: 32 combinations of coins/credits of coin slot 1.
54   PORT_DIPSETTING(    0x00, DEF_STR( Off ))
55   PORT_DIPSETTING(    0x01, DEF_STR( On ))
56   PORT_DIPNAME( 0x02, 0x02, "S02")
57   PORT_DIPSETTING(    0x00, DEF_STR( Off ))
58   PORT_DIPSETTING(    0x02, DEF_STR( On ))
59   PORT_DIPNAME( 0x04, 0x00, "S03")
60   PORT_DIPSETTING(    0x00, DEF_STR( Off ))
61   PORT_DIPSETTING(    0x04, DEF_STR( On ))
62   PORT_DIPNAME( 0x08, 0x00, "S04")
63   PORT_DIPSETTING(    0x00, DEF_STR( Off ))
64   PORT_DIPSETTING(    0x08, DEF_STR( On ))
65   PORT_DIPNAME( 0x10, 0x00, "S05")
66   PORT_DIPSETTING(    0x00, DEF_STR( Off ))
67   PORT_DIPSETTING(    0x10, DEF_STR( On ))
68   PORT_DIPNAME( 0x20, 0x00, "S06")
69   PORT_DIPSETTING(    0x00, DEF_STR( Off ))
70   PORT_DIPSETTING(    0x20, DEF_STR( On ))
71   PORT_DIPNAME( 0x40, 0x00, "S07")
72   PORT_DIPSETTING(    0x00, DEF_STR( Off ))
73   PORT_DIPSETTING(    0x40, DEF_STR( On ))
74   PORT_DIPNAME( 0x80, 0x00, "Free Play")
75   PORT_DIPSETTING(    0x00, DEF_STR( Off ))
76   PORT_DIPSETTING(    0x80, DEF_STR( On ))
7977
8078   PORT_START("DSW1")
81   PORT_DIPNAME( 0x01, 0x01, "S09") // S09-12 determine coinage for slot 2
82   PORT_DIPSETTING(    0x01, DEF_STR( Off ))
83   PORT_DIPSETTING(    0x00, DEF_STR( On ))
84   PORT_DIPNAME( 0x02, 0x02, "S10")
85   PORT_DIPSETTING(    0x02, DEF_STR( Off ))
86   PORT_DIPSETTING(    0x00, DEF_STR( On ))
87   PORT_DIPNAME( 0x04, 0x04, "S11")
88   PORT_DIPSETTING(    0x04, DEF_STR( Off ))
89   PORT_DIPSETTING(    0x00, DEF_STR( On ))
90   PORT_DIPNAME( 0x08, 0x08, "S12")
91   PORT_DIPSETTING(    0x08, DEF_STR( Off ))
92   PORT_DIPSETTING(    0x00, DEF_STR( On ))
93   PORT_DIPNAME( 0x10, 0x10, "S13")
94   PORT_DIPSETTING(    0x10, DEF_STR( Off ))
95   PORT_DIPSETTING(    0x00, DEF_STR( On ))
96   PORT_DIPNAME( 0x20, 0x20, "S14")
97   PORT_DIPSETTING(    0x20, DEF_STR( Off ))
98   PORT_DIPSETTING(    0x00, DEF_STR( On ))
99   PORT_DIPNAME( 0x40, 0x40, "S15")
100   PORT_DIPSETTING(    0x40, DEF_STR( Off ))
101   PORT_DIPSETTING(    0x00, DEF_STR( On ))
79   PORT_DIPNAME( 0x01, 0x00, "S09") // S09-12 determine coinage for slot 2
80   PORT_DIPSETTING(    0x00, DEF_STR( Off ))
81   PORT_DIPSETTING(    0x01, DEF_STR( On ))
82   PORT_DIPNAME( 0x02, 0x00, "S10")
83   PORT_DIPSETTING(    0x00, DEF_STR( Off ))
84   PORT_DIPSETTING(    0x02, DEF_STR( On ))
85   PORT_DIPNAME( 0x04, 0x00, "S11")
86   PORT_DIPSETTING(    0x00, DEF_STR( Off ))
87   PORT_DIPSETTING(    0x04, DEF_STR( On ))
88   PORT_DIPNAME( 0x08, 0x00, "S12")
89   PORT_DIPSETTING(    0x00, DEF_STR( Off ))
90   PORT_DIPSETTING(    0x08, DEF_STR( On ))
91   PORT_DIPNAME( 0x10, 0x00, "S13")
92   PORT_DIPSETTING(    0x00, DEF_STR( Off ))
93   PORT_DIPSETTING(    0x10, DEF_STR( On ))
94   PORT_DIPNAME( 0x20, 0x00, "S14")
95   PORT_DIPSETTING(    0x00, DEF_STR( Off ))
96   PORT_DIPSETTING(    0x20, DEF_STR( On ))
97   PORT_DIPNAME( 0x40, 0x00, "S15")
98   PORT_DIPSETTING(    0x00, DEF_STR( Off ))
99   PORT_DIPSETTING(    0x40, DEF_STR( On ))
102100   PORT_DIPNAME( 0x80, 0x00, "Play Tunes")
103   PORT_DIPSETTING(    0x80, DEF_STR( Off ))
104   PORT_DIPSETTING(    0x00, DEF_STR( On ))
101   PORT_DIPSETTING(    0x00, DEF_STR( Off ))
102   PORT_DIPSETTING(    0x80, DEF_STR( On ))
105103
106104   PORT_START("DSW2")
107   PORT_DIPNAME( 0x01, 0x01, "S17") // S17-21 coins for slot 3
108   PORT_DIPSETTING(    0x01, DEF_STR( Off ))
109   PORT_DIPSETTING(    0x00, DEF_STR( On ))
110   PORT_DIPNAME( 0x02, 0x00, "S18")
111   PORT_DIPSETTING(    0x02, DEF_STR( Off ))
112   PORT_DIPSETTING(    0x00, DEF_STR( On ))
113   PORT_DIPNAME( 0x04, 0x04, "S19")
114   PORT_DIPSETTING(    0x04, DEF_STR( Off ))
115   PORT_DIPSETTING(    0x00, DEF_STR( On ))
116   PORT_DIPNAME( 0x08, 0x08, "S20")
117   PORT_DIPSETTING(    0x08, DEF_STR( Off ))
118   PORT_DIPSETTING(    0x00, DEF_STR( On ))
119   PORT_DIPNAME( 0x10, 0x10, "S21")
120   PORT_DIPSETTING(    0x10, DEF_STR( Off ))
121   PORT_DIPSETTING(    0x00, DEF_STR( On ))
122   PORT_DIPNAME( 0x20, 0x20, "S22")
123   PORT_DIPSETTING(    0x20, DEF_STR( Off ))
124   PORT_DIPSETTING(    0x00, DEF_STR( On ))
125   PORT_DIPNAME( 0x40, 0x40, "S23")
126   PORT_DIPSETTING(    0x40, DEF_STR( Off ))
127   PORT_DIPSETTING(    0x00, DEF_STR( On ))
128   PORT_DIPNAME( 0x80, 0x80, "S24")
129   PORT_DIPSETTING(    0x80, DEF_STR( Off ))
130   PORT_DIPSETTING(    0x00, DEF_STR( On ))
105   PORT_DIPNAME( 0x01, 0x00, "S17") // S17-21 coins for slot 3
106   PORT_DIPSETTING(    0x00, DEF_STR( Off ))
107   PORT_DIPSETTING(    0x01, DEF_STR( On ))
108   PORT_DIPNAME( 0x02, 0x02, "S18")
109   PORT_DIPSETTING(    0x00, DEF_STR( Off ))
110   PORT_DIPSETTING(    0x02, DEF_STR( On ))
111   PORT_DIPNAME( 0x04, 0x00, "S19")
112   PORT_DIPSETTING(    0x00, DEF_STR( Off ))
113   PORT_DIPSETTING(    0x04, DEF_STR( On ))
114   PORT_DIPNAME( 0x08, 0x00, "S20")
115   PORT_DIPSETTING(    0x00, DEF_STR( Off ))
116   PORT_DIPSETTING(    0x08, DEF_STR( On ))
117   PORT_DIPNAME( 0x10, 0x00, "S21")
118   PORT_DIPSETTING(    0x00, DEF_STR( Off ))
119   PORT_DIPSETTING(    0x10, DEF_STR( On ))
120   PORT_DIPNAME( 0x20, 0x00, "S22")
121   PORT_DIPSETTING(    0x00, DEF_STR( Off ))
122   PORT_DIPSETTING(    0x20, DEF_STR( On ))
123   PORT_DIPNAME( 0x40, 0x00, "S23")
124   PORT_DIPSETTING(    0x00, DEF_STR( Off ))
125   PORT_DIPSETTING(    0x40, DEF_STR( On ))
126   PORT_DIPNAME( 0x80, 0x00, "S24")
127   PORT_DIPSETTING(    0x00, DEF_STR( Off ))
128   PORT_DIPSETTING(    0x80, DEF_STR( On ))
131129
132130   PORT_START("DSW3")
133   PORT_DIPNAME( 0x07, 0x00, "Max number of credits")
134   PORT_DIPSETTING(    0x07, "5" )
135   PORT_DIPSETTING(    0x06, "10")
136   PORT_DIPSETTING(    0x05, "15")
137   PORT_DIPSETTING(    0x04, "20")
138   PORT_DIPSETTING(    0x03, "25")
139   PORT_DIPSETTING(    0x02, "30")
140   PORT_DIPSETTING(    0x01, "35")
141   PORT_DIPSETTING(    0x00, "40")
142   PORT_DIPNAME( 0x08, 0x00, "Balls")
143   PORT_DIPSETTING(    0x00, "5")
144   PORT_DIPSETTING(    0x08, "3")
145   PORT_DIPNAME( 0x10, 0x00, "Award")
146   PORT_DIPSETTING(    0x00, "Replay")
147   PORT_DIPSETTING(    0x10, "Extra Ball")
148   PORT_DIPNAME( 0x20, 0x00, "Match")
149   PORT_DIPSETTING(    0x00, DEF_STR( On ))
150   PORT_DIPSETTING(    0x20, DEF_STR( Off ))
151   PORT_DIPNAME( 0xC0, 0x40, "Credits for exceeding high score")
152   PORT_DIPSETTING(    0xC0, "0")
153   PORT_DIPSETTING(    0x80, "1")
154   PORT_DIPSETTING(    0x40, "2")
131   PORT_DIPNAME( 0x07, 0x07, "Max number of credits")
132   PORT_DIPSETTING(    0x00, "5" )
133   PORT_DIPSETTING(    0x01, "10")
134   PORT_DIPSETTING(    0x02, "15")
135   PORT_DIPSETTING(    0x03, "20")
136   PORT_DIPSETTING(    0x04, "25")
137   PORT_DIPSETTING(    0x05, "30")
138   PORT_DIPSETTING(    0x06, "35")
139   PORT_DIPSETTING(    0x07, "40")
140   PORT_DIPNAME( 0x08, 0x08, "Balls")
155141   PORT_DIPSETTING(    0x00, "3")
142   PORT_DIPSETTING(    0x08, "5")
143   PORT_DIPNAME( 0x10, 0x10, "Award")
144   PORT_DIPSETTING(    0x00, "Extra Ball")
145   PORT_DIPSETTING(    0x10, "Replay")
146   PORT_DIPNAME( 0x20, 0x20, "Match")
147   PORT_DIPSETTING(    0x00, DEF_STR( Off ))
148   PORT_DIPSETTING(    0x20, DEF_STR( On ))
149   PORT_DIPNAME( 0xC0, 0x80, "Credits for exceeding high score")
150   PORT_DIPSETTING(    0x00, "0")
151   PORT_DIPSETTING(    0x40, "1")
152   PORT_DIPSETTING(    0x80, "2")
153   PORT_DIPSETTING(    0xC0, "3")
156154
157155   PORT_START("X7")
158   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_SERVICE2 ) PORT_NAME("Accounting Reset")
159   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START1 )
160   PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_TILT1 ) PORT_NAME("Slam Tilt")
161   PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNUSED )
162   PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_COIN2 )
163   PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_COIN3 )
164   PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_COIN1 )
165   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_TILT )
156   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SERVICE2 ) PORT_NAME("Accounting Reset")
157   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START1 )
158   PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_TILT1 ) PORT_NAME("Slam Tilt")
159   PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNUSED )
160   PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_COIN2 )
161   PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_COIN3 )
162   PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_COIN1 )
163   PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_TILT )
166164
167165   PORT_START("X8")
168   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_OTHER ) PORT_NAME("L and R Target") PORT_CODE(KEYCODE_A)
169   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_OTHER ) PORT_NAME("Spinner C") PORT_CODE(KEYCODE_S)
170   PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_OTHER ) PORT_NAME("Outhole") PORT_CODE(KEYCODE_X)
171   PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_OTHER ) PORT_NAME("Spinner B") PORT_CODE(KEYCODE_D)
172   PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_OTHER ) PORT_NAME("R. Slingshot") PORT_CODE(KEYCODE_F)
173   PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_OTHER ) PORT_NAME("Special when lit") PORT_CODE(KEYCODE_G)
174   PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_OTHER ) PORT_NAME("L. Slingshot") PORT_CODE(KEYCODE_H)
175   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_OTHER ) PORT_NAME("Extra when lit") PORT_CODE(KEYCODE_J)
166   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_OTHER ) PORT_NAME("L and R Target") PORT_CODE(KEYCODE_A)
167   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_OTHER ) PORT_NAME("Spinner C") PORT_CODE(KEYCODE_S)
168   PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_OTHER ) PORT_NAME("Outhole") PORT_CODE(KEYCODE_X)
169   PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_OTHER ) PORT_NAME("Spinner B") PORT_CODE(KEYCODE_D)
170   PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_OTHER ) PORT_NAME("R. Slingshot") PORT_CODE(KEYCODE_F)
171   PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_OTHER ) PORT_NAME("Special when lit") PORT_CODE(KEYCODE_G)
172   PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_OTHER ) PORT_NAME("L. Slingshot") PORT_CODE(KEYCODE_H)
173   PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_OTHER ) PORT_NAME("Extra when lit") PORT_CODE(KEYCODE_J)
176174
177175   PORT_START("X9")
178   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_OTHER ) PORT_NAME("R. Spinner") PORT_CODE(KEYCODE_K)
179   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_OTHER ) PORT_NAME("1000 and advance") PORT_CODE(KEYCODE_L)
180   PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNUSED )
181   PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_OTHER ) PORT_NAME("Advance and Change") PORT_CODE(KEYCODE_Z)
182   PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_OTHER ) PORT_NAME("L. Bumper") PORT_CODE(KEYCODE_C)
183   PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_OTHER ) PORT_NAME("R. Bumper") PORT_CODE(KEYCODE_V)
184   PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_OTHER ) PORT_NAME("L. Spinner") PORT_CODE(KEYCODE_B)
185   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_OTHER ) PORT_NAME("Spinner A") PORT_CODE(KEYCODE_N)
176   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_OTHER ) PORT_NAME("R. Spinner") PORT_CODE(KEYCODE_K)
177   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_OTHER ) PORT_NAME("1000 and advance") PORT_CODE(KEYCODE_L)
178   PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_UNUSED )
179   PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_OTHER ) PORT_NAME("Advance and Change") PORT_CODE(KEYCODE_Z)
180   PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_OTHER ) PORT_NAME("L. Bumper") PORT_CODE(KEYCODE_C)
181   PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_OTHER ) PORT_NAME("R. Bumper") PORT_CODE(KEYCODE_V)
182   PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_OTHER ) PORT_NAME("L. Spinner") PORT_CODE(KEYCODE_B)
183   PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_OTHER ) PORT_NAME("Spinner A") PORT_CODE(KEYCODE_N)
186184
187185   PORT_START("XA")
188   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_OTHER ) PORT_NAME("1000 Rollover") PORT_CODE(KEYCODE_M)
189   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SERVICE1 )
190   PORT_BIT( 0xfc, IP_ACTIVE_LOW, IPT_UNUSED )
186   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_OTHER ) PORT_NAME("1000 Rollover") PORT_CODE(KEYCODE_M)
187   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_SERVICE1 )
188   PORT_BIT( 0xfc, IP_ACTIVE_HIGH, IPT_UNUSED )
191189
192190   PORT_START("XB")
193   PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNUSED )
191   PORT_BIT( 0xff, IP_ACTIVE_HIGH, IPT_UNUSED )
194192INPUT_PORTS_END
195193
196194READ8_MEMBER( gp_1_state::portb_r )
r31381r31382
222220WRITE8_MEMBER( gp_1_state::porta_w )
223221{
224222   m_u14 = data >> 4;
223   /*if (m_u14 >= 8)*/ m_segment = data & 15;
225224   if ((data > 0x0f) && (data < 0x30))
226225   {
227      m_sol = data;
228      switch (m_sol)
226      switch (data)
229227      {
230228         case 0x10:
231229            break;
r31381r31382
265263            break;
266264      }
267265   }
266   static const UINT8 patterns[16] = { 0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7c,0x07,0x7f,0x67,0x58,0x4c,0x62,0x69,0x78,0x00 }; // 7448
267   if ((m_u14 >= 8) && (m_u14 <= 11))
268   {
269      output_set_digit_value(m_digit+(m_u14-8)*8, patterns[m_segment]);
270   }
268271}
269272
270273WRITE8_MEMBER( gp_1_state::portc_w )
271274{
272   if (BIT(data, 4))
273      m_digit = data & 7;
274   else
275      m_digit = 0xff;
275   output_set_value("led0", BIT(data, 3));
276
277   m_digit = data & 7;
278   static const UINT8 patterns[16] = { 0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7c,0x07,0x7f,0x67,0x58,0x4c,0x62,0x69,0x78,0x00 }; // 7448
279   if ((m_digit) && (m_u14 >= 8) && (m_u14 <= 11))
280   {
281      output_set_digit_value(m_digit+(m_u14-8)*8, patterns[m_segment]);
282   }
276283}
277284
278285void gp_1_state::machine_reset()
r31381r31382
281288   m_digit = 0xff;
282289}
283290
284DRIVER_INIT_MEMBER(gp_1_state,gp_1)
285{
286}
287
288291// zero-cross detection
289292TIMER_DEVICE_CALLBACK_MEMBER( gp_1_state::zero_timer )
290293{
r31381r31382
305308   MCFG_CPU_IO_MAP(gp_1_io)
306309   MCFG_CPU_CONFIG(daisy_chain)
307310
311   /* Video */
312   MCFG_DEFAULT_LAYOUT(layout_gp_1)
313
308314   /* Sound */
309315   MCFG_FRAGMENT_ADD( genpin_audio )
310316
r31381r31382
371377   ROM_LOAD( "startrip.u13", 0x0800, 0x0800, CRC(b941a1a8) SHA1(a43f8acadb3db3e2274162d5305e30006f912339))
372378ROM_END
373379
374GAME(1978, gp_110,   0,        gp_1,     gp_1,     gp_1_state,  gp_1,   ROT0, "Game Plan", "Model 110",    GAME_IS_BIOS_ROOT)
375GAME(1978, blvelvet, gp_110,   gp_1,     gp_1,     gp_1_state,  gp_1,   ROT0, "Game Plan", "Black Velvet", GAME_IS_SKELETON_MECHANICAL)
376GAME(1978, camlight, gp_110,   gp_1,     gp_1,     gp_1_state,  gp_1,   ROT0, "Game Plan", "Camel Lights", GAME_IS_SKELETON_MECHANICAL)
377GAME(1978, foxylady, gp_110,   gp_1,     gp_1,     gp_1_state,  gp_1,   ROT0, "Game Plan", "Foxy Lady",    GAME_IS_SKELETON_MECHANICAL)
378GAME(1978, real,     gp_110,   gp_1,     gp_1,     gp_1_state,  gp_1,   ROT0, "Game Plan", "Real",         GAME_IS_SKELETON_MECHANICAL)
379GAME(1978, rio,      gp_110,   gp_1,     gp_1,     gp_1_state,  gp_1,   ROT0, "Game Plan", "Rio",          GAME_IS_SKELETON_MECHANICAL)
380GAME(1978, chucklck, gp_110,   gp_1,     gp_1,     gp_1_state,  gp_1,   ROT0, "Game Plan", "Chuck-A-Luck", GAME_IS_SKELETON_MECHANICAL)
381GAME(1979, famlyfun, 0,        gp_1,     gp_1,     gp_1_state,  gp_1,   ROT0, "Game Plan", "Family Fun!",  GAME_IS_SKELETON_MECHANICAL)
382GAME(1979, startrip, 0,        gp_1,     gp_1,     gp_1_state,  gp_1,   ROT0, "Game Plan", "Star Trip",    GAME_IS_SKELETON_MECHANICAL)
380GAME(1978, gp_110,   0,        gp_1,     gp_1,     driver_device, 0,   ROT0, "Game Plan", "Model 110",    GAME_IS_BIOS_ROOT)
381GAME(1978, blvelvet, gp_110,   gp_1,     gp_1,     driver_device, 0,   ROT0, "Game Plan", "Black Velvet", GAME_IS_SKELETON_MECHANICAL)
382GAME(1978, camlight, gp_110,   gp_1,     gp_1,     driver_device, 0,   ROT0, "Game Plan", "Camel Lights", GAME_IS_SKELETON_MECHANICAL)
383GAME(1978, foxylady, gp_110,   gp_1,     gp_1,     driver_device, 0,   ROT0, "Game Plan", "Foxy Lady",    GAME_IS_SKELETON_MECHANICAL)
384GAME(1978, real,     gp_110,   gp_1,     gp_1,     driver_device, 0,   ROT0, "Game Plan", "Real",         GAME_IS_SKELETON_MECHANICAL)
385GAME(1978, rio,      gp_110,   gp_1,     gp_1,     driver_device, 0,   ROT0, "Game Plan", "Rio",          GAME_IS_SKELETON_MECHANICAL)
386GAME(1978, chucklck, gp_110,   gp_1,     gp_1,     driver_device, 0,   ROT0, "Game Plan", "Chuck-A-Luck", GAME_IS_SKELETON_MECHANICAL)
387GAME(1979, famlyfun, 0,        gp_1,     gp_1,     driver_device, 0,   ROT0, "Game Plan", "Family Fun!",  GAME_IS_SKELETON_MECHANICAL)
388GAME(1979, startrip, 0,        gp_1,     gp_1,     driver_device, 0,   ROT0, "Game Plan", "Star Trip",    GAME_IS_SKELETON_MECHANICAL)
trunk/src/mame/mame.mak
r31381r31382
26022602         $(LAYOUT)/novoplay.lh \
26032603         $(LAYOUT)/royalcrd.lh
26042604
2605$(DRIVERS)/g627.o:  $(LAYOUT)/g627.lh
2605$(DRIVERS)/g627.o:      $(LAYOUT)/g627.lh
2606$(DRIVERS)/gp_1.o:      $(LAYOUT)/gp_1.lh
26062607
26072608$(DRIVERS)/galaxi.o:    $(LAYOUT)/galaxi.lh
26082609
r31381r31382
26392640
26402641$(DRIVERS)/jpmimpct.o:  $(LAYOUT)/jpmimpct.lh
26412642
2642$(DRIVERS)/jpmmps.o:   $(LAYOUT)/jpmmps.lh
2643$(DRIVERS)/jpmmps.o:    $(LAYOUT)/jpmmps.lh
26432644
26442645$(DRIVERS)/jpmsys5.o:   $(LAYOUT)/jpmsys5.lh
26452646
r31381r31382
26742675
26752676$(DRIVERS)/mpoker.o:    $(LAYOUT)/mpoker.lh
26762677
2677$(DRIVERS)/mpu3.o:  $(LAYOUT)/mpu3.lh
2678$(DRIVERS)/mpu3.o:      $(LAYOUT)/mpu3.lh
26782679
26792680$(DRIVERS)/mpu4mod2sw.o:    $(LAYOUT)/connect4.lh \
26802681
r31381r31382
27332734$(DRIVERS)/norautp.o:   $(LAYOUT)/noraut11.lh \
27342735         $(LAYOUT)/noraut12.lh
27352736
2736$(DRIVERS)/nsm.o:   $(LAYOUT)/nsm.lh
2737$(DRIVERS)/nsm.o:       $(LAYOUT)/nsm.lh
27372738
27382739$(DRIVERS)/omegrace.o:  $(LAYOUT)/omegrace.lh
27392740
r31381r31382
27612762
27622763$(DRIVERS)/rowamet.o:   $(LAYOUT)/rowamet.lh
27632764
2764$(DRIVERS)/s3.o:    $(LAYOUT)/s3.lh
2765$(DRIVERS)/s3.o:        $(LAYOUT)/s3.lh
27652766
2766$(DRIVERS)/s4.o:    $(LAYOUT)/s4.lh
2767$(DRIVERS)/s4.o:        $(LAYOUT)/s4.lh
27672768
2768$(DRIVERS)/s6.o:    $(LAYOUT)/s6.lh
2769$(DRIVERS)/s6.o:        $(LAYOUT)/s6.lh
27692770
2770$(DRIVERS)/s6a.o:   $(LAYOUT)/s6a.lh
2771$(DRIVERS)/s6a.o:       $(LAYOUT)/s6a.lh
27712772
2772$(DRIVERS)/s7.o:    $(LAYOUT)/s7.lh
2773$(DRIVERS)/s7.o:        $(LAYOUT)/s7.lh
27732774
2774$(DRIVERS)/s8.o:    $(LAYOUT)/s8.lh
2775$(DRIVERS)/s8.o:        $(LAYOUT)/s8.lh
27752776
2776$(DRIVERS)/s9.o:    $(LAYOUT)/s9.lh
2777$(DRIVERS)/s9.o:        $(LAYOUT)/s9.lh
27772778
2778$(DRIVERS)/s11.o:   $(LAYOUT)/s11.lh
2779$(DRIVERS)/s11a.o:  $(LAYOUT)/s11a.lh
2780$(DRIVERS)/s11b.o:  $(LAYOUT)/s11b.lh
2781$(DRIVERS)/s11c.o:  $(LAYOUT)/s11c.lh
2779$(DRIVERS)/s11.o:       $(LAYOUT)/s11.lh
2780$(DRIVERS)/s11a.o:      $(LAYOUT)/s11a.lh
2781$(DRIVERS)/s11b.o:      $(LAYOUT)/s11b.lh
2782$(DRIVERS)/s11c.o:      $(LAYOUT)/s11c.lh
27822783
27832784$(DRIVERS)/sanremo.o:   $(LAYOUT)/sanremo.lh
27842785
r31381r31382
28512852
28522853$(DRIVERS)/topspeed.o:  $(LAYOUT)/topspeed.lh
28532854
2854$(DRIVERS)/turbo.o: $(LAYOUT)/turbo.lh \
2855$(DRIVERS)/turbo.o:     $(LAYOUT)/turbo.lh \
28552856         $(LAYOUT)/subroc3d.lh \
28562857         $(LAYOUT)/buckrog.lh
28572858
2858$(DRIVERS)/tx1.o:   $(LAYOUT)/buggybjr.lh \
2859$(DRIVERS)/tx1.o:       $(LAYOUT)/buggybjr.lh \
28592860         $(LAYOUT)/buggyboy.lh \
28602861         $(LAYOUT)/tx1.lh
28612862
r31381r31382
28632864
28642865$(DRIVERS)/undrfire.o:  $(LAYOUT)/cbombers.lh
28652866
2866$(DRIVERS)/vd.o:    $(LAYOUT)/vd.lh
2867$(DRIVERS)/vd.o:        $(LAYOUT)/vd.lh
28672868
28682869$(DRIVERS)/vicdual.o:   $(LAYOUT)/depthch.lh
28692870
r31381r31382
28832884
28842885$(DRIVERS)/wecleman.o:  $(LAYOUT)/wecleman.lh
28852886
2886$(DRIVERS)/wico.o:  $(LAYOUT)/wico.lh
2887$(DRIVERS)/wico.o:      $(LAYOUT)/wico.lh
28872888
28882889$(DRIVERS)/zac2650.o:   $(LAYOUT)/tinv2650.lh
28892890
2890$(DRIVERS)/zac_1.o: $(LAYOUT)/zac_1.lh
2891$(DRIVERS)/zac_1.o:     $(LAYOUT)/zac_1.lh
28912892
2892$(DRIVERS)/zac_2.o: $(LAYOUT)/zac_2.lh
2893$(DRIVERS)/zac_2.o:     $(LAYOUT)/zac_2.lh
28932894
28942895$(DRIVERS)/zac_proto.o: $(LAYOUT)/zac_proto.lh
28952896

Previous 199869 Revisions Next


© 1997-2024 The MAME Team