Previous 15994 Revisions Next

r5847 Tuesday 22nd September, 2009 at 13:22:18 UTC by Angelo Salese
[SNES]: Fixed CG ram reading address
[src/mame/machine]snes.c

src/mame/machine/snes.c
r5846r5847
526526      case RCGDATA:   /* Read data from CGRAM */
527527            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