mirror of
https://github.com/AppleWin/AppleWin.git
synced 2025-02-28 19:30:11 +00:00
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().
34 lines
871 B
C
34 lines
871 B
C
#pragma once
|
|
|
|
#define CPU_COMPILING 0
|
|
#define CPU_INTERPRETIVE 1
|
|
#define CPU_FASTPAGING 2
|
|
|
|
typedef struct _regsrec {
|
|
BYTE a; // accumulator
|
|
BYTE x; // index X
|
|
BYTE y; // index Y
|
|
BYTE ps; // processor status
|
|
WORD pc; // program counter
|
|
WORD sp; // stack pointer
|
|
BYTE bIRQ; // IRQ asserted flag
|
|
} regsrec, *regsptr;
|
|
|
|
extern DWORD cpuemtype;
|
|
extern regsrec regs;
|
|
extern unsigned __int64 g_nCumulativeCycles;
|
|
|
|
void CpuDestroy ();
|
|
void CpuCalcCycles(ULONG nCyclesLeft);
|
|
DWORD CpuExecute (DWORD);
|
|
void CpuGetCode (WORD,LPBYTE *,DWORD *);
|
|
ULONG CpuGetCyclesThisFrame();
|
|
void CpuInitialize ();
|
|
void CpuReinitialize ();
|
|
void CpuResetCompilerData ();
|
|
void CpuSetupBenchmark ();
|
|
BOOL CpuSupportsFastPaging ();
|
|
void CpuIRQ ();
|
|
DWORD CpuGetSnapshot(SS_CPU6502* pSS);
|
|
DWORD CpuSetSnapshot(SS_CPU6502* pSS);
|