trunk/src/mess/drivers/hh_hmcs40.c
| r245100 | r245101 | |
| 170 | 170 | |
| 171 | 171 | const int mul = (m_display_maxx <= 10) ? 10 : 100; |
| 172 | 172 | 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 | } |
| 174 | 182 | } |
| 175 | 183 | |
| 176 | 184 | memcpy(m_display_cache, active_state, sizeof(m_display_cache)); |
trunk/src/mess/drivers/hh_pic16.c
| r245100 | r245101 | |
| 137 | 137 | |
| 138 | 138 | const int mul = (m_display_maxx <= 10) ? 10 : 100; |
| 139 | 139 | 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 | } |
| 141 | 149 | } |
| 142 | 150 | |
| 143 | 151 | memcpy(m_display_cache, active_state, sizeof(m_display_cache)); |
trunk/src/mess/drivers/hh_tms1k.c
| r245100 | r245101 | |
| 168 | 168 | |
| 169 | 169 | const int mul = (m_display_maxx <= 10) ? 10 : 100; |
| 170 | 170 | 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 | } |
| 172 | 180 | } |
| 173 | 181 | |
| 174 | 182 | memcpy(m_display_cache, active_state, sizeof(m_display_cache)); |
trunk/src/mess/drivers/hh_ucom4.c
| r245100 | r245101 | |
| 182 | 182 | |
| 183 | 183 | const int mul = (m_display_maxx <= 10) ? 10 : 100; |
| 184 | 184 | 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 | } |
| 186 | 194 | } |
| 187 | 195 | |
| 188 | 196 | memcpy(m_display_cache, active_state, sizeof(m_display_cache)); |
trunk/src/mess/drivers/ticalc1x.c
| r245100 | r245101 | |
| 169 | 169 | |
| 170 | 170 | const int mul = (m_display_maxx <= 10) ? 10 : 100; |
| 171 | 171 | 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 | } |
| 173 | 181 | } |
| 174 | 182 | |
| 175 | 183 | memcpy(m_display_cache, active_state, sizeof(m_display_cache)); |
trunk/src/mess/drivers/tispeak.c
| r245100 | r245101 | |
| 433 | 433 | |
| 434 | 434 | const int mul = (m_display_maxx <= 10) ? 10 : 100; |
| 435 | 435 | 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 | } |
| 437 | 445 | } |
| 438 | 446 | |
| 439 | 447 | memcpy(m_display_cache, active_state, sizeof(m_display_cache)); |