Memory is now filled with 00,00,FF,FF

This commit is contained in:
mpohoreski 2006-03-03 18:54:41 +00:00
parent 80682935f9
commit d5ca179418
1 changed files with 13 additions and 0 deletions

View File

@ -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;