Previous 15994 Revisions Next

r5714 Sunday 13th September, 2009 at 13:43:16 UTC by Miodrag Milanović
[4004clk] made default layout to prevent crash
[src/mess]mess.mak
[src/mess/drivers]4004clk.c
[src/mess/layout]4004clk.lay*

src/mess/mess.mak
r5713r5714
14861486
14871487$(MESSOBJ)/mess.o:   $(MESS_LAYOUT)/lcd.lh
14881488
1489$(MESS_DRIVERS)/4004clk.o:   $(MESS_LAYOUT)/4004clk.lh
14891490$(MESS_DRIVERS)/acrnsys1.o:   $(MESS_LAYOUT)/acrnsys1.lh
14901491$(MESS_DRIVERS)/aim65.o:   $(MESS_LAYOUT)/aim65.lh
14911492$(MESS_DRIVERS)/amico2k.o:   $(MESS_LAYOUT)/amico2k.lh
src/mess/layout/4004clk.lay
r0r5714
1<?xml version="1.0"?>
2<mamelayout version="2">
3   <element name="nixie" defstate="10">
4      <image file="0.png" state="0"/>
5      <image file="1.png" state="1"/>
6      <image file="2.png" state="2"/>
7      <image file="3.png" state="3"/>
8      <image file="4.png" state="4"/>
9      <image file="5.png" state="5"/>
10      <image file="6.png" state="6"/>
11      <image file="7.png" state="7"/>
12      <image file="8.png" state="8"/>
13      <image file="9.png" state="9"/>
14      <image file="empty.png" state="10"/>
15   </element>
16   <element name="neon" defstate="0">
17      <image file="off.png" state="0"/>
18      <image file="on.png" state="1"/>
19   </element>
20   <element name="background">
21      <rect>
22         <bounds left="0" top="0" right="1" bottom="1" />
23         <color red="0.0" green="0.0" blue="0.0" />
24      </rect>
25   </element>   
26   <view name="Clock">
27      <bezel element="background">
28         <bounds left="0" top="0" right="580" bottom="150" />
29      </bezel>   
30      <bezel name="nixie0" element="nixie">
31         <bounds left="0" top="0" right="90" bottom="150" />
32      </bezel>
33      <bezel name="nixie1" element="nixie">
34         <bounds left="90" top="0" right="180" bottom="150" />
35      </bezel>
36
37      <bezel name="neon0" element="neon">
38         <bounds left="182" top="80" right="198" bottom="94" />
39      </bezel>
40      <bezel name="neon1" element="neon">
41         <bounds left="182" top="40" right="198" bottom="54" />
42      </bezel>
43     
44      <bezel name="nixie2" element="nixie">
45         <bounds left="200" top="0" right="290" bottom="150" />
46      </bezel>
47      <bezel name="nixie3" element="nixie">
48         <bounds left="290" top="0" right="380" bottom="150" />
49      </bezel>
50
51      <bezel name="neon2" element="neon">
52         <bounds left="382" top="40" right="398" bottom="54" />
53      </bezel>
54      <bezel name="neon3" element="neon">
55         <bounds left="382" top="80" right="398" bottom="94" />
56      </bezel>
57     
58      <bezel name="nixie4" element="nixie">
59         <bounds left="400" top="0" right="490" bottom="150" />
60      </bezel>
61      <bezel name="nixie5" element="nixie">
62         <bounds left="490" top="0" right="580" bottom="150" />
63      </bezel>
64   </view>
65</mamelayout>
src/mess/drivers/4004clk.c
r5713r5714
99#include "driver.h"
1010#include "cpu/i4004/i4004.h"
1111#include "sound/dac.h"
12#include "4004clk.lh"
1213
1314static UINT16 nixie[6];
1415static UINT16 nixie_temp[16];
r5713r5714
132133   timer_pulse(machine, ATTOTIME_IN_HZ(120), NULL, 0, timer_callback);
133134}
134135
135static const char layout_4004clk [] = "4004clk";
136
137136static MACHINE_DRIVER_START( 4004clk )
138137    /* basic machine hardware */
139138    MDRV_CPU_ADD("maincpu",I4004, XTAL_5MHz / 8)

Previous 15994 Revisions Next


© 1998-2018 The MESS Team