src/mess/machine/a7800.c
| r15239 | r15240 | |
| 124 | 124 | /* pokey cartridge */ |
| 125 | 125 | if (state->m_cart_type & 0x01) |
| 126 | 126 | { |
| 127 | | device_t *pokey = machine.device("pokey"); |
| 128 | | space->install_legacy_read_handler(*pokey, 0x4000, 0x7FFF, FUNC(pokey_r)); |
| 129 | | space->install_legacy_write_handler(*pokey, 0x4000, 0x7FFF, FUNC(pokey_w)); |
| 127 | pokeyn_device *pokey = machine.device<pokeyn_device>("pokey"); |
| 128 | space->install_readwrite_handler(0x4000, 0x7FFF, read8_delegate(FUNC(pokeyn_device::read),pokey), write8_delegate(FUNC(pokeyn_device::write),pokey)); |
| 130 | 129 | } |
| 131 | 130 | } |
| 132 | 131 | |
| r15239 | r15240 | |
| 412 | 411 | } |
| 413 | 412 | else if(m_cart_type & 0x01) |
| 414 | 413 | { |
| 415 | | device_t *pokey = machine().device("pokey"); |
| 416 | | pokey_w(pokey, offset, data); |
| 414 | pokeyn_device *pokey = machine().device<pokeyn_device>("pokey"); |
| 415 | pokey->write(space, offset, data); |
| 417 | 416 | } |
| 418 | 417 | else |
| 419 | 418 | { |
src/mess/machine/atarifdc.c
| r15239 | r15240 | |
| 421 | 421 | static void clr_serin(device_t *device, int ser_delay) |
| 422 | 422 | { |
| 423 | 423 | atari_fdc_t *fdc = get_safe_token(device); |
| 424 | | device_t *pokey = device->machine().device("pokey"); |
| 424 | pokeyn_device *pokey = device->machine().device<pokeyn_device>("pokey"); |
| 425 | 425 | fdc->serin_chksum = 0; |
| 426 | 426 | fdc->serin_offs = 0; |
| 427 | 427 | fdc->serin_count = 0; |
| 428 | | pokey_serin_ready(pokey, ser_delay * 40); |
| 428 | pokey->serin_ready(ser_delay * 40); |
| 429 | 429 | } |
| 430 | 430 | |
| 431 | 431 | static void add_serin(device_t *device,UINT8 data, int with_checksum) |
| r15239 | r15240 | |
| 706 | 706 | |
| 707 | 707 | if (fdc->serin_count) |
| 708 | 708 | { |
| 709 | | device_t *pokey = device->machine().device("pokey"); |
| 709 | pokeyn_device *pokey = device->machine().device<pokeyn_device>("pokey"); |
| 710 | 710 | |
| 711 | 711 | data = fdc->serin_buff[fdc->serin_offs]; |
| 712 | 712 | ser_delay = 2 * 40; |
| r15239 | r15240 | |
| 720 | 720 | if (--fdc->serin_count == 0) |
| 721 | 721 | fdc->serin_offs = 0; |
| 722 | 722 | else |
| 723 | | pokey_serin_ready(pokey, ser_delay); |
| 723 | pokey->serin_ready(ser_delay); |
| 724 | 724 | } |
| 725 | 725 | |
| 726 | 726 | if (VERBOSE_SERIAL) |