From 895a6839bcc7f621833fd1072821019b143d98e8 Mon Sep 17 00:00:00 2001 From: michaelangel007 Date: Thu, 27 Apr 2017 10:01:58 -0700 Subject: [PATCH] Make memmode global as debugger needs access --- source/Memory.cpp | 2 +- source/Memory.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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