DWORD StartTickCount, CurrentTickCount;
DWORD LastClockUpdate;
DWORD LastVerticalRefresh;
+#if 0
DWORD LastCyclePrintout;
DWORD Cycles = 0;
+#endif
INT KeyboardIntCounter = 0;
#ifndef TESTING
QueryPerformanceCounter(&StartPerfCount);
/* Set the different last counts to the starting count */
- LastClockUpdate = LastVerticalRefresh = LastCyclePrintout = StartTickCount;
+ LastClockUpdate = LastVerticalRefresh = /*LastCyclePrintout =*/ StartTickCount;
/* Set the last timer ticks to the current time */
LastTimerTick = LastRtcTick = StartPerfCount;
/* Update the PIT */
if (TimerTicks > 0)
{
- PitDecrementCount(TimerTicks);
+ PitClock(TimerTicks);
LastTimerTick = Counter;
}
for (i = 0; (i < STEPS_PER_CYCLE) && VdmRunning; i++)
{
EmulatorStep();
+#if 0
Cycles++;
+#endif
}
+#if 0
if ((CurrentTickCount - LastCyclePrintout) >= 1000)
{
DPRINT1("NTVDM: %lu Instructions Per Second\n", Cycles);
LastCyclePrintout = CurrentTickCount;
Cycles = 0;
}
+#endif
}
/* Perform another screen refresh */