Previous 15994 Revisions Next

r5459 Tuesday 18th August, 2009 at 15:00:02 UTC by Angelo Salese
[SNES]: Fixed serial port for player 2 as well
[src/mame/machine]snes.c

src/mame/machine/snes.c
r5458r5459
572572            {
573573               return 0 | 0x1c | (snes_open_bus_r(space,0) & 0xe0); //correct?
574574            }
575            value = ((joypad[1].low | (joypad[1].high << 8) | 0x10000) >> (15 - (joypad[1].oldrol++ % 16))) & 0x1;
575            value = ((joy2l | (joy2h << 8) | 0x10000) >> (16 - (joypad[1].oldrol & 0xf))) & 0x1;
576            joypad[1].oldrol++;
577            joypad[1].oldrol&=0xf;
576578            if( !(joypad[1].oldrol % 17) )
577579               value = 0x1;
578580            //value |= 0x1c;   // bits 4, 3, and 2 are always set

Previous 15994 Revisions Next


© 1998-2018 The MESS Team