Previous 199869 Revisions Next

r36283 Friday 6th March, 2015 at 05:30:48 UTC by Vasantha Crabb
Lamps/layout for crazybon
[src/mame]mame.mak
[src/mame/drivers]goldstar.c
[src/mame/includes]goldstar.h
[src/mame/layout]crazybon.lay*

trunk/src/mame/drivers/goldstar.c
r244794r244795
121121#include "goldstar.lh"
122122#include "cherryb3.lh"
123123#include "lucky8.lh"
124#include "crazybon.lh"
124125#include "bingowng.lh"
125126
126127
r244794r244795
642643ADDRESS_MAP_END
643644
644645
646WRITE8_MEMBER(goldstar_state::pkrmast_lamps_w)
647{
648/*  bits
649  7654 3210
650  ---- --x-  Start
651  ---- x---  Bet
652  ---x ----  Stop All / Take Score
653  --x- ----  Double Up
654  -x-- ----  Small / Info
655  x--- ----  Big
656  ---- -x-x  Unused in Crazy Bonus
657*/
658
659   output_set_lamp_value(0, (data >> 1) & 1);  /* Start */
660   output_set_lamp_value(1, (data >> 3) & 1);  /* Bet */
661   output_set_lamp_value(2, (data >> 4) & 1);  /* Stop All / Take Score */
662   output_set_lamp_value(3, (data >> 5) & 1);  /* Double Up */
663   output_set_lamp_value(4, (data >> 6) & 1);  /* Small / Info */
664   output_set_lamp_value(5, (data >> 7) & 1);  /* Big */
665
666   if (data & 0x05)
667      popmessage("lamps: %02X", data);
668}
669
645670static ADDRESS_MAP_START( pkrmast_portmap, AS_IO, 8, goldstar_state )
646671   ADDRESS_MAP_GLOBAL_MASK(0xff)
647672
r244794r244795
655680
656681   AM_RANGE(0x20, 0x20) AM_READ_PORT("DSW3-0")
657682   AM_RANGE(0x21, 0x21) AM_READ_PORT("DSW3-1")
683   AM_RANGE(0x22, 0x22) AM_WRITE(pkrmast_lamps_w)
658684
659685   AM_RANGE(0x25, 0x25) AM_READ_PORT("DSW1")
660686   AM_RANGE(0x26, 0x26) AM_READ_PORT("DSW2")
r244794r244795
1403014056GAME(  2001, super9,    goldstar, super9,   goldstar, goldstar_state, super9,    ROT0, "Playmark",          "Super Nove (Playmark)",                       GAME_NOT_WORKING )   // need to decode gfx and see the program loops/reset...
1403114057GAME(  2001, wcherry,   0,        wcherry,  chrygld,  goldstar_state, wcherry,   ROT0, "bootleg",           "Win Cherry (ver 0.16 - 19990219)",            GAME_NOT_WORKING )
1403214058GAME(  199?, star100,   0,        star100,  star100,  driver_device,  0,         ROT0, "Sang Ho",           "Ming Xing 100 (Star 100)",                    GAME_IMPERFECT_COLORS )
14033GAME( 1997, crazybon,  0,        pkrmast,  crazybon, goldstar_state, cmv4,      ROT0, "bootleg (Crazy Co.)", "Crazy Bonus 2002",                          GAME_IMPERFECT_COLORS )
14059GAMEL( 1997, crazybon,  0,        pkrmast,  crazybon, goldstar_state, cmv4,      ROT0, "bootleg (Crazy Co.)", "Crazy Bonus 2002",                          GAME_IMPERFECT_COLORS, layout_crazybon )
1403414060
1403514061
1403614062// are these really dyna, or bootlegs?
trunk/src/mame/includes/goldstar.h
r244794r244795
6565   DECLARE_WRITE8_MEMBER(goldstar_lamps_w);
6666   DECLARE_WRITE8_MEMBER(cb3_lamps_w);
6767   DECLARE_WRITE8_MEMBER(cm_outport1_w);
68   DECLARE_WRITE8_MEMBER(pkrmast_lamps_w);
6869   DECLARE_WRITE8_MEMBER(lucky8_outport_w);
6970   DECLARE_WRITE8_MEMBER(magodds_outb850_w);
7071   DECLARE_WRITE8_MEMBER(magodds_outb860_w);
trunk/src/mame/layout/crazybon.lay
r0r244795
1<?xml version="1.0"?>
2<mamelayout version="2">
3<!--
4      Crazy Bonus 2002 control panel
5      May or may not match arrangement/colour of real control panel
6      Written by Vas Crabb.
7-->
8
9<!-- define button-lamps -->
10
11   <element name="stop" defstate="0">
12      <rect state="1">
13         <color red="1.0" green="0.0" blue="0.0" />
14      </rect>
15      <rect state="0">
16         <color red="0.15" green="0.0" blue="0.0" />
17      </rect>
18      <text string="STOP">
19         <color red="0.0" green="0.0" blue="0.0" />
20         <bounds x="0" y="0.1" width="1" height="0.4" />
21      </text>
22      <text string="TAKE">
23         <color red="0.0" green="0.0" blue="0.0" />
24         <bounds x="0" y="0.5" width="1" height="0.4" />
25      </text>
26   </element>
27
28   <element name="big" defstate="0">
29      <rect state="1">
30         <color red="1.0" green="0.0" blue="0.0" />
31      </rect>
32      <rect state="0">
33         <color red="0.15" green="0.0" blue="0.0" />
34      </rect>
35      <text string="BIG">
36         <color red="0.0" green="0.0" blue="0.0" />
37         <bounds x="0" y="0.3" width="1" height="0.4" />
38      </text>
39   </element>
40
41   <element name="small" defstate="0">
42      <rect state="1">
43         <color red="1.0" green="0.0" blue="0.0" />
44      </rect>
45      <rect state="0">
46         <color red="0.15" green="0.0" blue="0.0" />
47      </rect>
48      <text string="SMALL">
49         <color red="0.0" green="0.0" blue="0.0" />
50         <bounds x="0" y="0.1" width="1" height="0.4" />
51      </text>
52      <text string="INFO">
53         <color red="0.0" green="0.0" blue="0.0" />
54         <bounds x="0" y="0.5" width="1" height="0.4" />
55      </text>
56   </element>
57
58   <element name="dup" defstate="0">
59      <rect state="1">
60         <color red="1.0" green="0.5" blue="0.0" />
61      </rect>
62      <rect state="0">
63         <color red="0.15" green="0.075" blue="0.0" />
64      </rect>
65      <text string="DOUBLE">
66         <color red="0.0" green="0.0" blue="0.0" />
67         <bounds x="0" y="0.3" width="1" height="0.4" />
68      </text>
69   </element>
70
71   <element name="start" defstate="0">
72      <rect state="1">
73         <color red="0.0" green="1.0" blue="0.0" />
74      </rect>
75      <rect state="0">
76         <color red="0.0" green="0.15" blue="0.0" />
77      </rect>
78      <text string="START">
79         <color red="0.0" green="0.0" blue="0.0" />
80         <bounds x="0" y="0.3" width="1" height="0.4" />
81      </text>
82   </element>
83
84   <element name="bet" defstate="0">
85      <rect state="1">
86         <color red="1.0" green="0.0" blue="1.0" />
87      </rect>
88      <rect state="0">
89         <color red="0.15" green="0.0" blue="0.15" />
90      </rect>
91      <text string="BET">
92         <color red="0.0" green="0.0" blue="0.0" />
93         <bounds x="0" y="0.3" width="1" height="0.4" />
94      </text>
95   </element>
96
97
98<!-- define basic elements -->
99
100   <element name="cpanel">
101      <rect>
102         <color red="0.0" green="0.0" blue="0.0" />
103      </rect>
104   </element>
105
106   <element name="stop_b" defstate="0">
107      <rect state="1">
108         <color red="0.7" green="0.0" blue="0.0" />
109      </rect>
110      <rect state="0">
111         <color red="0.1" green="0.0" blue="0.0" />
112      </rect>
113   </element>
114
115   <element name="bet_b" defstate="0">
116      <rect state="1">
117         <color red="0.7" green="0.0" blue="0.7" />
118      </rect>
119      <rect state="0">
120         <color red="0.1" green="0.0" blue="0.1" />
121      </rect>
122   </element>
123
124   <element name="dup_b" defstate="0">
125      <rect state="1">
126         <color red="0.7" green="0.35" blue="0.0" />
127      </rect>
128      <rect state="0">
129         <color red="0.1" green="0.05" blue="0.0" />
130      </rect>
131   </element>
132
133   <element name="start_b" defstate="0">
134      <rect state="1">
135         <color red="0.0" green="0.7" blue="0.0" />
136      </rect>
137      <rect state="0">
138         <color red="0.0" green="0.1" blue="0.0" />
139      </rect>
140   </element>
141
142
143
144<!-- define cpanel degradee elements -->
145
146
147   <element name="cpanel1">
148      <rect>
149         <color red="0.20" green="0.20" blue="0.20" />
150      </rect>
151   </element>
152
153   <element name="cpanel2">
154      <rect>
155         <color red="0.15" green="0.15" blue="0.15" />
156      </rect>
157   </element>
158
159   <element name="cpanel3">
160      <rect>
161         <color red="0.10" green="0.10" blue="0.10" />
162      </rect>
163   </element>
164
165   <element name="cpanel4">
166      <rect>
167         <color red="0.05" green="0.05" blue="0.05" />
168      </rect>
169   </element>
170
171
172<!-- define background -->
173
174   <view name="Button Lamps">
175      <screen index="0">
176         <bounds left="0" top="0" right="4" bottom="3" />
177      </screen>
178
179      <bezel element="cpanel">
180         <bounds left="0" right="4" top="3" bottom="3.40" />
181      </bezel>
182
183      <bezel element="cpanel1">
184         <bounds left="0" right="4" top="3.01" bottom="3.39" />
185      </bezel>
186
187      <bezel element="cpanel2">
188         <bounds left="0" right="4" top="3.02" bottom="3.38" />
189      </bezel>
190
191      <bezel element="cpanel3">
192         <bounds left="0" right="4" top="3.03" bottom="3.37" />
193      </bezel>
194
195      <bezel element="cpanel4">
196         <bounds left="0" right="4" top="3.04" bottom="3.36" />
197      </bezel>
198
199      <bezel element="cpanel">
200         <bounds left="0" right="4" top="3.05" bottom="3.35" />
201      </bezel>
202
203
204<!-- define lamps -->
205
206      <bezel name="lamp0" element="start_b">
207         <bounds x="3.45" y="3.08" width="0.50" height="0.24" />
208      </bezel>
209      <bezel name="lamp0" element="start">
210         <bounds x="3.47" y="3.10" width="0.46" height="0.20" />
211      </bezel>
212
213
214      <bezel name="lamp1" element="bet_b">
215         <bounds x="0.05" y="3.08" width="0.40" height="0.24" />
216      </bezel>
217      <bezel name="lamp1" element="bet">
218         <bounds x="0.07" y="3.10" width="0.36" height="0.20" />
219      </bezel>
220
221
222      <bezel name="lamp2" element="stop_b">
223         <bounds x="1.4" y="3.08" width="0.50" height="0.24" />
224      </bezel>
225      <bezel name="lamp2" element="stop">
226         <bounds x="1.42" y="3.10" width="0.46" height="0.20" />
227      </bezel>
228
229
230      <bezel name="lamp3" element="dup_b">
231         <bounds x="0.65" y="3.08" width="0.50" height="0.24" />
232      </bezel>
233      <bezel name="lamp3" element="dup">
234         <bounds x="0.67" y="3.10" width="0.46" height="0.20" />
235      </bezel>
236
237
238      <bezel name="lamp4" element="stop_b">
239         <bounds x="2.7" y="3.08" width="0.50" height="0.24" />
240      </bezel>
241      <bezel name="lamp4" element="small">
242         <bounds x="2.72" y="3.10" width="0.46" height="0.20" />
243      </bezel>
244
245
246      <bezel name="lamp5" element="stop_b">
247         <bounds x="2.05" y="3.08" width="0.50" height="0.24" />
248      </bezel>
249      <bezel name="lamp5" element="big">
250         <bounds x="2.07" y="3.10" width="0.46" height="0.20" />
251      </bezel>
252
253   </view>
254</mamelayout>
trunk/src/mame/mame.mak
r244794r244795
26742674$(DRIVERS)/goldstar.o:  $(LAYOUT)/goldstar.lh \
26752675         $(LAYOUT)/cherryb3.lh \
26762676         $(LAYOUT)/lucky8.lh \
2677         $(LAYOUT)/crazybon.lh \
26772678         $(LAYOUT)/bingowng.lh
26782679
26792680$(DRIVERS)/grchamp.o:   $(LAYOUT)/grchamp.lh


Previous 199869 Revisions Next


© 1997-2024 The MAME Team