Author: hbelusca Date: Sat Jan 25 18:57:17 2014 New Revision: 61816
URL: http://svn.reactos.org/svn/reactos?rev=61816&view=rev Log: [NTVDM] - Shut up some DPRINTs in io.c and ntvdm.c - I forgot to update the call to PitClock in the previous revision...
Modified: branches/ntvdm/subsystems/ntvdm/io.c branches/ntvdm/subsystems/ntvdm/ntvdm.c
Modified: branches/ntvdm/subsystems/ntvdm/io.c URL: http://svn.reactos.org/svn/reactos/branches/ntvdm/subsystems/ntvdm/io.c?rev=... ============================================================================== --- branches/ntvdm/subsystems/ntvdm/io.c [iso-8859-1] (original) +++ branches/ntvdm/subsystems/ntvdm/io.c [iso-8859-1] Sat Jan 25 18:57:17 2014 @@ -9,7 +9,7 @@
/* INCLUDES *******************************************************************/
-// #define NDEBUG +#define NDEBUG
#include "emulator.h" #include "io.h"
Modified: branches/ntvdm/subsystems/ntvdm/ntvdm.c URL: http://svn.reactos.org/svn/reactos/branches/ntvdm/subsystems/ntvdm/ntvdm.c?r... ============================================================================== --- branches/ntvdm/subsystems/ntvdm/ntvdm.c [iso-8859-1] (original) +++ branches/ntvdm/subsystems/ntvdm/ntvdm.c [iso-8859-1] Sat Jan 25 18:57:17 2014 @@ -169,8 +169,10 @@ DWORD StartTickCount, CurrentTickCount; DWORD LastClockUpdate; DWORD LastVerticalRefresh; +#if 0 DWORD LastCyclePrintout; DWORD Cycles = 0; +#endif INT KeyboardIntCounter = 0;
#ifndef TESTING @@ -241,7 +243,7 @@ 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; @@ -275,7 +277,7 @@ /* Update the PIT */ if (TimerTicks > 0) { - PitDecrementCount(TimerTicks); + PitClock(TimerTicks); LastTimerTick = Counter; }
@@ -315,15 +317,19 @@ 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 */