mirror of
https://github.com/AppleWin/AppleWin.git
synced 2025-01-04 02:30:53 +00:00
Add Saturn memory pages
This commit is contained in:
parent
ebad3d237f
commit
52cf059c4b
@ -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
|
static LPBYTE RWpages[kMaxExMemoryBanks]; // pointers to RW memory banks
|
||||||
#endif
|
#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);
|
BYTE __stdcall IO_Annunciator(WORD programcounter, WORD address, BYTE write, BYTE value, ULONG nCycles);
|
||||||
|
|
||||||
//=============================================================================
|
//=============================================================================
|
||||||
@ -1189,6 +1196,12 @@ void MemInitialize()
|
|||||||
i++;
|
i++;
|
||||||
#endif
|
#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();
|
MemInitializeROM();
|
||||||
MemInitializeCustomF8ROM();
|
MemInitializeCustomF8ROM();
|
||||||
MemInitializeIO();
|
MemInitializeIO();
|
||||||
|
Loading…
Reference in New Issue
Block a user