Previous 15994 Revisions Next

r9097 Sunday 12th September, 2010 at 06:27:02 UTC by Miodrag Milanović
Novag SuperConstellation Chess Computer [Ralf Schaefer]
[artwork]supercon.zip*
[docs]messnew.txt
[src/mess]mess.mak messdriv.c
[src/mess/drivers]supercon.c*
[src/mess/layout]supercon.lay*

src/mess/messdriv.c
r9096r9097
15171517
15181518   /* Novag */
15191519   DRIVER( ssystem3 )  /* Chess Champion Super System III / MK III  */
1520   DRIVER( supercon )
15201521
15211522   /* Hegener & Glaser Munich */
15221523//  DRIVER( mephisto )  /* Mephisto  */
src/mess/layout/supercon.lay
r0r9097
1<?xml version="1.0"?>
2<mamelayout version="2">
3
4   <element name="supercon">
5      <image file="supercon_4.png" />
6   </element>
7
8   <element name="clr">
9      <image file="clr.png" />
10   </element>
11
12
13   <element name="piece" defstate="0">
14      <image file="BP.png" state="1"/>
15      <image file="BKN.png" state="2"/>
16      <image file="BB.png" state="3"/>
17      <image file="BR.png" state="4"/>
18      <image file="BQ.png" state="5"/>
19      <image file="BK.png" state="6"/>
20      <image file="WP.png" state="7"/>
21      <image file="WKN.png" state="8"/>
22      <image file="WB.png" state="9"/>
23      <image file="WR.png" state="10"/>
24      <image file="WQ.png" state="11"/>
25      <image file="WK.png" state="12"/>
26   </element>
27
28
29   <element name="led" defstate="0">
30      <disk state="1">
31         <color red="0.75" green="0.0" blue="0.0" />
32      </disk>
33      <disk state="0">
34         <color red="0.09375" green="0.0" blue="0.0" />
35      </disk>
36   </element>
37
38   <element name="led_g" defstate="0">
39      <disk state="1">
40         <color red="0.0" green="0.75" blue="0.0" />
41      </disk>
42      <disk state="0">
43         <color red="0.0" green="0.09375" blue="0.0" />
44      </disk>
45
46   </element>
47
48   <element name="background">
49      <rect>
50         <bounds left="0" top="0" right="1" bottom="1" />
51         <color red="1.0" green="1.0" blue="1.0" />
52      </rect>
53   </element>
54
55   <backdrop element="supercon">
56      <bounds x="0" y="0" width="650" height="500" />
57   </backdrop>
58
59
60   <element name="button" defstate="0">
61 
62   </element>
63
64   <element name="button_border_pieces" defstate="0">
65       <rect state="1">
66               <color red="1.0" green="1.0" blue="1.0"/>
67      </rect>
68   </element>
69
70   <view name="Full artwork">
71
72      <bezel element="background">
73         <bounds left="0" top="525" right="650" bottom="560" />
74      </bezel>
75
76      <backdrop element="supercon">
77         <bounds x="0" y="0" width="650" height="525" />
78      </backdrop>
79
80
81<!-- Pieces -->
82      <bezel name="P0" element="piece"><bounds x="66" y="33" width="40" height="45" /></bezel>
83      <bezel name="P1" element="piece"><bounds x="120" y="33" width="40" height="45" /></bezel>
84      <bezel name="P2" element="piece"><bounds x="173" y="33" width="40" height="45" /></bezel>
85      <bezel name="P3" element="piece"><bounds x="226" y="33" width="40" height="45" /></bezel>
86      <bezel name="P4" element="piece"><bounds x="281" y="33" width="40" height="45" /></bezel>
87      <bezel name="P5" element="piece"><bounds x="332" y="33" width="40" height="45" /></bezel>
88      <bezel name="P6" element="piece"><bounds x="387" y="33" width="40" height="45" /></bezel>
89      <bezel name="P7" element="piece"><bounds x="441" y="33" width="40" height="45" /></bezel>
90
91      <bezel name="P8" element="piece"><bounds x="66" y="86" width="40" height="45" /></bezel>
92      <bezel name="P9" element="piece"><bounds x="120" y="86" width="40" height="45" /></bezel>
93      <bezel name="P10" element="piece"><bounds x="173" y="86" width="40" height="45" /></bezel>
94      <bezel name="P11" element="piece"><bounds x="226" y="86" width="40" height="45" /></bezel>
95      <bezel name="P12" element="piece"><bounds x="281" y="86" width="40" height="45" /></bezel>
96      <bezel name="P13" element="piece"><bounds x="332" y="86" width="40" height="45" /></bezel>
97      <bezel name="P14" element="piece"><bounds x="387" y="86" width="40" height="45" /></bezel>
98      <bezel name="P15" element="piece"><bounds x="441" y="86" width="40" height="45" /></bezel>
99
100      <bezel name="P16" element="piece"><bounds x="66" y="139" width="40" height="45" /></bezel>
101      <bezel name="P17" element="piece"><bounds x="120" y="139" width="40" height="45" /></bezel>
102      <bezel name="P18" element="piece"><bounds x="173" y="139" width="40" height="45" /></bezel>
103      <bezel name="P19" element="piece"><bounds x="226" y="139" width="40" height="45" /></bezel>
104      <bezel name="P20" element="piece"><bounds x="281" y="139" width="40" height="45" /></bezel>
105      <bezel name="P21" element="piece"><bounds x="332" y="139" width="40" height="45" /></bezel>
106      <bezel name="P22" element="piece"><bounds x="387" y="139" width="40" height="45" /></bezel>
107      <bezel name="P23" element="piece"><bounds x="441" y="139" width="40" height="45" /></bezel>
108
109      <bezel name="P24" element="piece"><bounds x="66" y="192" width="40" height="45" /></bezel>
110      <bezel name="P25" element="piece"><bounds x="120" y="192" width="40" height="45" /></bezel>
111      <bezel name="P26" element="piece"><bounds x="173" y="192" width="40" height="45" /></bezel>
112      <bezel name="P27" element="piece"><bounds x="226" y="192" width="40" height="45" /></bezel>
113      <bezel name="P28" element="piece"><bounds x="281" y="192" width="40" height="45" /></bezel>
114      <bezel name="P29" element="piece"><bounds x="332" y="192" width="40" height="45" /></bezel>
115      <bezel name="P30" element="piece"><bounds x="387" y="192" width="40" height="45" /></bezel>
116      <bezel name="P31" element="piece"><bounds x="441" y="192" width="40" height="45" /></bezel>
117
118      <bezel name="P32" element="piece"><bounds x="66" y="247" width="40" height="45" /></bezel>
119      <bezel name="P33" element="piece"><bounds x="120" y="247" width="40" height="45" /></bezel>
120      <bezel name="P34" element="piece"><bounds x="173" y="247" width="40" height="45" /></bezel>
121      <bezel name="P35" element="piece"><bounds x="226" y="247" width="40" height="45" /></bezel>
122      <bezel name="P36" element="piece"><bounds x="281" y="247" width="40" height="45" /></bezel>
123      <bezel name="P37" element="piece"><bounds x="332" y="247" width="40" height="45" /></bezel>
124      <bezel name="P38" element="piece"><bounds x="387" y="247" width="40" height="45" /></bezel>
125      <bezel name="P39" element="piece"><bounds x="441" y="247" width="40" height="45" /></bezel>
126
127      <bezel name="P40" element="piece"><bounds x="66" y="300" width="40" height="45" /></bezel>
128      <bezel name="P41" element="piece"><bounds x="120" y="300" width="40" height="45" /></bezel>
129      <bezel name="P42" element="piece"><bounds x="173" y="300" width="40" height="45" /></bezel>
130      <bezel name="P43" element="piece"><bounds x="226" y="300" width="40" height="45" /></bezel>
131      <bezel name="P44" element="piece"><bounds x="281" y="300" width="40" height="45" /></bezel>
132      <bezel name="P45" element="piece"><bounds x="332" y="300" width="40" height="45" /></bezel>
133      <bezel name="P46" element="piece"><bounds x="387" y="300" width="40" height="45" /></bezel>
134      <bezel name="P47" element="piece"><bounds x="441" y="300" width="40" height="45" /></bezel>
135
136      <bezel name="P48" element="piece"><bounds x="66" y="353" width="40" height="45" /></bezel>
137      <bezel name="P49" element="piece"><bounds x="120" y="353" width="40" height="45" /></bezel>
138      <bezel name="P50" element="piece"><bounds x="173" y="353" width="40" height="45" /></bezel>
139      <bezel name="P51" element="piece"><bounds x="226" y="353" width="40" height="45" /></bezel>
140      <bezel name="P52" element="piece"><bounds x="281" y="353" width="40" height="45" /></bezel>
141      <bezel name="P53" element="piece"><bounds x="332" y="353" width="40" height="45" /></bezel>
142      <bezel name="P54" element="piece"><bounds x="387" y="353" width="40" height="45" /></bezel>
143      <bezel name="P55" element="piece"><bounds x="441" y="353" width="40" height="45" /></bezel>
144
145      <bezel name="P56" element="piece"><bounds x="66" y="406" width="40" height="45" /></bezel>
146      <bezel name="P57" element="piece"><bounds x="120" y="406" width="40" height="45" /></bezel>
147      <bezel name="P58" element="piece"><bounds x="173" y="406" width="40" height="45" /></bezel>
148      <bezel name="P59" element="piece"><bounds x="226" y="406" width="40" height="45" /></bezel>
149      <bezel name="P60" element="piece"><bounds x="281" y="406" width="40" height="45" /></bezel>
150      <bezel name="P61" element="piece"><bounds x="332" y="406" width="40" height="45" /></bezel>
151      <bezel name="P62" element="piece"><bounds x="387" y="406" width="40" height="45" /></bezel>
152      <bezel name="P63" element="piece"><bounds x="441" y="406" width="40" height="45" /></bezel>
153
154
155<!-- Board and Status LED's -->
156
157      <bezel name="led1" element="led">
158         <bounds x="42" y="52" width="10" height="10" />
159      </bezel>
160
161      <bezel name="led2" element="led">
162         <bounds x="42" y="105" width="10" height="10" />
163      </bezel>
164
165      <bezel name="led3" element="led">
166         <bounds x="42" y="158" width="10" height="10" />
167      </bezel>
168
169      <bezel name="led4" element="led">
170         <bounds x="42" y="211" width="10" height="10" />
171      </bezel>
172
173      <bezel name="led5" element="led">
174         <bounds x="42" y="265" width="10" height="10" />
175      </bezel>
176
177      <bezel name="led6" element="led">
178         <bounds x="42" y="318" width="10" height="10" />
179      </bezel>
180
181      <bezel name="led7" element="led">
182         <bounds x="42" y="371" width="10" height="10" />
183      </bezel>
184
185      <bezel name="led8" element="led">
186         <bounds x="42" y="424" width="10" height="10" />
187      </bezel>
188
189
190      <bezel name="led9" element="led">
191         <bounds x="81" y="464" width="10" height="10" />
192      </bezel>
193
194      <bezel name="led10" element="led">
195         <bounds x="136" y="464" width="10" height="10" />
196      </bezel>
197
198      <bezel name="led11" element="led">
199         <bounds x="189" y="464" width="10" height="10" />
200      </bezel>
201
202      <bezel name="led12" element="led">
203         <bounds x="242" y="464" width="10" height="10" />
204      </bezel>
205
206      <bezel name="led13" element="led">
207         <bounds x="296" y="464" width="10" height="10" />
208      </bezel>
209   
210      <bezel name="led14" element="led">
211         <bounds x="349" y="464" width="10" height="10" />
212      </bezel>   
213
214      <bezel name="led15" element="led">
215         <bounds x="402" y="464" width="10" height="10" />
216      </bezel>
217   
218      <bezel name="led16" element="led">
219         <bounds x="455" y="464" width="10" height="10" />
220      </bezel>
221
222
223
224      <bezel name="led17" element="led_g">
225         <bounds x="607" y="52" width="10" height="10" />
226      </bezel>
227
228      <bezel name="led18" element="led_g">
229         <bounds x="606" y="105" width="10" height="10" />
230      </bezel>
231
232      <bezel name="led19" element="led_g">
233         <bounds x="606" y="158" width="10" height="10" />
234      </bezel>
235
236      <bezel name="led20" element="led_g">
237         <bounds x="606" y="211" width="10" height="10" />
238      </bezel>
239
240      <bezel name="led21" element="led_g">
241         <bounds x="606" y="265" width="10" height="10" />
242      </bezel>
243
244      <bezel name="led22" element="led_g">
245         <bounds x="606" y="318" width="10" height="10" />
246      </bezel>
247
248      <bezel name="led23" element="led_g">
249         <bounds x="606" y="371" width="10" height="10" />
250      </bezel>
251
252      <bezel name="led24" element="led_g">
253         <bounds x="606" y="424" width="10" height="10" />
254      </bezel>
255
256
257
258<!-- 64 board positions -->
259
260   <bezel element="button" inputtag="BOARD_8" inputmask="0x80"><bounds x="61"  y="404" width="52" height="52" /></bezel>
261   <bezel element="button" inputtag="BOARD_8" inputmask="0x40"><bounds x="115" y="404" width="52" height="52" /></bezel>
262   <bezel element="button" inputtag="BOARD_8" inputmask="0x20"><bounds x="169" y="404" width="52" height="52" /></bezel>
263   <bezel element="button" inputtag="BOARD_8" inputmask="0x10"><bounds x="222" y="404" width="52" height="52" /></bezel>
264   <bezel element="button" inputtag="BOARD_8" inputmask="0x08"><bounds x="275" y="404" width="52" height="52" /></bezel>
265   <bezel element="button" inputtag="BOARD_8" inputmask="0x04"><bounds x="329" y="404" width="52" height="52" /></bezel>
266   <bezel element="button" inputtag="BOARD_8" inputmask="0x02"><bounds x="382" y="404" width="52" height="52" /></bezel>
267   <bezel element="button" inputtag="BOARD_8" inputmask="0x01"><bounds x="436" y="404" width="52" height="52" /></bezel>
268
269   <bezel element="button" inputtag="BOARD_7" inputmask="0x80"><bounds x="61"  y="350" width="52" height="52" /></bezel>
270   <bezel element="button" inputtag="BOARD_7" inputmask="0x40"><bounds x="115" y="350" width="52" height="52" /></bezel>
271   <bezel element="button" inputtag="BOARD_7" inputmask="0x20"><bounds x="169" y="350" width="52" height="52" /></bezel>
272   <bezel element="button" inputtag="BOARD_7" inputmask="0x10"><bounds x="222" y="350" width="52" height="52" /></bezel>
273   <bezel element="button" inputtag="BOARD_7" inputmask="0x08"><bounds x="275" y="350" width="52" height="52" /></bezel>
274   <bezel element="button" inputtag="BOARD_7" inputmask="0x04"><bounds x="329" y="350" width="52" height="52" /></bezel>
275   <bezel element="button" inputtag="BOARD_7" inputmask="0x02"><bounds x="382" y="350" width="52" height="52" /></bezel>
276   <bezel element="button" inputtag="BOARD_7" inputmask="0x01"><bounds x="436" y="350" width="52" height="52" /></bezel>
277
278   <bezel element="button" inputtag="BOARD_6" inputmask="0x80"><bounds x="61"  y="296" width="52" height="52" /></bezel>
279   <bezel element="button" inputtag="BOARD_6" inputmask="0x40"><bounds x="115" y="296" width="52" height="52" /></bezel>
280   <bezel element="button" inputtag="BOARD_6" inputmask="0x20"><bounds x="169" y="296" width="52" height="52" /></bezel>
281   <bezel element="button" inputtag="BOARD_6" inputmask="0x10"><bounds x="222" y="296" width="52" height="52" /></bezel>
282   <bezel element="button" inputtag="BOARD_6" inputmask="0x08"><bounds x="275" y="296" width="52" height="52" /></bezel>
283   <bezel element="button" inputtag="BOARD_6" inputmask="0x04"><bounds x="329" y="296" width="52" height="52" /></bezel>
284   <bezel element="button" inputtag="BOARD_6" inputmask="0x02"><bounds x="382" y="296" width="52" height="52" /></bezel>
285   <bezel element="button" inputtag="BOARD_6" inputmask="0x01"><bounds x="436" y="296" width="52" height="52" /></bezel>
286
287   <bezel element="button" inputtag="BOARD_5" inputmask="0x80"><bounds x="61"  y="241" width="52" height="52" /></bezel>
288   <bezel element="button" inputtag="BOARD_5" inputmask="0x40"><bounds x="115" y="241" width="52" height="52" /></bezel>
289   <bezel element="button" inputtag="BOARD_5" inputmask="0x20"><bounds x="169" y="241" width="52" height="52" /></bezel>
290   <bezel element="button" inputtag="BOARD_5" inputmask="0x10"><bounds x="222" y="241" width="52" height="52" /></bezel>
291   <bezel element="button" inputtag="BOARD_5" inputmask="0x08"><bounds x="275" y="241" width="52" height="52" /></bezel>
292   <bezel element="button" inputtag="BOARD_5" inputmask="0x04"><bounds x="329" y="241" width="52" height="52" /></bezel>
293   <bezel element="button" inputtag="BOARD_5" inputmask="0x02"><bounds x="382" y="241" width="52" height="52" /></bezel>
294   <bezel element="button" inputtag="BOARD_5" inputmask="0x01"><bounds x="436" y="241" width="52" height="52" /></bezel>
295
296   <bezel element="button" inputtag="BOARD_4" inputmask="0x80"><bounds x="61"  y="189" width="52" height="52" /></bezel>
297   <bezel element="button" inputtag="BOARD_4" inputmask="0x40"><bounds x="115" y="189" width="52" height="52" /></bezel>
298   <bezel element="button" inputtag="BOARD_4" inputmask="0x20"><bounds x="169" y="189" width="52" height="52" /></bezel>
299   <bezel element="button" inputtag="BOARD_4" inputmask="0x10"><bounds x="222" y="189" width="52" height="52" /></bezel>
300   <bezel element="button" inputtag="BOARD_4" inputmask="0x08"><bounds x="275" y="189" width="52" height="52" /></bezel>
301   <bezel element="button" inputtag="BOARD_4" inputmask="0x04"><bounds x="329" y="189" width="52" height="52" /></bezel>
302   <bezel element="button" inputtag="BOARD_4" inputmask="0x02"><bounds x="382" y="189" width="52" height="52" /></bezel>
303   <bezel element="button" inputtag="BOARD_4" inputmask="0x01"><bounds x="436" y="189" width="52" height="52" /></bezel>
304
305   <bezel element="button" inputtag="BOARD_3" inputmask="0x80"><bounds x="61"  y="137" width="52" height="52" /></bezel>
306   <bezel element="button" inputtag="BOARD_3" inputmask="0x40"><bounds x="115" y="137" width="52" height="52" /></bezel>
307   <bezel element="button" inputtag="BOARD_3" inputmask="0x20"><bounds x="169" y="137" width="52" height="52" /></bezel>
308   <bezel element="button" inputtag="BOARD_3" inputmask="0x10"><bounds x="222" y="137" width="52" height="52" /></bezel>
309   <bezel element="button" inputtag="BOARD_3" inputmask="0x08"><bounds x="275" y="137" width="52" height="52" /></bezel>
310   <bezel element="button" inputtag="BOARD_3" inputmask="0x04"><bounds x="329" y="137" width="52" height="52" /></bezel>
311   <bezel element="button" inputtag="BOARD_3" inputmask="0x02"><bounds x="382" y="137" width="52" height="52" /></bezel>
312   <bezel element="button" inputtag="BOARD_3" inputmask="0x01"><bounds x="436" y="137" width="52" height="52" /></bezel>
313
314   <bezel element="button" inputtag="BOARD_2" inputmask="0x80"><bounds x="61"  y="84" width="52" height="52" /></bezel>
315   <bezel element="button" inputtag="BOARD_2" inputmask="0x40"><bounds x="115" y="84" width="52" height="52" /></bezel>
316   <bezel element="button" inputtag="BOARD_2" inputmask="0x20"><bounds x="169" y="84" width="52" height="52" /></bezel>
317   <bezel element="button" inputtag="BOARD_2" inputmask="0x10"><bounds x="222" y="84" width="52" height="52" /></bezel>
318   <bezel element="button" inputtag="BOARD_2" inputmask="0x08"><bounds x="275" y="84" width="52" height="52" /></bezel>
319   <bezel element="button" inputtag="BOARD_2" inputmask="0x04"><bounds x="329" y="84" width="52" height="52" /></bezel>
320   <bezel element="button" inputtag="BOARD_2" inputmask="0x02"><bounds x="382" y="84" width="52" height="52" /></bezel>
321   <bezel element="button" inputtag="BOARD_2" inputmask="0x01"><bounds x="436" y="84" width="52" height="52" /></bezel>
322
323   <bezel element="button" inputtag="BOARD_1" inputmask="0x80"><bounds x="61"  y="29" width="52" height="52" /></bezel>
324   <bezel element="button" inputtag="BOARD_1" inputmask="0x40"><bounds x="115" y="29" width="52" height="52" /></bezel>
325   <bezel element="button" inputtag="BOARD_1" inputmask="0x20"><bounds x="169" y="29" width="52" height="52" /></bezel>
326   <bezel element="button" inputtag="BOARD_1" inputmask="0x10"><bounds x="222" y="29" width="52" height="52" /></bezel>
327   <bezel element="button" inputtag="BOARD_1" inputmask="0x08"><bounds x="275" y="29" width="52" height="52" /></bezel>
328   <bezel element="button" inputtag="BOARD_1" inputmask="0x04"><bounds x="329" y="29" width="52" height="52" /></bezel>
329   <bezel element="button" inputtag="BOARD_1" inputmask="0x02"><bounds x="382" y="29" width="52" height="52" /></bezel>
330   <bezel element="button" inputtag="BOARD_1" inputmask="0x01"><bounds x="436" y="29" width="52" height="52" /></bezel>
331
332   <bezel element="button" inputtag="STATUS_8" inputmask="0x80"><bounds x="489" y="404" width="50" height="50" /></bezel>
333   <bezel element="button" inputtag="STATUS_8" inputmask="0x40"><bounds x="539" y="404" width="50" height="50" /></bezel>
334
335   <bezel element="button" inputtag="STATUS_7" inputmask="0x80"><bounds x="489" y="350" width="50" height="50" /></bezel>
336   <bezel element="button" inputtag="STATUS_7" inputmask="0x40"><bounds x="539" y="350" width="50" height="50" /></bezel>
337
338   <bezel element="button" inputtag="STATUS_6" inputmask="0x80"><bounds x="489" y="296" width="50" height="50" /></bezel>
339   <bezel element="button" inputtag="STATUS_6" inputmask="0x40"><bounds x="539" y="296" width="50" height="50" /></bezel>
340
341   <bezel element="button" inputtag="STATUS_5" inputmask="0x80"><bounds x="489" y="241" width="50" height="50" /></bezel>
342   <bezel element="button" inputtag="STATUS_5" inputmask="0x40"><bounds x="539" y="241" width="50" height="50" /></bezel>
343
344   <bezel element="button" inputtag="STATUS_4" inputmask="0x80"><bounds x="489" y="189" width="50" height="50" /></bezel>
345   <bezel element="button" inputtag="STATUS_4" inputmask="0x40"><bounds x="539" y="189" width="50" height="50" /></bezel>
346
347   <bezel element="button" inputtag="STATUS_3" inputmask="0x80"><bounds x="489" y="137" width="50" height="50" /></bezel>
348   <bezel element="button" inputtag="STATUS_3" inputmask="0x40"><bounds x="539" y="137" width="50" height="50" /></bezel>
349
350   <bezel element="button" inputtag="STATUS_2" inputmask="0x80"><bounds x="489" y="84" width="50" height="50" /></bezel>
351   <bezel element="button" inputtag="STATUS_2" inputmask="0x40"><bounds x="539" y="84" width="50" height="50" /></bezel>
352
353   <bezel element="button" inputtag="STATUS_1" inputmask="0x80"><bounds x="489" y="29" width="50" height="50" /></bezel>
354   <bezel element="button" inputtag="STATUS_1" inputmask="0x40"><bounds x="539" y="29" width="50" height="50" /></bezel>
355
356
357<!-- 12 boarder pieces + moving piece + CLR Button-->
358
359   <bezel name="Q0"  element="piece"><bounds x="42"  y="530" width="20" height="22" /></bezel>
360   <bezel name="Q1"  element="piece"><bounds x="64"  y="530" width="20" height="22" /></bezel>
361   <bezel name="Q2"  element="piece"><bounds x="86"  y="530" width="20" height="22" /></bezel>
362   <bezel name="Q3"  element="piece"><bounds x="108" y="530" width="20" height="22" /></bezel>
363   <bezel name="Q4"  element="piece"><bounds x="130" y="530" width="20" height="22" /></bezel>
364   <bezel name="Q5"  element="piece"><bounds x="152" y="530" width="20" height="22" /></bezel>
365
366   <bezel name="Q6"  element="piece"><bounds x="196" y="530" width="20" height="22" /></bezel>
367   <bezel name="Q7"  element="piece"><bounds x="218" y="530" width="20" height="22" /></bezel>
368   <bezel name="Q8"  element="piece"><bounds x="240" y="530" width="20" height="22" /></bezel>
369   <bezel name="Q9"  element="piece"><bounds x="262" y="530" width="20" height="22" /></bezel>
370   <bezel name="Q10" element="piece"><bounds x="284" y="530" width="20" height="22" /></bezel>
371   <bezel name="Q11" element="piece"><bounds x="306" y="530" width="20" height="22" /></bezel>
372
373   <bezel name="CLR" element="clr"><bounds x="350" y="530" width="20" height="22" /></bezel>
374
375   <bezel name="MOVING" element="piece"><bounds x="394" y="530" width="20" height="22" /></bezel>
376
377<!-- 12 buttons for border pieces + CLR Button-->
378
379   <bezel element="button_border_pieces" inputtag="B_WHITE" inputmask="0x01"><bounds x="42"  y="530" width="20" height="22" /></bezel>
380   <bezel element="button_border_pieces" inputtag="B_WHITE" inputmask="0x02"><bounds x="64"  y="530" width="20" height="22" /></bezel>
381   <bezel element="button_border_pieces" inputtag="B_WHITE" inputmask="0x04"><bounds x="86"  y="530" width="20" height="22" /></bezel>
382   <bezel element="button_border_pieces" inputtag="B_WHITE" inputmask="0x08"><bounds x="108" y="530" width="20" height="22" /></bezel>
383   <bezel element="button_border_pieces" inputtag="B_WHITE" inputmask="0x10"><bounds x="130" y="530" width="20" height="22" /></bezel>
384   <bezel element="button_border_pieces" inputtag="B_WHITE" inputmask="0x20"><bounds x="152" y="530" width="20" height="22" /></bezel>
385
386   <bezel element="button_border_pieces" inputtag="B_BLACK" inputmask="0x01"><bounds x="196" y="530" width="20" height="22" /></bezel>
387   <bezel element="button_border_pieces" inputtag="B_BLACK" inputmask="0x02"><bounds x="218" y="530" width="20" height="22" /></bezel>
388   <bezel element="button_border_pieces" inputtag="B_BLACK" inputmask="0x04"><bounds x="240" y="530" width="20" height="22" /></bezel>
389   <bezel element="button_border_pieces" inputtag="B_BLACK" inputmask="0x08"><bounds x="262" y="530" width="20" height="22" /></bezel>
390   <bezel element="button_border_pieces" inputtag="B_BLACK" inputmask="0x10"><bounds x="284" y="530" width="20" height="22" /></bezel>
391   <bezel element="button_border_pieces" inputtag="B_BLACK" inputmask="0x20"><bounds x="306" y="530" width="20" height="22" /></bezel>
392
393   <bezel element="button_border_pieces" inputtag="B_CLR" inputmask="0x01"><bounds x="350" y="530" width="20" height="22" /></bezel>
394
395   </view>
396</mamelayout>
src/mess/mess.mak
r9096r9097
11831183   $(MESS_DRIVERS)/mk2.o      \
11841184   $(MESS_VIDEO)/ssystem3.o   \
11851185   $(MESS_DRIVERS)/ssystem3.o   \
1186   $(MESS_DRIVERS)/supercon.o   \
11861187
11871188$(MESSOBJ)/olivetti.a:         \
11881189   $(MESS_DRIVERS)/m20.o      \
r9096r9097
17891790$(MESS_DRIVERS)/sms.o:      $(MESS_LAYOUT)/sms1.lh
17901791$(MESS_DRIVERS)/stopthie.o:   $(MESS_LAYOUT)/stopthie.lh
17911792$(MESS_DRIVERS)/super80.o:   $(MESS_LAYOUT)/super80.lh
1793$(MESS_DRIVERS)/supercon.o:   $(MESS_LAYOUT)/supercon.lh
17921794$(MESS_DRIVERS)/svision.o:   $(MESS_LAYOUT)/svision.lh
17931795$(MESS_DRIVERS)/sym1.o:      $(MESS_LAYOUT)/sym1.lh
17941796$(MESS_DRIVERS)/tec1.o:      $(MESS_LAYOUT)/tec1.lh
src/mess/drivers/supercon.c
r0r9097
1/******************************************************************************
2 Novag SuperConstellation Chess Computer
3 2010 R. Schaefer
4
5
6 CPU 6502
7 Clock 4 MHz
8 IRQ CLK 600 Hz
9
10 RAM    0x0000, 0x0fff)
11 ROM    0x2000, 0xffff)
12 I/O    0x1c00              Unknown
13        0x1d00              Unknown
14        0x1e00              LED's and buttons
15        0x1f00              LED's, buttons and buzzer
16
17
18******************************************************************************/
19
20#include "emu.h"
21#include "cpu/m6502/m6502.h"
22#include "sound/beep.h"
23
24#include "supercon.lh"
25
26#define VERBOSE 0
27#define LOG(x)   do { if (VERBOSE) logerror x; } while (0)
28
29#define ClearBit(x,y)   ( y &= ~( 1 << x ) )
30#define SetBit(x,y)      ( y |= (1 << x ) )
31#define ToggleBit(x,y)   ( y ^= (1 << x ) )
32
33#define IsBitSet(x,y)   ( y & (1<<x) )
34#define IsBitClear(x,y)   ( !( y & (1<<x) ) )
35
36
37enum
38{
39   EM,      /*No piece*/
40   BP,
41   BN,
42   BB,
43   BR,
44   BQ,
45   BK,
46   WP,
47   WN,
48   WB,
49   WR,
50   WQ,
51   WK
52};
53
54
55#define LED_LINE_AH      0x10
56#define LED_LINE_ST      0x20
57#define LED_LINE_18      0x40
58
59
60#define MAIN_CLOCK 4000000 /* 4 MHz */
61
62#define FALSE   0
63#define TRUE   1
64
65#define NOT_VALID   99
66
67#define NO_ACTION   0
68#define   TAKE      1
69#define SET         2
70
71static UINT8 *supercon_ram;
72static emu_timer* timer_update_irq;
73
74static int emu_started=FALSE;
75
76static int moving_piece=0;
77
78static UINT8 data_1E00=0;
79static UINT8 data_1F00=0;
80
81static UINT8 LED_18=0;
82static UINT8 LED_AH=0;
83static UINT8 LED_ST=0;
84static UINT8 *last_LED=NULL;
85static UINT8 last_LED_value=0;
86
87static int led_update=TRUE;
88static int remove_led_flag=TRUE;
89
90static int selecting=NO_ACTION;
91static int confirm_board_click=FALSE;
92static int *current_field;
93
94static int m_board[64];
95static int save_board[64];
96
97/* artwork board */
98static const int start_board[64] =
99{
100   BR, BN, BB, BQ, BK, BB, BN, BR,
101   BP, BP, BP, BP, BP, BP, BP, BP,
102   EM, EM, EM, EM, EM, EM, EM, EM,
103   EM, EM, EM, EM, EM, EM, EM, EM,
104   EM, EM, EM, EM, EM, EM, EM, EM,
105   EM, EM, EM, EM, EM, EM, EM, EM,
106   WP, WP, WP, WP, WP, WP, WP, WP,
107   WR, WN, WB, WQ, WK, WB, WN, WR
108};
109
110static const UINT8 border_pieces[12] = {WK,WQ,WR,WB,WN,WP,BK,BQ,BR,BB,BN,BP,};
111
112
113static void set_board( void )
114{
115   int i;
116   for (i=0;i<64;i++)
117      m_board[i]=start_board[i];
118}
119
120static void set_pieces (void)
121{
122   int i;
123   for (i=0;i<64;i++)
124      output_set_indexed_value("P", i, m_board[i]);
125}
126
127static void set_boarder_pieces (void)
128{
129   UINT8 i;
130
131   for (i=0;i<12;i++)
132      output_set_indexed_value("Q", i, border_pieces[i]);
133}
134
135static void clear_pieces()
136{
137   int i;
138   for (i=0;i<64;i++)
139   {
140      output_set_indexed_value("P", i, EM);
141      m_board[i]=EM;
142   }
143}
144
145static int get_first_cleared_bit(UINT8 data)
146{
147   int i;
148
149   for (i=0;i<8;i++)
150      if (IsBitClear(i,data))
151         return i;
152
153   return NOT_VALID;
154}
155
156static int get_first_bit(UINT8 data)
157{
158   int i;
159
160   for (i=0;i<8;i++)
161      if (IsBitSet(i,data))
162         return i;
163
164   return NOT_VALID;
165}
166
167
168static void update_leds( void )
169{
170   int i;
171
172   for (i=0;i<8;i++)
173   {
174      if (IsBitSet(i,LED_18))
175         output_set_led_value(i+1,1);
176      else
177         output_set_led_value(i+1,0);
178
179      if (IsBitSet(i,LED_AH))
180         output_set_led_value(i+9,1);
181      else
182         output_set_led_value(i+9,0);
183
184      if (IsBitSet(i,LED_ST))
185         output_set_led_value(i+17,1);
186      else
187         output_set_led_value(i+17,0);
188   }
189}
190
191static void mouse_update(running_machine *machine)
192{
193   UINT8 port_input, m_left;
194   int i;
195
196/* Set-remove piece after mouse release and confirmation of a board click = beep */
197
198    m_left=input_port_read(machine, "BUTTON_L");
199    if (!m_left && selecting)
200    {
201       if (confirm_board_click)
202       {
203         if (selecting==SET)
204         {
205            *current_field=moving_piece;
206            moving_piece=EM;
207         }else
208         {
209            moving_piece=*current_field;
210            *current_field=EM;
211         }
212         set_pieces();
213         output_set_value("MOVING",moving_piece);
214       }
215
216       selecting=NO_ACTION;
217       confirm_board_click=FALSE;
218    }
219
220/* Boarder pieces and moving pice */
221
222   port_input=input_port_read(machine, "B_WHITE");
223   if (port_input)
224   {
225      i=get_first_bit(port_input);
226      moving_piece=border_pieces[i];
227      output_set_value("MOVING",moving_piece);
228      return;
229   }
230
231
232   port_input=input_port_read(machine, "B_BLACK");
233   if (port_input)
234   {
235      i=get_first_bit(port_input);
236      moving_piece=border_pieces[6+i];
237      output_set_value("MOVING",moving_piece);
238      return;
239   }
240
241
242   port_input=input_port_read(machine, "B_CLR");
243   if (port_input)
244   {
245      if (moving_piece)
246      {
247         moving_piece=0;
248         output_set_value("MOVING",moving_piece);
249         return;
250      }
251   }
252}
253
254/* Driver initialization */
255
256static DRIVER_INIT(supercon)
257{
258   LED_18=0;
259   LED_AH=0;
260   LED_ST=0;
261
262   moving_piece=0;
263}
264
265/* Read 1C000 */
266
267static READ8_HANDLER( supercon_port1_r )
268{
269   LOG(("Read from %04x \n",0x1C00));
270    return 0xff;
271}
272
273/* Read 1D000 */
274
275static READ8_HANDLER( supercon_port2_r )
276{
277   LOG(("Read from %04x \n",0x1D00));
278    return 0xff;
279}
280
281/* Read 1E00 */
282
283static READ8_HANDLER( supercon_port3_r )
284{
285   int i;
286   UINT8 key_data=0;
287
288   static const char *const status_lines[8] =
289         { "STATUS_1", "STATUS_2", "STATUS_3", "STATUS_4", "STATUS_5", "STATUS_6", "STATUS_7", "STATUS_8" };
290
291   LOG(("Read from %04x \n",0x1E00));
292
293/* remove last bit (only if it was not already set) */
294
295   if ( data_1F00 & LED_LINE_AH )
296   {
297      if (last_LED_value != LED_AH)
298         LED_AH=LED_AH & ~data_1E00;
299   }
300   else if ( data_1F00 & LED_LINE_ST)
301   {
302      if (last_LED_value != LED_ST)
303         LED_ST=LED_ST & ~data_1E00;
304   }
305   else if ( data_1F00 & LED_LINE_18 )
306   {
307      if (last_LED_value != LED_18)
308         LED_18=LED_18 & ~data_1E00;
309   }
310
311
312   LOG(("LED_18 from %02x \n",LED_18));
313   LOG(("LED_AH from %02x \n",LED_AH));
314   LOG(("LED_ST from %02x \n",LED_ST));
315
316   if (led_update)         /*No LED Update if Port 1C00,1D00 was read */
317      update_leds();
318
319   remove_led_flag=TRUE;
320   led_update=TRUE;
321
322   LED_18=0;
323   LED_AH=0;
324   LED_ST=0;
325
326
327/* Start */
328
329   if (!emu_started)
330      return 0xbf;
331   else
332      timer_adjust_periodic( timer_update_irq, attotime_zero, 0, ATTOTIME_IN_HZ(598) );  //HACK adjust timer after start ???
333
334
335/* Buttons */
336
337   i=get_first_bit(data_1E00);
338   if (i==NOT_VALID)
339      return 0xff;
340
341   key_data=input_port_read(space->machine, status_lines[i]);
342
343   if (key_data != 0xc0)
344   {
345      LOG(("%s, key_data: %02x \n",status_lines[i],key_data));
346
347/* Button: New Game -> initialize board */
348
349      if (i==0 && key_data==0x80)
350      {
351         set_board();
352         set_pieces();
353
354         emu_started=FALSE;
355      }
356
357/* Button: Clear Board -> remove all pieces */
358
359      if (i==3 && key_data==0x80)
360         clear_pieces();
361
362      if (key_data != 0xff )
363         return key_data;
364
365   }
366
367   return 0xc0;
368}
369
370/* Read Port $1F00 */
371
372static READ8_HANDLER( supercon_port4_r )
373{
374   int i_18, i_AH;
375   UINT8 key_data = 0x00;;
376
377   static const char *const board_lines[8] =
378         { "BOARD_1", "BOARD_2", "BOARD_3", "BOARD_4", "BOARD_5", "BOARD_6", "BOARD_7", "BOARD_8" };
379
380   LOG(("Read from %04x \n",0x1F00));
381
382/* Board buttons */
383
384   i_18=get_first_bit(data_1E00);
385   if (i_18==NOT_VALID)
386      return 0xff;
387
388   key_data=input_port_read(space->machine, board_lines[i_18]);
389
390   if (key_data != 0xff)
391   {
392      LOG(("%s key_data: %02x \n",board_lines[i_18],key_data));
393
394      if (key_data)
395      {
396
397/* Set or remove pieces */
398
399         i_AH=7-get_first_cleared_bit(key_data);
400         LOG(("Press -> AH: %d 18: %d Piece: %d\n",i_AH,i_18,m_board[i_18*8 + i_AH]););
401
402         if (selecting==NO_ACTION)
403         {
404            current_field=&m_board[i_18*8 + i_AH];
405
406            if (moving_piece)
407               selecting=SET;
408            else
409               selecting=TAKE;
410         }
411         return key_data;
412      }
413   }
414
415   return 0xff;
416}
417
418/* Write Port $1C00 */
419
420static WRITE8_HANDLER( supercon_port1_w )
421{
422   LOG(("Write from %04x data: %02x\n",0x1C00,data));
423   led_update=FALSE;
424}
425
426/* Write Port $1D00 */
427
428static WRITE8_HANDLER( supercon_port2_w )
429{
430
431   LOG(("Write from %04x data: %02x\n",0x1D00,data));
432   led_update=FALSE;
433}
434
435/* Write Port $1E00 */
436
437static WRITE8_HANDLER( supercon_port3_w )
438{
439
440   if (data)
441      LOG(("Write from %04x data: %02x\n",0x1E00,data));
442
443   if (data)
444   {
445      data_1E00=data;
446
447/* Set bits for LED's */
448
449      if ( data_1F00)
450      {
451
452         if (data_1F00 & LED_LINE_AH )
453         {
454            last_LED = &LED_AH;            /* save last value */
455            last_LED_value = *last_LED;
456
457            LED_AH=LED_AH | data_1E00;
458         }
459         else if (data_1F00 & LED_LINE_ST )
460         {
461            last_LED = &LED_ST;
462            last_LED_value = *last_LED;
463
464            LED_ST=LED_ST | data_1E00;
465         }
466         else if (data_1F00 &  LED_LINE_18)
467         {
468            last_LED = &LED_18;
469            last_LED_value = *last_LED;
470
471            LED_18=LED_18 | data_1E00;
472         }
473      }
474
475   }
476
477}
478
479/* Write Port $1F00 */
480
481static WRITE8_HANDLER( supercon_port4_w )
482{
483   running_device *speaker = space->machine->device("beep");
484
485   if (data)
486      LOG(("Write from %04x data: %02x\n",0x1F00,data));
487
488   if (data)
489      data_1F00=data;
490
491/* Bit 7 is set -> Buzzer on */
492
493   if ( data_1F00 & 0x80 )
494   {
495      beep_set_state(speaker,1);
496      emu_started=TRUE;
497
498      if (selecting)               /* fast mouse clicks are recognized by the artwork but not by the emulation  */
499         confirm_board_click=TRUE;   /* therefore a beep must confirm each click on the board */
500   }
501   else
502      beep_set_state(speaker,0);
503
504}
505
506static TIMER_CALLBACK( update_artwork )
507{
508   mouse_update(machine);
509}
510
511static TIMER_CALLBACK( update_irq )
512{
513   cputag_set_input_line(machine, "maincpu", M6502_IRQ_LINE, ASSERT_LINE);
514   cputag_set_input_line(machine, "maincpu", M6502_IRQ_LINE, CLEAR_LINE);
515}
516
517/* Save state call backs */
518
519static STATE_PRESAVE( m_board_presave )
520{
521   int i;
522   for (i=0;i<64;i++)
523      save_board[i]=m_board[i];
524}
525
526static STATE_POSTLOAD( m_board_postload )
527{
528   int i;
529   for (i=0;i<64;i++)
530      m_board[i]=save_board[i];
531
532   set_pieces();
533}
534
535static MACHINE_START( supercon )
536{
537   timer_update_irq = timer_alloc(machine,update_irq,NULL);
538   timer_adjust_periodic( timer_update_irq, attotime_zero, 0, ATTOTIME_IN_HZ(1000) );
539
540   timer_pulse(machine, ATTOTIME_IN_HZ(20), NULL, 0, update_artwork);
541
542   state_save_register_global_array(machine,save_board);
543   state_save_register_postload(machine,m_board_postload,NULL);
544   state_save_register_presave(machine,m_board_presave,NULL);
545}
546
547static MACHINE_RESET( supercon )
548{
549   set_board();
550   set_pieces();
551   set_boarder_pieces();
552
553   emu_started=FALSE;
554}
555
556/* Address maps */
557
558static ADDRESS_MAP_START(supercon_mem, ADDRESS_SPACE_PROGRAM, 8)
559   AM_RANGE( 0x0000, 0x0fff) AM_RAM AM_BASE(&supercon_ram )
560   AM_RANGE( 0x2000, 0x7fff) AM_ROM
561    AM_RANGE( 0x8000, 0xffff) AM_ROM
562
563   AM_RANGE( 0x1C00, 0x1C00) AM_WRITE ( supercon_port1_w )
564   AM_RANGE( 0x1D00, 0x1D00) AM_WRITE ( supercon_port2_w )
565   AM_RANGE( 0x1E00, 0x1E00) AM_WRITE ( supercon_port3_w )
566   AM_RANGE( 0x1F00, 0x1F00) AM_WRITE ( supercon_port4_w )
567
568   AM_RANGE( 0x1C00, 0x1C00) AM_READ ( supercon_port1_r )
569   AM_RANGE( 0x1D00, 0x1D00) AM_READ ( supercon_port2_r )
570   AM_RANGE( 0x1E00, 0x1E00) AM_READ ( supercon_port3_r )
571   AM_RANGE( 0x1F00, 0x1F00) AM_READ ( supercon_port4_r )
572
573
574ADDRESS_MAP_END
575
576/*static ADDRESS_MAP_START(supercon_io, ADDRESS_SPACE_IO, 8)
577
578
579ADDRESS_MAP_END
580 */
581/* Input ports */
582
583static INPUT_PORTS_START( supercon )
584
585   PORT_START("MOUSE_X")
586   PORT_BIT( 0xffff, 0x00, IPT_MOUSE_X) PORT_SENSITIVITY(100)
587
588   PORT_START("MOUSE_Y")
589   PORT_BIT( 0xffff, 0x00, IPT_MOUSE_Y ) PORT_SENSITIVITY(100)
590
591
592   PORT_START("BUTTON_L")
593   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON2) PORT_CODE(MOUSECODE_BUTTON1) PORT_NAME("left button")
594
595   PORT_START("BUTTON_R")
596   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON1) PORT_CODE(MOUSECODE_BUTTON2) PORT_NAME("right button")
597
598   PORT_START("BOARD_1")
599   PORT_BIT(0x01,  IP_ACTIVE_LOW, IPT_KEYBOARD)
600   PORT_BIT(0x02,  IP_ACTIVE_LOW, IPT_KEYBOARD)
601   PORT_BIT(0x04,  IP_ACTIVE_LOW, IPT_KEYBOARD)
602   PORT_BIT(0x08,  IP_ACTIVE_LOW, IPT_KEYBOARD)
603   PORT_BIT(0x010, IP_ACTIVE_LOW, IPT_KEYBOARD)
604   PORT_BIT(0x020, IP_ACTIVE_LOW, IPT_KEYBOARD)
605   PORT_BIT(0x040, IP_ACTIVE_LOW, IPT_KEYBOARD)
606   PORT_BIT(0x080, IP_ACTIVE_LOW, IPT_KEYBOARD)
607
608   PORT_START("BOARD_2")
609   PORT_BIT(0x01,  IP_ACTIVE_LOW, IPT_KEYBOARD)
610   PORT_BIT(0x02,  IP_ACTIVE_LOW, IPT_KEYBOARD)
611   PORT_BIT(0x04,  IP_ACTIVE_LOW, IPT_KEYBOARD)
612   PORT_BIT(0x08,  IP_ACTIVE_LOW, IPT_KEYBOARD)
613   PORT_BIT(0x010, IP_ACTIVE_LOW, IPT_KEYBOARD)
614   PORT_BIT(0x020, IP_ACTIVE_LOW, IPT_KEYBOARD)
615   PORT_BIT(0x040, IP_ACTIVE_LOW, IPT_KEYBOARD)
616   PORT_BIT(0x080, IP_ACTIVE_LOW, IPT_KEYBOARD)
617
618   PORT_START("BOARD_3")
619   PORT_BIT(0x01,  IP_ACTIVE_LOW, IPT_KEYBOARD)
620   PORT_BIT(0x02,  IP_ACTIVE_LOW, IPT_KEYBOARD)
621   PORT_BIT(0x04,  IP_ACTIVE_LOW, IPT_KEYBOARD)
622   PORT_BIT(0x08,  IP_ACTIVE_LOW, IPT_KEYBOARD)
623   PORT_BIT(0x010, IP_ACTIVE_LOW, IPT_KEYBOARD)
624   PORT_BIT(0x020, IP_ACTIVE_LOW, IPT_KEYBOARD)
625   PORT_BIT(0x040, IP_ACTIVE_LOW, IPT_KEYBOARD)
626   PORT_BIT(0x080, IP_ACTIVE_LOW, IPT_KEYBOARD)
627
628   PORT_START("BOARD_4")
629   PORT_BIT(0x01,  IP_ACTIVE_LOW, IPT_KEYBOARD)
630   PORT_BIT(0x02,  IP_ACTIVE_LOW, IPT_KEYBOARD)
631   PORT_BIT(0x04,  IP_ACTIVE_LOW, IPT_KEYBOARD)
632   PORT_BIT(0x08,  IP_ACTIVE_LOW, IPT_KEYBOARD)
633   PORT_BIT(0x010, IP_ACTIVE_LOW, IPT_KEYBOARD)
634   PORT_BIT(0x020, IP_ACTIVE_LOW, IPT_KEYBOARD)
635   PORT_BIT(0x040, IP_ACTIVE_LOW, IPT_KEYBOARD)
636   PORT_BIT(0x080, IP_ACTIVE_LOW, IPT_KEYBOARD)
637
638   PORT_START("BOARD_5")
639   PORT_BIT(0x01,  IP_ACTIVE_LOW, IPT_KEYBOARD)
640   PORT_BIT(0x02,  IP_ACTIVE_LOW, IPT_KEYBOARD)
641   PORT_BIT(0x04,  IP_ACTIVE_LOW, IPT_KEYBOARD)
642   PORT_BIT(0x08,  IP_ACTIVE_LOW, IPT_KEYBOARD)
643   PORT_BIT(0x010, IP_ACTIVE_LOW, IPT_KEYBOARD)
644   PORT_BIT(0x020, IP_ACTIVE_LOW, IPT_KEYBOARD)
645   PORT_BIT(0x040, IP_ACTIVE_LOW, IPT_KEYBOARD)
646   PORT_BIT(0x080, IP_ACTIVE_LOW, IPT_KEYBOARD)
647
648   PORT_START("BOARD_6")
649   PORT_BIT(0x01,  IP_ACTIVE_LOW, IPT_KEYBOARD)
650   PORT_BIT(0x02,  IP_ACTIVE_LOW, IPT_KEYBOARD)
651   PORT_BIT(0x04,  IP_ACTIVE_LOW, IPT_KEYBOARD)
652   PORT_BIT(0x08,  IP_ACTIVE_LOW, IPT_KEYBOARD)
653   PORT_BIT(0x010, IP_ACTIVE_LOW, IPT_KEYBOARD)
654   PORT_BIT(0x020, IP_ACTIVE_LOW, IPT_KEYBOARD)
655   PORT_BIT(0x040, IP_ACTIVE_LOW, IPT_KEYBOARD)
656   PORT_BIT(0x080, IP_ACTIVE_LOW, IPT_KEYBOARD)
657
658   PORT_START("BOARD_7")
659   PORT_BIT(0x01,  IP_ACTIVE_LOW, IPT_KEYBOARD)
660   PORT_BIT(0x02,  IP_ACTIVE_LOW, IPT_KEYBOARD)
661   PORT_BIT(0x04,  IP_ACTIVE_LOW, IPT_KEYBOARD)
662   PORT_BIT(0x08,  IP_ACTIVE_LOW, IPT_KEYBOARD)
663   PORT_BIT(0x010, IP_ACTIVE_LOW, IPT_KEYBOARD)
664   PORT_BIT(0x020, IP_ACTIVE_LOW, IPT_KEYBOARD)
665   PORT_BIT(0x040, IP_ACTIVE_LOW, IPT_KEYBOARD)
666   PORT_BIT(0x080, IP_ACTIVE_LOW, IPT_KEYBOARD)
667
668   PORT_START("BOARD_8")
669   PORT_BIT(0x01,  IP_ACTIVE_LOW, IPT_KEYBOARD)
670   PORT_BIT(0x02,  IP_ACTIVE_LOW, IPT_KEYBOARD)
671   PORT_BIT(0x04,  IP_ACTIVE_LOW, IPT_KEYBOARD)
672   PORT_BIT(0x08,  IP_ACTIVE_LOW, IPT_KEYBOARD)
673   PORT_BIT(0x010, IP_ACTIVE_LOW, IPT_KEYBOARD)
674   PORT_BIT(0x020, IP_ACTIVE_LOW, IPT_KEYBOARD)
675   PORT_BIT(0x040, IP_ACTIVE_LOW, IPT_KEYBOARD)
676   PORT_BIT(0x080, IP_ACTIVE_LOW, IPT_KEYBOARD)
677
678   PORT_START("STATUS_1")
679   PORT_BIT(0x040, IP_ACTIVE_LOW, IPT_KEYBOARD)
680   PORT_BIT(0x080, IP_ACTIVE_LOW, IPT_KEYBOARD)
681
682   PORT_START("STATUS_2")
683   PORT_BIT(0x040, IP_ACTIVE_LOW, IPT_KEYBOARD)
684   PORT_BIT(0x080, IP_ACTIVE_LOW, IPT_KEYBOARD)
685
686   PORT_START("STATUS_3")
687   PORT_BIT(0x040, IP_ACTIVE_LOW, IPT_KEYBOARD)
688   PORT_BIT(0x080, IP_ACTIVE_LOW, IPT_KEYBOARD)
689
690   PORT_START("STATUS_4")
691   PORT_BIT(0x040, IP_ACTIVE_LOW, IPT_KEYBOARD)
692   PORT_BIT(0x080, IP_ACTIVE_LOW, IPT_KEYBOARD)
693
694   PORT_START("STATUS_5")
695   PORT_BIT(0x040, IP_ACTIVE_LOW, IPT_KEYBOARD)
696   PORT_BIT(0x080, IP_ACTIVE_LOW, IPT_KEYBOARD)
697
698   PORT_START("STATUS_6")
699   PORT_BIT(0x040, IP_ACTIVE_LOW, IPT_KEYBOARD)
700   PORT_BIT(0x080, IP_ACTIVE_LOW, IPT_KEYBOARD)
701
702   PORT_START("STATUS_7")
703   PORT_BIT(0x040, IP_ACTIVE_LOW, IPT_KEYBOARD)
704   PORT_BIT(0x080, IP_ACTIVE_LOW, IPT_KEYBOARD)
705
706   PORT_START("STATUS_8")
707   PORT_BIT(0x040, IP_ACTIVE_LOW, IPT_KEYBOARD)
708   PORT_BIT(0x080, IP_ACTIVE_LOW, IPT_KEYBOARD)
709
710
711   PORT_START("B_WHITE")
712   PORT_BIT(0x01,  IP_ACTIVE_HIGH, IPT_KEYBOARD)
713   PORT_BIT(0x02,  IP_ACTIVE_HIGH, IPT_KEYBOARD)
714   PORT_BIT(0x04,  IP_ACTIVE_HIGH, IPT_KEYBOARD)
715   PORT_BIT(0x08,  IP_ACTIVE_HIGH, IPT_KEYBOARD)
716   PORT_BIT(0x010, IP_ACTIVE_HIGH, IPT_KEYBOARD)
717   PORT_BIT(0x020, IP_ACTIVE_HIGH, IPT_KEYBOARD)
718
719   PORT_START("B_BLACK")
720   PORT_BIT(0x01,  IP_ACTIVE_HIGH, IPT_KEYBOARD)
721   PORT_BIT(0x02,  IP_ACTIVE_HIGH, IPT_KEYBOARD)
722   PORT_BIT(0x04,  IP_ACTIVE_HIGH, IPT_KEYBOARD)
723   PORT_BIT(0x08,  IP_ACTIVE_HIGH, IPT_KEYBOARD)
724   PORT_BIT(0x010, IP_ACTIVE_HIGH, IPT_KEYBOARD)
725   PORT_BIT(0x020, IP_ACTIVE_HIGH, IPT_KEYBOARD)
726
727   PORT_START("B_CLR")
728   PORT_BIT(0x01,  IP_ACTIVE_HIGH, IPT_KEYBOARD)
729
730INPUT_PORTS_END
731
732/* Machine driver */
733static MACHINE_CONFIG_START( supercon, driver_device )
734
735    /* basic machine hardware */
736   MDRV_CPU_ADD("maincpu",M6502,MAIN_CLOCK)
737    MDRV_CPU_PROGRAM_MAP(supercon_mem)
738
739   MDRV_MACHINE_START( supercon )
740   MDRV_MACHINE_RESET( supercon )
741
742    /* video hardware */
743
744   MDRV_DEFAULT_LAYOUT(layout_supercon)
745
746   /* sound hardware */
747   MDRV_SPEAKER_STANDARD_MONO("mono")
748   MDRV_SOUND_ADD("beep", BEEP, 0)
749   MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
750
751
752MACHINE_CONFIG_END
753
754/* ROM definition */
755
756ROM_START(supercon)
757   ROM_REGION(0x10000,"maincpu",0)
758   ROM_LOAD("supercon_low.bin",  0x0000,  0x8000, CRC(b853cf6e) SHA1(1a759072a5023b92c07f1fac01b7a21f7b5b45d0 ))
759   ROM_LOAD("supercon_high.bin", 0x8000,  0x8000, CRC(c8f82331) SHA1(f7fd039f9a3344db9749931490ded9e9e309cfbe ))
760
761
762ROM_END
763
764/* Driver */
765
766/*    YEAR  NAME          PARENT  COMPAT  MACHINE    INPUT       INIT      COMPANY  FULLNAME                     FLAGS */
767CONS( 1983, supercon,     0,      0,      supercon,  supercon,   supercon, "Novag", "SuperConstellation",       GAME_SUPPORTS_SAVE)
docs/messnew.txt
r9096r9097
66- Elektronika KR-03 [Miodrag Milanovic]
77- Panasonic JR-100U [Murray Moffatt, Miodrag Milanovic]
88- National JR-100 [anonymous, Miodrag Milanovic]
9- Novag SuperConstellation Chess Computer [Ralf Schaefer]
910
1011Systems Promoted from GAME_NOT_WORKING:
1112---------------------------------------
artwork/supercon.zip

Previous 15994 Revisions Next


© 1998-2018 The MESS Team