src/mess/machine/abc77.c
| r9184 | r9185 | |
| 403 | 403 | abc77_t *abc77 = (abc77_t *)downcast<legacy_device_base *>(device)->token(); |
| 404 | 404 | const abc77_interface *intf = get_interface(device); |
| 405 | 405 | |
| 406 | | astring tempstring; |
| 407 | | |
| 408 | 406 | /* resolve callbacks */ |
| 409 | 407 | devcb_resolve_write_line(&abc77->out_txd_func, &intf->out_txd_func, device); |
| 410 | 408 | devcb_resolve_write_line(&abc77->out_clock_func, &intf->out_clock_func, device); |
| 411 | 409 | devcb_resolve_write_line(&abc77->out_keydown_func, &intf->out_keydown_func, device); |
| 412 | 410 | |
| 413 | 411 | /* find our CPU */ |
| 414 | | astring_printf(&tempstring, "%s:%s", device->tag(), I8035_TAG); |
| 415 | | abc77->cpu = device->machine->device(astring_c(&tempstring)); |
| 412 | abc77->cpu = device->subdevice(I8035_TAG); |
| 416 | 413 | |
| 417 | 414 | /* allocate reset timer */ |
| 418 | 415 | abc77->reset_timer = timer_alloc(device->machine, reset_tick, (FPTR *) device); |