trunk/src/mess/drivers/ticalc1x.c
| r242287 | r242288 | |
| 103 | 103 | // on difference, send to output |
| 104 | 104 | for (int i = 0; i < 0x10; i++) |
| 105 | 105 | if (m_leds_cache[i] != active_state[i]) |
| 106 | { |
| 106 | 107 | 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 | |
| 108 | 113 | memcpy(m_leds_cache, active_state, sizeof(m_leds_cache)); |
| 109 | 114 | } |
| 110 | 115 | |
| r242287 | r242288 | |
| 221 | 226 | WRITE16_MEMBER(ticalc1x_state::wizatron_write_r) |
| 222 | 227 | { |
| 223 | 228 | // R0-R8: select digit (right-to-left) |
| 229 | // note: 3rd digit is custom(not 7seg), for math symbols |
| 224 | 230 | for (int i = 0; i < 9; i++) |
| 225 | 231 | m_leds_state[i] = (data >> i & 1) ? m_o : 0; |
| 226 | 232 | |
| 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 | | |
| 231 | 233 | // 6th digit only has A and G for = |
| 232 | 234 | m_leds_state[3] &= 0x41; |
| 233 | 235 | |
trunk/src/mess/layout/wizatron.lay
| r242287 | r242288 | |
| 2 | 2 | <mamelayout version="2"> |
| 3 | 3 | |
| 4 | 4 | <!-- 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 --> |
| 7 | 7 | |
| 8 | | <element name="static_black"> |
| 9 | | <rect><color red="0.0" green="0.0" blue="0.0" /></rect> |
| 10 | | </element> |
| 8 | <!-- define elements --> |
| 11 | 9 | |
| 12 | 10 | <element name="digit" defstate="0"> |
| 13 | 11 | <led7seg><color red="1.0" green="0.3" blue="0.2" /></led7seg> |
| 14 | 12 | </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> |
| 17 | 17 | </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> |
| 18 | 30 | |
| 19 | 31 | |
| 32 | |
| 33 | <!-- build screen --> |
| 34 | |
| 20 | 35 | <view name="Internal Layout"> |
| 21 | 36 | <bounds left="0" right="90" top="0" bottom="15" /> |
| 22 | 37 | |
| r242287 | r242288 | |
| 26 | 41 | <bezel name="digit7" element="digit"> |
| 27 | 42 | <bounds x="10" y="0" width="10" height="15" /> |
| 28 | 43 | </bezel> |
| 29 | | <bezel name="digit6" element="digit14"> |
| 30 | | <bounds x="20" y="0" width="10" height="15" /> |
| 31 | | </bezel> |
| 44 | |
| 32 | 45 | <bezel name="digit5" element="digit"> |
| 33 | 46 | <bounds x="30" y="0" width="10" height="15" /> |
| 34 | 47 | </bezel> |
| r242287 | r242288 | |
| 36 | 49 | <bounds x="40" y="0" width="10" height="15" /> |
| 37 | 50 | </bezel> |
| 38 | 51 | <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" /> |
| 40 | 53 | </bezel> |
| 41 | 54 | <bezel name="digit2" element="digit"> |
| 42 | 55 | <bounds x="60" y="0" width="10" height="15" /> |
| r242287 | r242288 | |
| 48 | 61 | <bounds x="80" y="0" width="10" height="15" /> |
| 49 | 62 | </bezel> |
| 50 | 63 | |
| 51 | | <!-- mask out DIVIDE sign --> |
| 64 | <!-- math symbols custom digit --> |
| 52 | 65 | |
| 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> |
| 59 | 67 | |
| 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> |
| 66 | 70 | |
| 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 | |
| 67 | 77 | </view> |
| 68 | 78 | </mamelayout> |