Support for #384:

. 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
This commit is contained in:
tomcw
2017-02-25 22:32:46 +00:00
parent 1193cfd10f
commit 0b6c5bbb91
17 changed files with 204 additions and 201 deletions
+5 -5
View File
@@ -457,12 +457,12 @@ static __forceinline void CheckInterruptSources(ULONG uExecutedCycles)
//===========================================================================
static DWORD InternalCpuExecute (DWORD uTotalCycles)
static DWORD InternalCpuExecute(const DWORD uTotalCycles, const bool bVideoUpdate)
{
if (GetMainCpu() == CPU_6502)
return Cpu6502(uTotalCycles); // Apple ][, ][+, //e, Clones
return Cpu6502(uTotalCycles, bVideoUpdate); // Apple ][, ][+, //e, Clones
else
return Cpu65C02(uTotalCycles); // Enhanced Apple //e
return Cpu65C02(uTotalCycles, bVideoUpdate); // Enhanced Apple //e
}
//
@@ -549,7 +549,7 @@ DWORD CpuGetEmulationTime_ms(void)
//===========================================================================
DWORD CpuExecute(const DWORD uCycles)
DWORD CpuExecute(const DWORD uCycles, const bool bVideoUpdate)
{
g_nCyclesExecuted = 0;
@@ -558,7 +558,7 @@ DWORD CpuExecute(const DWORD uCycles)
// uCycles:
// =0 : Do single step
// >0 : Do multi-opcode emulation
const DWORD uExecutedCycles = InternalCpuExecute(uCycles);
const DWORD uExecutedCycles = InternalCpuExecute(uCycles, bVideoUpdate);
MB_UpdateCycles(uExecutedCycles); // Update 6522s (NB. Do this before updating g_nCumulativeCycles below)
UpdateEmulationTime(uExecutedCycles);