Previous 15994 Revisions Next

r2631 Thursday 15th May, 2008 at 21:09:53 UTC by Roberto Zandonà
[C64] fix for c64 joysticks [Bug #1150]
[src/mess/machine]c64.c

src/mess/machine/c64.c
r2630r2631
528528      return sid6581_0_port_r (machine, offset & 0x3ff);
529529   else if (offset < 0xc00)
530530      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      }
531541   else if (offset < 0xd00)
532542      return cia_0_r(machine, offset);
533543   else if (c64_cia1_on && (offset < 0xe00))

Previous 15994 Revisions Next


© 1998-2018 The MESS Team