mirror of
https://github.com/AppleWin/AppleWin.git
synced 2025-01-10 13:29:56 +00:00
Added Memory Init Pattern
This commit is contained in:
parent
0e396f9697
commit
7935b18c15
@ -594,6 +594,8 @@ static LPBYTE memrom = NULL;
|
|||||||
static BOOL modechanging = 0;
|
static BOOL modechanging = 0;
|
||||||
DWORD pages = 0;
|
DWORD pages = 0;
|
||||||
|
|
||||||
|
MemoryInitPattern_e g_eMemoryInitPattern = MIP_FF_FF_00_00;
|
||||||
|
|
||||||
#ifdef RAMWORKS
|
#ifdef RAMWORKS
|
||||||
UINT g_uMaxExPages = 1; // user requested ram pages
|
UINT g_uMaxExPages = 1; // user requested ram pages
|
||||||
static LPBYTE RWpages[128]; // pointers to RW memory banks
|
static LPBYTE RWpages[128]; // pointers to RW memory banks
|
||||||
@ -968,18 +970,20 @@ void MemReset ()
|
|||||||
|
|
||||||
ZeroMemory(memmain,0x10000);
|
ZeroMemory(memmain,0x10000);
|
||||||
|
|
||||||
// TODO: Verify the RAM pattern is still valid for an Apple //e
|
|
||||||
int iByte;
|
int iByte;
|
||||||
for( iByte = 0x0000; iByte < 0xC000; )
|
|
||||||
|
if (g_eMemoryInitPattern == MIP_FF_FF_00_00)
|
||||||
{
|
{
|
||||||
iByte++;
|
for( iByte = 0x0000; iByte < 0xC000; )
|
||||||
iByte++;
|
{
|
||||||
|
memmain[ iByte++ ] = 0xFF;
|
||||||
|
memmain[ iByte++ ] = 0xFF;
|
||||||
|
|
||||||
memmain[ iByte++ ] = 0xFF;
|
iByte++;
|
||||||
memmain[ iByte++ ] = 0xFF;
|
iByte++;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// SET UP THE MEMORY IMAGE
|
// SET UP THE MEMORY IMAGE
|
||||||
mem = memimage;
|
mem = memimage;
|
||||||
image = 0;
|
image = 0;
|
||||||
|
@ -1,5 +1,14 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
enum MemoryInitPattern_e
|
||||||
|
{
|
||||||
|
MIP_ZERO
|
||||||
|
, MIP_FF_FF_00_00
|
||||||
|
|
||||||
|
, NUM_MIP
|
||||||
|
};
|
||||||
|
extern MemoryInitPattern_e g_eMemoryInitPattern;
|
||||||
|
|
||||||
extern iofunction ioread[0x100];
|
extern iofunction ioread[0x100];
|
||||||
extern iofunction iowrite[0x100];
|
extern iofunction iowrite[0x100];
|
||||||
extern LPBYTE memshadow[MAXIMAGES][0x100];
|
extern LPBYTE memshadow[MAXIMAGES][0x100];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user