src/mess/layout/4004clk.lay
| r0 | r5714 | |
| 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
| r5713 | r5714 | |
| 9 | 9 | #include "driver.h" |
| 10 | 10 | #include "cpu/i4004/i4004.h" |
| 11 | 11 | #include "sound/dac.h" |
| 12 | #include "4004clk.lh" |
| 12 | 13 | |
| 13 | 14 | static UINT16 nixie[6]; |
| 14 | 15 | static UINT16 nixie_temp[16]; |
| r5713 | r5714 | |
| 132 | 133 | timer_pulse(machine, ATTOTIME_IN_HZ(120), NULL, 0, timer_callback); |
| 133 | 134 | } |
| 134 | 135 | |
| 135 | | static const char layout_4004clk [] = "4004clk"; |
| 136 | | |
| 137 | 136 | static MACHINE_DRIVER_START( 4004clk ) |
| 138 | 137 | /* basic machine hardware */ |
| 139 | 138 | MDRV_CPU_ADD("maincpu",I4004, XTAL_5MHz / 8) |