mirror of
https://github.com/AppleWin/AppleWin.git
synced 2024-11-19 04:08:45 +00:00
1c502b76da
Summary of changes: AppleWin.cpp: Made dwCyclesThisFrame global -> g_dwCyclesThisFrame. CPU.cpp: Made InternalCpuExecute()'s nCyclesLeft static -> nInternalCyclesLeft. CPU.cpp: Added CpuGetCyclesThisFrame(). Memory.cpp: Added MemGet80Store(). Memory.cpp: Added MemReadFloatingBus(). Memory.cpp: Added MemReadFloatingBus(BYTE const highbit). Memory.cpp: Changed NullIo() to call MemReadFloatingBus(). Video.cpp: Added video scanner constants and VideoGetScannerAddress(bool* pbVblBar_OUT). Video.cpp: Changed VideoCheckVbl() to call VideoGetScannerAddress(). Various files: Replaced MemReturnRandomData() calls with MemReadFloatingBus().
46 lines
1.3 KiB
C
46 lines
1.3 KiB
C
#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 iowrite[0x100];
|
|
extern LPBYTE memshadow[MAXIMAGES][0x100];
|
|
extern LPBYTE memwrite[MAXIMAGES][0x100];
|
|
extern DWORD image;
|
|
extern DWORD lastimage;
|
|
extern LPBYTE mem;
|
|
extern LPBYTE memdirty;
|
|
extern DWORD pages;
|
|
|
|
#ifdef RAMWORKS
|
|
extern UINT g_uMaxExPages; // user requested ram pages (from cmd line)
|
|
#endif
|
|
|
|
void MemDestroy ();
|
|
bool MemGet80Store();
|
|
LPBYTE MemGetAuxPtr (WORD);
|
|
LPBYTE MemGetMainPtr (WORD);
|
|
void MemInitialize ();
|
|
BYTE MemReadFloatingBus();
|
|
BYTE MemReadFloatingBus(BYTE highbit);
|
|
void MemReset ();
|
|
void MemResetPaging ();
|
|
BYTE MemReturnRandomData (BYTE highbit);
|
|
void MemSetFastPaging (BOOL);
|
|
void MemTrimImages ();
|
|
DWORD MemGetSnapshot(SS_BaseMemory* pSS);
|
|
DWORD MemSetSnapshot(SS_BaseMemory* pSS);
|
|
|
|
BYTE __stdcall CxReadFunc(WORD pc, WORD addr, BYTE bWrite, BYTE d, ULONG nCyclesLeft);
|
|
BYTE __stdcall CxWriteFunc(WORD pc, WORD addr, BYTE bWrite, BYTE d, ULONG nCyclesLeft);
|
|
|
|
BYTE __stdcall MemCheckPaging (WORD pc, BYTE addr, BYTE bWrite, BYTE d, ULONG nCyclesLeft);
|
|
BYTE __stdcall MemSetPaging (WORD pc, BYTE addr, BYTE bWrite, BYTE d, ULONG nCyclesLeft);
|