src/mess/video/dl1416.c
| r765 | r766 | |
| 136 | 136 | assert_always(which < MAX_DL1416, "'which' exceeds maximum number of configured DL1416s!");
|
| 137 | 137 | |
| 138 | 138 | dl1416[which].intf = intf;
|
| 139 | |
| 140 | state_save_register_item("dl1416", which, dl1416[which].chip_enable);
|
| 141 | state_save_register_item("dl1416", which, dl1416[which].cursor_enable);
|
| 142 | state_save_register_item("dl1416", which, dl1416[which].write_enable);
|
| 143 | state_save_register_item_array("dl1416", which, dl1416[which].cursor_ram);
|
| 139 | 144 | }
|
| 140 | 145 | |
| 141 | 146 | |
| r765 | r766 | |
| 201 | 206 | |
| 202 | 207 | case DL1416B:
|
| 203 | 208 | |
| 204 | | /* The cursor will be set if D0 is high and the original
|
| 205 | | * character restored otherwise */
|
| 209 | /* The cursor will be set if D0 is high and the original */
|
| 210 | /* character restored otherwise */
|
| 206 | 211 | digit = data & 1 ? SEG_CURSOR : dl1416[which].cursor_ram[offset];
|
| 207 | 212 | |
| 208 | 213 | /* Call update function */
|
| r765 | r766 | |
| 230 | 235 | }
|
| 231 | 236 | else
|
| 232 | 237 | {
|
| 233 | | /* On the DL1416T, a digit can only be changed if there is no
|
| 234 | | * previously stored cursor, or overriden by an undefined
|
| 235 | | * character (blank) */
|
| 238 | /* On the DL1416T, a digit can only be changed if there is no */
|
| 239 | /* previously stored cursor, or overriden by an undefined */
|
| 240 | /* character (blank) */
|
| 236 | 241 | if ((dl1416[which].intf->type != DL1416T) || (
|
| 237 | 242 | (dl1416[which].cursor_ram[offset] != SEG_CURSOR) ||
|
| 238 | 243 | (dl1416t_segments[data] == SEG_UNDEF)))
|