diff --git a/source/Memory.cpp b/source/Memory.cpp index cca5548c..b3449c83 100644 --- a/source/Memory.cpp +++ b/source/Memory.cpp @@ -177,7 +177,7 @@ static LPBYTE memimage = NULL; static LPBYTE pCxRomInternal = NULL; static LPBYTE pCxRomPeripheral = NULL; -static DWORD memmode = MF_BANK2 | MF_SLOTCXROM | MF_WRITERAM; + DWORD memmode = MF_BANK2 | MF_SLOTCXROM | MF_WRITERAM; // 2.9.0.4 now global as Debugger needs access for LC status info in DrawSoftSwitches() static BOOL modechanging = 0; // An Optimisation: means delay calling UpdatePaging() for 1 instruction static BOOL Pravets8charmode = 0; diff --git a/source/Memory.h b/source/Memory.h index 8a3dc320..d109c86e 100644 --- a/source/Memory.h +++ b/source/Memory.h @@ -44,6 +44,7 @@ extern iofunction IOWrite[256]; extern LPBYTE memwrite[0x100]; extern LPBYTE mem; extern LPBYTE memdirty; +extern DWORD memmode; #ifdef RAMWORKS const UINT kMaxExMemoryBanks = 127; // 127 * aux mem(64K) + main mem(64K) = 8MB