From 52cf059c4bc76631c90ee3e22b8f7d457b9a4eaf Mon Sep 17 00:00:00 2001 From: michaelangel007 Date: Thu, 27 Apr 2017 14:02:02 -0700 Subject: [PATCH] Add Saturn memory pages --- source/Memory.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/source/Memory.cpp b/source/Memory.cpp index ae7cad0c..f5555190 100644 --- a/source/Memory.cpp +++ b/source/Memory.cpp @@ -189,6 +189,13 @@ UINT g_uActiveBank = 0; // 0 = aux 64K for: //e extended 80 Col card, or // static LPBYTE RWpages[kMaxExMemoryBanks]; // pointers to RW memory banks #endif +#ifdef SATURN +UINT g_uSaturnActiveBank = 0; // Saturn 128K Language Card Bank 0 .. 7 +static LPBYTE SaturnPages[8]; +#endif // SATURN + +MemoryType_e g_eMemType = MEM_TYPE_NATIVE; // 0 = Native memory, 1=RAMWORKS, 2 = SATURN + BYTE __stdcall IO_Annunciator(WORD programcounter, WORD address, BYTE write, BYTE value, ULONG nCycles); //============================================================================= @@ -1189,6 +1196,12 @@ void MemInitialize() i++; #endif +#ifdef SATURN + g_uMaxExPages = 8; + for( int iPage = 0; iPage < 8; iPage++ ) + SaturnPages[ iPage ] = (LPBYTE) VirtualAlloc( NULL, 1024 * 16,MEM_COMMIT,PAGE_READWRITE); +#endif // SATURN + MemInitializeROM(); MemInitializeCustomF8ROM(); MemInitializeIO();