| 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 |
| r245390 | r245391 | |
|---|---|---|
| 81 | 81 | // display common |
| 82 | 82 | int m_display_wait; // led/lamp off-delay in microseconds (default 33ms) |
| 83 | 83 | 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) | |
| 85 | 85 | |
| 86 | 86 | UINT32 m_grid; // VFD current row data |
| 87 | 87 | UINT64 m_plate; // VFD current column data |
| r245390 | r245391 | |
| 223 | 223 | m_display_decay[y][x] = m_display_wait; |
| 224 | 224 | |
| 225 | 225 | // determine active state |
| 226 | | |
| 226 | UINT64 ds = (m_display_decay[y][x] != 0) ? 1 : 0; | |
| 227 | 227 | active_state[y] |= (ds << x); |
| 228 | 228 | } |
| 229 | 229 | } |
| r245390 | r245391 | |
| 283 | 283 | set_display_size(maxx, maxy); |
| 284 | 284 | |
| 285 | 285 | // update current state |
| 286 | UINT64 mask = (1 << maxx) - 1; | |
| 286 | UINT64 mask = (U64(1) << maxx) - 1; | |
| 287 | 287 | 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; | |
| 289 | 289 | |
| 290 | 290 | display_update(); |
| 291 | 291 | } |
| r245390 | r245391 | |
|---|---|---|
| 64 | 64 | // display common |
| 65 | 65 | int m_display_wait; // led/lamp off-delay in microseconds (default 33ms) |
| 66 | 66 | 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) | |
| 68 | 68 | |
| 69 | 69 | UINT32 m_grid; // VFD current row data |
| 70 | 70 | UINT32 m_plate; // VFD current column data |
| r245390 | r245391 | |
|---|---|---|
| 46 | 46 | // display common |
| 47 | 47 | int m_display_wait; // led/lamp off-delay in microseconds (default 33ms) |
| 48 | 48 | 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) | |
| 50 | 50 | |
| 51 | 51 | UINT32 m_display_state[0x20]; // display matrix rows data (last bit is used for always-on) |
| 52 | 52 | UINT16 m_display_segmask[0x20]; // if not 0, display matrix row is a digit, mask indicates connected segments |
| https://github.com/mamedev/mame/commit/bbd74ac1c039ed94fcc5ebd18947f51cd5cd561a |
| Previous | 199869 Revisions | Next |