summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author hap <happppp@users.noreply.github.com>2015-04-01 15:16:13 +0200
committer hap <happppp@users.noreply.github.com>2015-04-01 15:16:13 +0200
commitbbd74ac1c039ed94fcc5ebd18947f51cd5cd561a (patch)
treedce614ff47170ce4cf1445ccfa3c39b0d3542713
parentb0ea29e26c8dd8020d13cb1adcf674d229fa92b8 (diff)
fix 64bit mask
-rw-r--r--src/mess/drivers/hh_hmcs40.c8
-rw-r--r--src/mess/drivers/hh_ucom4.c2
-rw-r--r--src/mess/includes/hh_tms1k.h2
3 files changed, 6 insertions, 6 deletions
diff --git a/src/mess/drivers/hh_hmcs40.c b/src/mess/drivers/hh_hmcs40.c
index f7e6011a608..3b15756dd41 100644
--- a/src/mess/drivers/hh_hmcs40.c
+++ b/src/mess/drivers/hh_hmcs40.c
@@ -81,7 +81,7 @@ public:
// display common
int m_display_wait; // led/lamp off-delay in microseconds (default 33ms)
int m_display_maxy; // display matrix number of rows
- int m_display_maxx; // display matrix number of columns
+ int m_display_maxx; // display matrix number of columns (max 47 for now)
UINT32 m_grid; // VFD current row data
UINT64 m_plate; // VFD current column data
@@ -223,7 +223,7 @@ void hh_hmcs40_state::display_update()
m_display_decay[y][x] = m_display_wait;
// determine active state
- int ds = (m_display_decay[y][x] != 0) ? 1 : 0;
+ UINT64 ds = (m_display_decay[y][x] != 0) ? 1 : 0;
active_state[y] |= (ds << x);
}
}
@@ -283,9 +283,9 @@ void hh_hmcs40_state::display_matrix(int maxx, int maxy, UINT64 setx, UINT32 set
set_display_size(maxx, maxy);
// update current state
- UINT64 mask = (1 << maxx) - 1;
+ UINT64 mask = (U64(1) << maxx) - 1;
for (int y = 0; y < maxy; y++)
- m_display_state[y] = (sety >> y & 1) ? ((setx & mask) | (1 << maxx)) : 0;
+ m_display_state[y] = (sety >> y & 1) ? ((setx & mask) | (U64(1) << maxx)) : 0;
display_update();
}
diff --git a/src/mess/drivers/hh_ucom4.c b/src/mess/drivers/hh_ucom4.c
index bf7d5cda012..69e5f4f2d84 100644
--- a/src/mess/drivers/hh_ucom4.c
+++ b/src/mess/drivers/hh_ucom4.c
@@ -64,7 +64,7 @@ public:
// display common
int m_display_wait; // led/lamp off-delay in microseconds (default 33ms)
int m_display_maxy; // display matrix number of rows
- int m_display_maxx; // display matrix number of columns
+ int m_display_maxx; // display matrix number of columns (max 31 for now)
UINT32 m_grid; // VFD current row data
UINT32 m_plate; // VFD current column data
diff --git a/src/mess/includes/hh_tms1k.h b/src/mess/includes/hh_tms1k.h
index 00e26d5fa81..d7d83058d49 100644
--- a/src/mess/includes/hh_tms1k.h
+++ b/src/mess/includes/hh_tms1k.h
@@ -46,7 +46,7 @@ public:
// display common
int m_display_wait; // led/lamp off-delay in microseconds (default 33ms)
int m_display_maxy; // display matrix number of rows
- int m_display_maxx; // display matrix number of columns
+ int m_display_maxx; // display matrix number of columns (max 31 for now)
UINT32 m_display_state[0x20]; // display matrix rows data (last bit is used for always-on)
UINT16 m_display_segmask[0x20]; // if not 0, display matrix row is a digit, mask indicates connected segments