Previous 199869 Revisions Next

r36589 Monday 23rd March, 2015 at 18:25:09 UTC by hap
prepare for svg2lay
[src/mess/drivers]hh_hmcs40.c hh_pic16.c hh_tms1k.c hh_ucom4.c ticalc1x.c tispeak.c

trunk/src/mess/drivers/hh_hmcs40.c
r245100r245101
170170
171171         const int mul = (m_display_maxx <= 10) ? 10 : 100;
172172         for (int x = 0; x < m_display_maxx; x++)
173            output_set_lamp_value(y * mul + x, active_state[y] >> x & 1);
173         {
174            int state = active_state[y] >> x & 1;
175            output_set_lamp_value(y * mul + x, state);
176
177            // bit coords for svg2lay
178            char buf[10];
179            sprintf(buf, "%d.%d", y, x);
180            output_set_value(buf, state);
181         }
174182      }
175183
176184   memcpy(m_display_cache, active_state, sizeof(m_display_cache));
trunk/src/mess/drivers/hh_pic16.c
r245100r245101
137137
138138         const int mul = (m_display_maxx <= 10) ? 10 : 100;
139139         for (int x = 0; x < m_display_maxx; x++)
140            output_set_lamp_value(y * mul + x, active_state[y] >> x & 1);
140         {
141            int state = active_state[y] >> x & 1;
142            output_set_lamp_value(y * mul + x, state);
143
144            // bit coords for svg2lay
145            char buf[10];
146            sprintf(buf, "%d.%d", y, x);
147            output_set_value(buf, state);
148         }
141149      }
142150
143151   memcpy(m_display_cache, active_state, sizeof(m_display_cache));
trunk/src/mess/drivers/hh_tms1k.c
r245100r245101
168168
169169         const int mul = (m_display_maxx <= 10) ? 10 : 100;
170170         for (int x = 0; x < m_display_maxx; x++)
171            output_set_lamp_value(y * mul + x, active_state[y] >> x & 1);
171         {
172            int state = active_state[y] >> x & 1;
173            output_set_lamp_value(y * mul + x, state);
174
175            // bit coords for svg2lay
176            char buf[10];
177            sprintf(buf, "%d.%d", y, x);
178            output_set_value(buf, state);
179         }
172180      }
173181
174182   memcpy(m_display_cache, active_state, sizeof(m_display_cache));
trunk/src/mess/drivers/hh_ucom4.c
r245100r245101
182182
183183         const int mul = (m_display_maxx <= 10) ? 10 : 100;
184184         for (int x = 0; x < m_display_maxx; x++)
185            output_set_lamp_value(y * mul + x, active_state[y] >> x & 1);
185         {
186            int state = active_state[y] >> x & 1;
187            output_set_lamp_value(y * mul + x, state);
188
189            // bit coords for svg2lay
190            char buf[10];
191            sprintf(buf, "%d.%d", y, x);
192            output_set_value(buf, state);
193         }
186194      }
187195
188196   memcpy(m_display_cache, active_state, sizeof(m_display_cache));
trunk/src/mess/drivers/ticalc1x.c
r245100r245101
169169
170170         const int mul = (m_display_maxx <= 10) ? 10 : 100;
171171         for (int x = 0; x < m_display_maxx; x++)
172            output_set_lamp_value(y * mul + x, active_state[y] >> x & 1);
172         {
173            int state = active_state[y] >> x & 1;
174            output_set_lamp_value(y * mul + x, state);
175
176            // bit coords for svg2lay
177            char buf[10];
178            sprintf(buf, "%d.%d", y, x);
179            output_set_value(buf, state);
180         }
173181      }
174182
175183   memcpy(m_display_cache, active_state, sizeof(m_display_cache));
trunk/src/mess/drivers/tispeak.c
r245100r245101
433433
434434         const int mul = (m_display_maxx <= 10) ? 10 : 100;
435435         for (int x = 0; x < m_display_maxx; x++)
436            output_set_lamp_value(y * mul + x, active_state[y] >> x & 1);
436         {
437            int state = active_state[y] >> x & 1;
438            output_set_lamp_value(y * mul + x, state);
439
440            // bit coords for svg2lay
441            char buf[10];
442            sprintf(buf, "%d.%d", y, x);
443            output_set_value(buf, state);
444         }
437445      }
438446
439447   memcpy(m_display_cache, active_state, sizeof(m_display_cache));


Previous 199869 Revisions Next


© 1997-2024 The MAME Team