Previous 199869 Revisions Next

r36879 Wednesday 1st April, 2015 at 13:16:13 UTC by hap
fix 64bit mask
[src/mess/drivers]hh_hmcs40.c hh_ucom4.c
[src/mess/includes]hh_tms1k.h

trunk/src/mess/drivers/hh_hmcs40.c
r245390r245391
8181   // display common
8282   int m_display_wait;                 // led/lamp off-delay in microseconds (default 33ms)
8383   int m_display_maxy;                 // display matrix number of rows
84   int m_display_maxx;                 // display matrix number of columns
84   int m_display_maxx;                 // display matrix number of columns (max 47 for now)
8585
8686   UINT32 m_grid;                      // VFD current row data
8787   UINT64 m_plate;                     // VFD current column data
r245390r245391
223223            m_display_decay[y][x] = m_display_wait;
224224
225225         // determine active state
226         int ds = (m_display_decay[y][x] != 0) ? 1 : 0;
226         UINT64 ds = (m_display_decay[y][x] != 0) ? 1 : 0;
227227         active_state[y] |= (ds << x);
228228      }
229229   }
r245390r245391
283283   set_display_size(maxx, maxy);
284284
285285   // update current state
286   UINT64 mask = (1 << maxx) - 1;
286   UINT64 mask = (U64(1) << maxx) - 1;
287287   for (int y = 0; y < maxy; y++)
288      m_display_state[y] = (sety >> y & 1) ? ((setx & mask) | (1 << maxx)) : 0;
288      m_display_state[y] = (sety >> y & 1) ? ((setx & mask) | (U64(1) << maxx)) : 0;
289289
290290   display_update();
291291}
trunk/src/mess/drivers/hh_ucom4.c
r245390r245391
6464   // display common
6565   int m_display_wait;                 // led/lamp off-delay in microseconds (default 33ms)
6666   int m_display_maxy;                 // display matrix number of rows
67   int m_display_maxx;                 // display matrix number of columns
67   int m_display_maxx;                 // display matrix number of columns (max 31 for now)
6868
6969   UINT32 m_grid;                      // VFD current row data
7070   UINT32 m_plate;                     // VFD current column data
trunk/src/mess/includes/hh_tms1k.h
r245390r245391
4646   // display common
4747   int m_display_wait;                 // led/lamp off-delay in microseconds (default 33ms)
4848   int m_display_maxy;                 // display matrix number of rows
49   int m_display_maxx;                 // display matrix number of columns
49   int m_display_maxx;                 // display matrix number of columns (max 31 for now)
5050
5151   UINT32 m_display_state[0x20];       // display matrix rows data (last bit is used for always-on)
5252   UINT16 m_display_segmask[0x20];     // if not 0, display matrix row is a digit, mask indicates connected segments


Previous 199869 Revisions Next


© 1997-2024 The MAME Team