diff --git a/sa1.cpp b/sa1.cpp index aa008590..e56bf6ad 100644 --- a/sa1.cpp +++ b/sa1.cpp @@ -117,10 +117,12 @@ void S9xSA1PostLoadState (void) SA1.VirtualBitmapFormat = (Memory.FillRAM[0x223f] & 0x80) ? 2 : 4; Memory.BWRAM = Memory.SRAM + (Memory.FillRAM[0x2224] & 0x1f) * 0x2000; S9xSA1SetBWRAMMemMap(Memory.FillRAM[0x2225]); +#if 0 S9xSetSA1(Memory.FillRAM[0x2220], 0x2220); S9xSetSA1(Memory.FillRAM[0x2221], 0x2221); S9xSetSA1(Memory.FillRAM[0x2222], 0x2222); S9xSetSA1(Memory.FillRAM[0x2223], 0x2223); +#endif } static void S9xSetSA1MemMap (uint32 which1, uint8 map) @@ -168,7 +170,7 @@ static void S9xSetSA1MemMap (uint32 which1, uint8 map) { offset = (((map & 0x80) ? (map - 4) : which1) & 7) * 0x100000 + (c << 11) - 0x8000; block = Memory.ROM + Multi.cartOffsetB + offset; - } + } } for (int i = c + 8; i < c + 16; i++) Memory.Map[start2 + i] = SA1.Map[start2 + i] = block;