src/mess/machine/c64.c
| r2630 | r2631 | |
| 528 | 528 | return sid6581_0_port_r (machine, offset & 0x3ff); |
| 529 | 529 | else if (offset < 0xc00) |
| 530 | 530 | return c64_colorram[offset & 0x3ff]; |
| 531 | else if (offset == 0xc00) |
| 532 | { |
| 533 | cia_set_port_mask_value(0, 0, JOYSTICK_SWAP?c64_keyline[8]:c64_keyline[9]); |
| 534 | return cia_0_r(machine, offset); |
| 535 | } |
| 536 | else if (offset == 0xc01) |
| 537 | { |
| 538 | cia_set_port_mask_value(0, 1, JOYSTICK_SWAP?c64_keyline[9]:c64_keyline[8]); |
| 539 | return cia_0_r(machine, offset); |
| 540 | } |
| 531 | 541 | else if (offset < 0xd00) |
| 532 | 542 | return cia_0_r(machine, offset); |
| 533 | 543 | else if (c64_cia1_on && (offset < 0xe00)) |