* SDL: actually fixed instructions counting
This commit is contained in:
parent
78b47b938a
commit
015e559e47
|
@ -740,9 +740,6 @@ void DebugCycle()
|
|||
uint16 A = 0;
|
||||
int size;
|
||||
|
||||
// since this function is called once for every instruction, we can use it for keeping statistics
|
||||
IncrementInstructionsCounters();
|
||||
|
||||
if (scanline == 240)
|
||||
{
|
||||
vblankScanLines = (PAL?int((double)timestamp / ((double)341 / (double)3.2)):timestamp / 114); //114 approximates the number of timestamps per scanline during vblank. Approx 2508. NTSC: (341 / 3.0) PAL: (341 / 3.2). Uses (3.? * cpu_cycles) / 341.0, and assumes 1 cpu cycle.
|
||||
|
|
|
@ -110,6 +110,7 @@ extern void ResetDebugStatisticsCounters();
|
|||
extern void ResetCyclesCounter();
|
||||
extern void ResetInstructionsCounter();
|
||||
extern void ResetDebugStatisticsDeltaCounters();
|
||||
extern void IncrementInstructionsCounters();
|
||||
//-------------
|
||||
|
||||
//internal variables that debuggers will want access to
|
||||
|
|
|
@ -483,6 +483,8 @@ extern int test; test++;
|
|||
//will probably cause a major speed decrease on low-end systems
|
||||
DEBUG( DebugCycle() );
|
||||
|
||||
IncrementInstructionsCounters();
|
||||
|
||||
_PI=_P;
|
||||
b1=RdMem(_PC);
|
||||
|
||||
|
|
Loading…
Reference in New Issue