Previous 199869 Revisions Next

r33776 Tuesday 9th December, 2014 at 19:43:23 UTC by hap
small update for wizatron layout
[src/mess/drivers]ticalc1x.c
[src/mess/layout]wizatron.lay

trunk/src/mess/drivers/ticalc1x.c
r242287r242288
103103   // on difference, send to output
104104   for (int i = 0; i < 0x10; i++)
105105      if (m_leds_cache[i] != active_state[i])
106      {
106107         output_set_digit_value(i, active_state[i]);
107   
108         
109         for (int j = 0; j < 8; j++)
110            output_set_lamp_value(i*10 + j, active_state[i] >> j & 1);
111      }
112
108113   memcpy(m_leds_cache, active_state, sizeof(m_leds_cache));
109114}
110115
r242287r242288
221226WRITE16_MEMBER(ticalc1x_state::wizatron_write_r)
222227{
223228   // R0-R8: select digit (right-to-left)
229   // note: 3rd digit is custom(not 7seg), for math symbols
224230   for (int i = 0; i < 9; i++)
225231      m_leds_state[i] = (data >> i & 1) ? m_o : 0;
226232   
227   // 3rd digit has more segments, for math symbols
228   // let's assume it's a 14-seg led
229   m_leds_state[6] = BITSWAP16(m_leds_state[6],15,14,2,1,6,4,3,0,5,5,11,10,9,13,12,8);
230   
231233   // 6th digit only has A and G for =
232234   m_leds_state[3] &= 0x41;
233235
trunk/src/mess/layout/wizatron.lay
r242287r242288
22<mamelayout version="2">
33
44<!-- note: the digits were very small, wide space between them, and not the same style as (MAME's-)default -->
5<!-- note 2: yes, the PLUS sign is supposed to be lopsided like that -->
6<!-- note 3: yes, the EQUALS sign is supposed to be that high up, but newer releases improved this -->
5<!-- note 2: the PLUS sign is supposed to be lop sided like that (theoretically, this could have been avoided) -->
6<!-- note 3: the EQUALS sign digit is lower than the others, 1st version had it on the same height level -->
77
8   <element name="static_black">
9      <rect><color red="0.0" green="0.0" blue="0.0" /></rect>
10   </element>
8<!-- define elements -->
119
1210   <element name="digit" defstate="0">
1311      <led7seg><color red="1.0" green="0.3" blue="0.2" /></led7seg>
1412   </element>
15   <element name="digit14" defstate="0">
16      <led14seg><color red="1.0" green="0.3" blue="0.2" /></led14seg>
13
14   <element name="lamp_dot" defstate="0">
15      <disk state="1"><color red="1.0" green="0.3" blue="0.2" /></disk>
16      <disk state="0"><color red="0.125490" green="0.035294" blue="0.0235294" /></disk>
1717   </element>
18   <element name="lamp_dash" defstate="0">
19      <rect state="1"><color red="1.0" green="0.3" blue="0.2" /></rect>
20      <rect state="0"><color red="0.125490" green="0.035294" blue="0.0235294" /></rect>
21   </element>
22   <element name="lamp_slash" defstate="0">
23      <text string="/" state="1"><color red="1.0" green="0.3" blue="0.2" /></text>
24      <text string="/" state="0"><color red="0.125490" green="0.035294" blue="0.0235294" /></text>
25   </element>
26   <element name="lamp_backslash" defstate="0">
27      <text string="\" state="1"><color red="1.0" green="0.3" blue="0.2" /></text>
28      <text string="\" state="0"><color red="0.125490" green="0.035294" blue="0.0235294" /></text>
29   </element>
1830
1931
32
33<!-- build screen -->
34
2035   <view name="Internal Layout">
2136      <bounds left="0" right="90" top="0" bottom="15" />
2237
r242287r242288
2641      <bezel name="digit7" element="digit">
2742         <bounds x="10" y="0" width="10" height="15" />
2843      </bezel>
29      <bezel name="digit6" element="digit14">
30         <bounds x="20" y="0" width="10" height="15" />
31      </bezel>
44
3245      <bezel name="digit5" element="digit">
3346         <bounds x="30" y="0" width="10" height="15" />
3447      </bezel>
r242287r242288
3649         <bounds x="40" y="0" width="10" height="15" />
3750      </bezel>
3851      <bezel name="digit3" element="digit">
39         <bounds x="50" y="0" width="10" height="15" />
52         <bounds x="50" y="3.5" width="10" height="15" />
4053      </bezel>
4154      <bezel name="digit2" element="digit">
4255         <bounds x="60" y="0" width="10" height="15" />
r242287r242288
4861         <bounds x="80" y="0" width="10" height="15" />
4962      </bezel>
5063
51<!-- mask out DIVIDE sign -->
64<!-- math symbols custom digit -->
5265
53      <bezel element="static_black">
54         <bounds x="24.5" y="1.80" width="1.8" height="2.00" />
55      </bezel>
56      <bezel element="static_black">
57         <bounds x="24.3" y="5.1" width="1.75" height="1.3" />
58      </bezel>
66      <bezel name="lamp65" element="lamp_dash"><bounds x="21.5" y="7.25" width="7" height="0.5" /></bezel>
5967
60      <bezel element="static_black">
61         <bounds x="23.75" y="11.25" width="1.8" height="2.00" />
62      </bezel>
63      <bezel element="static_black">
64         <bounds x="23.95" y="8.65" width="1.75" height="1.3" />
65      </bezel>
68      <bezel name="lamp61" element="lamp_slash"><bounds x="24" y="-0.5" width="5" height="7.5" /></bezel>
69      <bezel name="lamp64" element="lamp_slash"><bounds x="21" y="7" width="5" height="7.5" /></bezel>
6670
71      <bezel name="lamp66" element="lamp_backslash"><bounds x="21" y="-0.5" width="5" height="7.5" /></bezel>
72      <bezel name="lamp62" element="lamp_backslash"><bounds x="24" y="7" width="5" height="7.5" /></bezel>
73
74      <bezel name="lamp60" element="lamp_dot"><bounds x="24.25" y="2.25" width="1.5" height="1.5" /></bezel>
75      <bezel name="lamp63" element="lamp_dot"><bounds x="24.25" y="11.75" width="1.5" height="1.5" /></bezel>
76
6777   </view>
6878</mamelayout>


Previous 199869 Revisions Next


© 1997-2024 The MAME Team