summaryrefslogtreecommitdiffstats
path: root/src/mame/layout/hp9825.lay
blob: 713f23f45bd5735ce10f14a413569f3889193170 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<?xml version="1.0"?>
<!--
license:CC0
copyright-holders:F. Ulivi
Hewlett-Packard 9825 Layout
-->
<mamelayout version="2">
	<element name="dotmatrix5dot">
		<rect>
			<bounds x="-0.05" width="5.55" y="-0.05" height="1.1" />
			<color red="0.0" green="0.0" blue="0.0" />
		</rect>
		<disk state="0" statemask="0x01">
			<bounds x="0.0" />
			<color red="0.25" green="0.25" blue="0.25" />
		</disk>
		<disk state="0" statemask="0x02">
			<bounds x="1.1" />
			<color red="0.25" green="0.25" blue="0.25" />
		</disk>
		<disk state="0" statemask="0x04">
			<bounds x="2.2" />
			<color red="0.25" green="0.25" blue="0.25" />
		</disk>
		<disk state="0" statemask="0x08">
			<bounds x="3.3" />
			<color red="0.25" green="0.25" blue="0.25" /></disk>
		<disk state="0" statemask="0x10">
			<bounds x="4.4" />
			<color red="0.25" green="0.25" blue="0.25" />
		</disk>
		<disk statemask="0x01">
			<bounds x="0.0" />
		</disk>
		<disk statemask="0x02">
			<bounds x="1.1" />
		</disk>
		<disk statemask="0x04">
			<bounds x="2.2" />
		</disk>
		<disk statemask="0x08">
			<bounds x="3.3" />
		</disk>
		<disk statemask="0x10">
			<bounds x="4.4" />
		</disk>
	</element>

	<element name="run_light" defstate="0">
		<disk state="0">
			<color red="0.25" green="0" blue="0" />
		</disk>
		<disk state="1">
			<color red="1.0" green="0" blue="0" />
		</disk>
	</element>

	<view name="32-char display">
		<bounds x="-5" y="0" width="289" height="7"/>
		<element name="run_light" ref="run_light">
			<bounds x="-5" y="2" width="2" height="2"/>
		</element>
		<!-- 32 5x7 characters -->
		<repeat count="32">
			<param name="digitidx" start="0" increment="1" />
			<param name="digit_x" start="0.0" increment="9"/>
			<!-- Each of the 7 rows in a character -->
			<repeat count="7">
				<param name="rowidx" start="0" increment="1" />
				<element name="char_~digitidx~_~rowidx~" ref="dotmatrix5dot" state="0">
					<bounds x="~digit_x~" y="~rowidx~" width="5" height="1" />
					<color red="1.0" green="0.0" blue="0.0" />
				</element>
			</repeat>
		</repeat>
	</view>
</mamelayout>