mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 20:25:39 +00:00
[NTVDM]
- Shut up some DPRINTs in io.c and ntvdm.c - I forgot to update the call to PitClock in the previous revision... svn path=/branches/ntvdm/; revision=61816
This commit is contained in:
parent
4bbed217b6
commit
298e47dbaf
2 changed files with 9 additions and 3 deletions
|
@ -9,7 +9,7 @@
|
||||||
|
|
||||||
/* INCLUDES *******************************************************************/
|
/* INCLUDES *******************************************************************/
|
||||||
|
|
||||||
// #define NDEBUG
|
#define NDEBUG
|
||||||
|
|
||||||
#include "emulator.h"
|
#include "emulator.h"
|
||||||
#include "io.h"
|
#include "io.h"
|
||||||
|
|
|
@ -169,8 +169,10 @@ INT wmain(INT argc, WCHAR *argv[])
|
||||||
DWORD StartTickCount, CurrentTickCount;
|
DWORD StartTickCount, CurrentTickCount;
|
||||||
DWORD LastClockUpdate;
|
DWORD LastClockUpdate;
|
||||||
DWORD LastVerticalRefresh;
|
DWORD LastVerticalRefresh;
|
||||||
|
#if 0
|
||||||
DWORD LastCyclePrintout;
|
DWORD LastCyclePrintout;
|
||||||
DWORD Cycles = 0;
|
DWORD Cycles = 0;
|
||||||
|
#endif
|
||||||
INT KeyboardIntCounter = 0;
|
INT KeyboardIntCounter = 0;
|
||||||
|
|
||||||
#ifndef TESTING
|
#ifndef TESTING
|
||||||
|
@ -241,7 +243,7 @@ INT wmain(INT argc, WCHAR *argv[])
|
||||||
QueryPerformanceCounter(&StartPerfCount);
|
QueryPerformanceCounter(&StartPerfCount);
|
||||||
|
|
||||||
/* Set the different last counts to the starting count */
|
/* 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 */
|
/* Set the last timer ticks to the current time */
|
||||||
LastTimerTick = LastRtcTick = StartPerfCount;
|
LastTimerTick = LastRtcTick = StartPerfCount;
|
||||||
|
@ -275,7 +277,7 @@ INT wmain(INT argc, WCHAR *argv[])
|
||||||
/* Update the PIT */
|
/* Update the PIT */
|
||||||
if (TimerTicks > 0)
|
if (TimerTicks > 0)
|
||||||
{
|
{
|
||||||
PitDecrementCount(TimerTicks);
|
PitClock(TimerTicks);
|
||||||
LastTimerTick = Counter;
|
LastTimerTick = Counter;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -315,15 +317,19 @@ INT wmain(INT argc, WCHAR *argv[])
|
||||||
for (i = 0; (i < STEPS_PER_CYCLE) && VdmRunning; i++)
|
for (i = 0; (i < STEPS_PER_CYCLE) && VdmRunning; i++)
|
||||||
{
|
{
|
||||||
EmulatorStep();
|
EmulatorStep();
|
||||||
|
#if 0
|
||||||
Cycles++;
|
Cycles++;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if 0
|
||||||
if ((CurrentTickCount - LastCyclePrintout) >= 1000)
|
if ((CurrentTickCount - LastCyclePrintout) >= 1000)
|
||||||
{
|
{
|
||||||
DPRINT1("NTVDM: %lu Instructions Per Second\n", Cycles);
|
DPRINT1("NTVDM: %lu Instructions Per Second\n", Cycles);
|
||||||
LastCyclePrintout = CurrentTickCount;
|
LastCyclePrintout = CurrentTickCount;
|
||||||
Cycles = 0;
|
Cycles = 0;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Perform another screen refresh */
|
/* Perform another screen refresh */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue