summaryrefslogtreecommitdiffstatshomepage
path: root/src/mess/drivers/hh_pic16.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mess/drivers/hh_pic16.c')
-rw-r--r--src/mess/drivers/hh_pic16.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/mess/drivers/hh_pic16.c b/src/mess/drivers/hh_pic16.c
index bdabf44dd43..b8281a737e0 100644
--- a/src/mess/drivers/hh_pic16.c
+++ b/src/mess/drivers/hh_pic16.c
@@ -76,7 +76,7 @@ void hh_pic16_state::machine_start()
{
// zerofill
memset(m_display_state, 0, sizeof(m_display_state));
- memset(m_display_cache, 0, sizeof(m_display_cache));
+ memset(m_display_cache, ~0, sizeof(m_display_cache));
memset(m_display_decay, 0, sizeof(m_display_decay));
memset(m_display_segmask, 0, sizeof(m_display_segmask));
@@ -137,7 +137,15 @@ void hh_pic16_state::display_update()
const int mul = (m_display_maxx <= 10) ? 10 : 100;
for (int x = 0; x < m_display_maxx; x++)
- output_set_lamp_value(y * mul + x, active_state[y] >> x & 1);
+ {
+ int state = active_state[y] >> x & 1;
+ output_set_lamp_value(y * mul + x, state);
+
+ // bit coords for svg2lay
+ char buf[10];
+ sprintf(buf, "%d.%d", y, x);
+ output_set_value(buf, state);
+ }
}
memcpy(m_display_cache, active_state, sizeof(m_display_cache));