src/mess/machine/c64.c
| r4082 | r4083 | |
| 469 | 469 | { |
| 470 | 470 | running_machine *machine = space->machine; |
| 471 | 471 | const device_config *cia_0 = device_list_find_by_tag(space->machine->config->devicelist, CIA6526R1, "cia_0"); |
| 472 | const device_config *cia_1 = device_list_find_by_tag(space->machine->config->devicelist, CIA6526R1, "cia_1"); |
| 472 | 473 | |
| 473 | 474 | c64_io_mirror[ offset ] = data; |
| 474 | 475 | if (offset < 0x400) { |
| r4082 | r4083 | |
| 482 | 483 | else if (offset < 0xe00) |
| 483 | 484 | { |
| 484 | 485 | if (c64_cia1_on) |
| 485 | | cia_w(cia_0, offset, data); |
| 486 | cia_w(cia_1, offset, data); |
| 486 | 487 | else |
| 487 | 488 | DBG_LOG (1, "io write", ("%.3x %.2x\n", offset, data)); |
| 488 | 489 | } |