Previous 15994 Revisions Next

r5848 Tuesday 22nd September, 2009 at 13:34:39 UTC by Angelo Salese
Corrected the previous fix
[src/mame/machine]snes.c

src/mame/machine/snes.c
r5847r5848
524524         }
525525         return snes_ppu.ppu1_open_bus;
526526      case RCGDATA:   /* Read data from CGRAM */
527            if (cgram_address & 0x01)
527            if (!(cgram_address & 0x01))
528528            {
529               snes_ppu.ppu2_open_bus = ((UINT8 *)snes_cgram)[cgram_address & 0xff];
529               snes_ppu.ppu2_open_bus = ((UINT8 *)snes_cgram)[cgram_address] & 0xff;
530530            }
531531            else
532532            {
533533               snes_ppu.ppu2_open_bus &= 0x80;
534               snes_ppu.ppu2_open_bus |= ((UINT8 *)snes_cgram)[cgram_address & 0x7f];
534               snes_ppu.ppu2_open_bus |= ((UINT8 *)snes_cgram)[cgram_address] & 0x7f;
535535            }
536536
537537            cgram_address = (cgram_address + 1) % (SNES_CGRAM_SIZE - 2);

Previous 15994 Revisions Next


© 1998-2018 The MESS Team