diff --git a/source/Memory.cpp b/source/Memory.cpp index 47961b2b..d7c81bfd 100644 --- a/source/Memory.cpp +++ b/source/Memory.cpp @@ -744,7 +744,7 @@ inline bool IsPotentialNoSlotClockAccess(const WORD address) (SW_INTCXROM && (AddrHi == 0xC8)) ); // Internal ROM at [$C100-CFFF] && AddrHi == $C8 } -static bool IsCardInSlot(const UINT uSlot); +static bool IsCardInSlot(UINT slot); // Enabling expansion ROM ($C800..$CFFF]: // . Enable if: Enable1 && Enable2 @@ -944,7 +944,6 @@ BYTE __stdcall IO_F8xx(WORD programcounter, WORD address, BYTE write, BYTE value static struct SlotInfo { - bool bHasCard; iofunction IOReadCx; iofunction IOWriteCx; } g_SlotInfo[NUM_SLOTS] = {0}; @@ -977,7 +976,6 @@ static void InitIoHandlers() for (i=0; i> 8) & 0x7; - return IsCardInSlot(uSlot); + UINT slot = (addr >> 8) & 0x7; + return IsCardInSlot(slot); } // [$C800..CFFF]