Previous 15994 Revisions Next

r766 Tuesday 31st July, 2007 at 01:27:40 UTC by Dirk Best
[DL1416] Added save state support.
[src/mess/video]dl1416.c

src/mess/video/dl1416.c
r765r766
136136   assert_always(which < MAX_DL1416, "'which' exceeds maximum number of configured DL1416s!");
137137 
138138   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);
139144}
140145 
141146 
r765r766
201206 
202207         case DL1416B:
203208 
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 */
206211            digit = data & 1 ? SEG_CURSOR : dl1416[which].cursor_ram[offset];
207212 
208213            /* Call update function */
r765r766
230235      }
231236      else
232237      {
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) */
236241         if ((dl1416[which].intf->type != DL1416T) || (
237242            (dl1416[which].cursor_ram[offset] != SEG_CURSOR) ||
238243            (dl1416t_segments[data] == SEG_UNDEF)))

Previous 15994 Revisions Next


© 1998-2018 The MESS Team