src/mess/video/dl1416.c
| r3870 | r3871 | |
| 122 | 122 | |
| 123 | 123 | static DEVICE_START( dl1416 ) |
| 124 | 124 | { |
| 125 | | //const dl1416_interface *intf = device->inline_config; |
| 126 | 125 | dl1416_state *dl1416 = get_safe_token(device); |
| 127 | 126 | |
| 128 | 127 | /* validate arguments */ |
| 129 | | //assert(intf->type == DL1416B || intf->type == DL1416T); |
| 128 | assert(((const dl1416_interface *)(device->inline_config))->type >= DL1416B); |
| 129 | assert(((const dl1416_interface *)(device->inline_config))->type < MAX_DL1416_TYPES); |
| 130 | 130 | |
| 131 | 131 | /* register for state saving */ |
| 132 | 132 | state_save_register_item(device->machine, "dl1416", device->tag, 0, dl1416->chip_enable); |
| r3870 | r3871 | |
| 241 | 241 | digit = data & 1 ? SEG_CURSOR : chip->cursor_ram[offset]; |
| 242 | 242 | |
| 243 | 243 | /* Call update function */ |
| 244 | | intf->update(device, offset, digit); |
| 244 | if (intf->update) |
| 245 | intf->update(device, offset, digit); |
| 245 | 246 | |
| 246 | 247 | break; |
| 247 | 248 | |
| r3870 | r3871 | |
| 257 | 258 | |
| 258 | 259 | /* Call update function if we changed something */ |
| 259 | 260 | if (previous_digit != digit) |
| 260 | | intf->update(device, i, digit); |
| 261 | if (intf->update) |
| 262 | intf->update(device, i, digit); |
| 261 | 263 | } |
| 262 | 264 | break; |
| 263 | 265 | } |
| r3870 | r3871 | |
| 282 | 284 | chip->cursor_ram[offset] = digit; |
| 283 | 285 | |
| 284 | 286 | /* Call update function */ |
| 285 | | intf->update(device, offset, digit); |
| 287 | if (intf->update) |
| 288 | intf->update(device, offset, digit); |
| 286 | 289 | } |
| 287 | 290 | } |
| 288 | 291 | } |