Previous 15994 Revisions Next

r7792 Monday 12th April, 2010 at 08:40:50 UTC by Fabio Priuli
tentative improvement to fix Fushigi no Dungeon 2
[src/mame/machine]snes.c

src/mame/machine/snes.c
r7791r7792
994994      }
995995      else if ((snes_cart.mode == SNES_MODE_21) && (snes_cart.sram > 0))
996996      {
997         int mask = (snes_cart.sram - 1);            /* Limit SRAM size to what's actually present */
998         offset -= 0x6000;
999         value = snes_ram[0x306000 + (offset & mask)];
997         value = snes_ram[0x300000 + offset];
1000998      }
1001999      else
10021000      {
r7791r7792
11571155            value = memory_read_byte(space, offset);
11581156         else if ((offset >= 0x300000) && (snes_cart.sram > 0))
11591157         {
1160            int mask = (snes_cart.sram - 1);      /* Limit SRAM size to what's actually present */
1161            offset -= 0x6000;
1162            value = snes_ram[0x806000 + (offset & mask)];   /* SRAM */
1158            value = snes_ram[0x800000 + offset];   /* SRAM */
11631159         }
11641160         else                  /* Area 0x6000-0x8000 with offset < 0x300000 is reserved */
11651161         {

Previous 15994 Revisions Next


© 1998-2018 The MESS Team