mirror of
https://github.com/AppleWin/AppleWin.git
synced 2024-11-17 21:04:45 +00:00
0b6c5bbb91
. Debug 'G(o)' cmd now defaults to normal speed (and precise video updates) . New debug 'GG' cmd enables full speed (and periodic video updates) . Single-stepping (normal or full speed) now routed through ContinueExecution() . Removed Cpu6502()/Cpu65C02() check for debug breakpoints . Removed the (undocumented) SHIFT+F7 feature to exit debugger for 'normal speed breakpoints' . Removed the g_bDebugNormalSpeedBreakpoints variable
47 lines
1.5 KiB
C
47 lines
1.5 KiB
C
#pragma once
|
|
|
|
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 bJammed; // CPU has crashed (NMOS 6502 only)
|
|
};
|
|
|
|
extern regsrec regs;
|
|
extern unsigned __int64 g_nCumulativeCycles;
|
|
|
|
void CpuDestroy ();
|
|
void CpuCalcCycles(ULONG nExecutedCycles);
|
|
DWORD CpuExecute(const DWORD uCycles, const bool bVideoUpdate);
|
|
ULONG CpuGetCyclesThisVideoFrame(ULONG nExecutedCycles);
|
|
void CpuInitialize ();
|
|
void CpuSetupBenchmark ();
|
|
void CpuIrqReset();
|
|
void CpuIrqAssert(eIRQSRC Device);
|
|
void CpuIrqDeassert(eIRQSRC Device);
|
|
void CpuNmiReset();
|
|
void CpuNmiAssert(eIRQSRC Device);
|
|
void CpuNmiDeassert(eIRQSRC Device);
|
|
void CpuReset ();
|
|
void CpuSetSnapshot_v1(const BYTE A, const BYTE X, const BYTE Y, const BYTE P, const BYTE SP, const USHORT PC, const unsigned __int64 CumulativeCycles);
|
|
void CpuSaveSnapshot(class YamlSaveHelper& yamlSaveHelper);
|
|
void CpuLoadSnapshot(class YamlLoadHelper& yamlLoadHelper);
|
|
|
|
BYTE CpuRead(USHORT addr, ULONG uExecutedCycles);
|
|
void CpuWrite(USHORT addr, BYTE a, ULONG uExecutedCycles);
|
|
|
|
DWORD CpuGetEmulationTime_ms(void);
|
|
|
|
enum eCpuType {CPU_UNKNOWN=0, CPU_6502=1, CPU_65C02, CPU_Z80}; // Don't change! Persisted to Registry
|
|
|
|
eCpuType GetMainCpu(void);
|
|
void SetMainCpu(eCpuType cpu);
|
|
eCpuType ProbeMainCpuDefault(eApple2Type apple2Type);
|
|
void SetMainCpuDefault(eApple2Type apple2Type);
|
|
eCpuType GetActiveCpu(void);
|
|
void SetActiveCpu(eCpuType cpu);
|