2006-02-25 20:50:29 +00:00
|
|
|
#pragma once
|
|
|
|
|
2006-03-09 21:10:40 +00:00
|
|
|
enum MemoryInitPattern_e
|
|
|
|
{
|
|
|
|
MIP_ZERO
|
|
|
|
, MIP_FF_FF_00_00
|
|
|
|
|
|
|
|
, NUM_MIP
|
|
|
|
};
|
|
|
|
extern MemoryInitPattern_e g_eMemoryInitPattern;
|
|
|
|
|
2007-05-28 11:16:42 +00:00
|
|
|
extern iofunction IORead[256];
|
|
|
|
extern iofunction IOWrite[256];
|
|
|
|
extern LPBYTE memwrite[0x100];
|
2006-02-25 20:50:29 +00:00
|
|
|
extern LPBYTE mem;
|
|
|
|
extern LPBYTE memdirty;
|
|
|
|
|
|
|
|
#ifdef RAMWORKS
|
|
|
|
extern UINT g_uMaxExPages; // user requested ram pages (from cmd line)
|
|
|
|
#endif
|
|
|
|
|
2007-05-28 11:16:42 +00:00
|
|
|
void RegisterIoHandler(UINT uSlot, iofunction IOReadC0, iofunction IOWriteC0, iofunction IOReadCx, iofunction IOWriteCx, LPVOID lpSlotParameter, BYTE* pExpansionRom);
|
|
|
|
|
2006-02-25 20:50:29 +00:00
|
|
|
void MemDestroy ();
|
2006-03-12 09:05:39 +00:00
|
|
|
bool MemGet80Store();
|
2007-05-28 11:16:42 +00:00
|
|
|
bool MemCheckSLOTCXROM();
|
2006-02-25 20:50:29 +00:00
|
|
|
LPBYTE MemGetAuxPtr (WORD);
|
|
|
|
LPBYTE MemGetMainPtr (WORD);
|
2007-08-06 21:38:35 +00:00
|
|
|
LPBYTE MemGetCxRomPeripheral();
|
2007-05-28 11:16:42 +00:00
|
|
|
void MemPreInitialize ();
|
2006-02-25 20:50:29 +00:00
|
|
|
void MemInitialize ();
|
2007-08-06 21:38:35 +00:00
|
|
|
BYTE MemReadFloatingBus(const ULONG uExecutedCycles);
|
|
|
|
BYTE MemReadFloatingBus(const BYTE highbit, const ULONG uExecutedCycles);
|
2006-02-25 20:50:29 +00:00
|
|
|
void MemReset ();
|
|
|
|
void MemResetPaging ();
|
|
|
|
BYTE MemReturnRandomData (BYTE highbit);
|
|
|
|
void MemSetFastPaging (BOOL);
|
|
|
|
void MemTrimImages ();
|
2007-05-28 11:16:42 +00:00
|
|
|
LPVOID MemGetSlotParameters (UINT uSlot);
|
2006-02-25 20:50:29 +00:00
|
|
|
DWORD MemGetSnapshot(SS_BaseMemory* pSS);
|
|
|
|
DWORD MemSetSnapshot(SS_BaseMemory* pSS);
|
|
|
|
|
2007-05-28 11:16:42 +00:00
|
|
|
BYTE __stdcall IO_Null(WORD programcounter, WORD address, BYTE write, BYTE value, ULONG nCycles);
|
2006-02-25 20:50:29 +00:00
|
|
|
|
2007-05-28 11:16:42 +00:00
|
|
|
BYTE __stdcall MemCheckPaging (WORD pc, WORD addr, BYTE bWrite, BYTE d, ULONG nCyclesLeft);
|
|
|
|
BYTE __stdcall MemSetPaging(WORD pc, WORD addr, BYTE bWrite, BYTE d, ULONG nCyclesLeft);
|