From d5ca1794180231092e71907ec205e517a805fadd Mon Sep 17 00:00:00 2001 From: mpohoreski Date: Fri, 3 Mar 2006 18:54:41 +0000 Subject: [PATCH] Memory is now filled with 00,00,FF,FF --- AppleWin/source/Memory.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/AppleWin/source/Memory.cpp b/AppleWin/source/Memory.cpp index 53ba032e..5afe3306 100644 --- a/AppleWin/source/Memory.cpp +++ b/AppleWin/source/Memory.cpp @@ -965,8 +965,21 @@ void MemReset () // INITIALIZE THE RAM IMAGES ZeroMemory(memaux ,0x10000); + ZeroMemory(memmain,0x10000); + // TODO: Verify the RAM pattern is still valid for an Apple //e + int iByte; + for( iByte = 0x0000; iByte < 0xC000; ) + { + iByte++; + iByte++; + + memmain[ iByte++ ] = 0xFF; + memmain[ iByte++ ] = 0xFF; + } + + // SET UP THE MEMORY IMAGE mem = memimage; image = 0;