mirror of
https://github.com/reactos/reactos.git
synced 2024-08-04 10:30:59 +00:00
[NTVDM]
Perform multiple CPU instructions in one emulator cycle. svn path=/branches/ntvdm/; revision=59298
This commit is contained in:
parent
030a935096
commit
e7ce79fc05
|
@ -156,9 +156,9 @@ INT wmain(INT argc, WCHAR *argv[])
|
|||
}
|
||||
|
||||
/* Continue CPU emulation */
|
||||
EmulatorStep();
|
||||
for (i = 0; i < STEPS_PER_CYCLE; i++) EmulatorStep();
|
||||
|
||||
Cycles++;
|
||||
Cycles += STEPS_PER_CYCLE;
|
||||
if ((CurrentTickCount - LastCyclePrintout) >= 1000)
|
||||
{
|
||||
DPRINT1("NTVDM: %d Instructions Per Second\n", Cycles);
|
||||
|
|
|
@ -32,6 +32,7 @@
|
|||
#define SPECIAL_INT_NUM 0xFF
|
||||
#define SEGMENT_TO_MCB(seg) ((PDOS_MCB)((ULONG_PTR)BaseAddress + TO_LINEAR((seg), 0)))
|
||||
#define SEGMENT_TO_PSP(seg) ((PDOS_PSP)((ULONG_PTR)BaseAddress + TO_LINEAR((seg), 0)))
|
||||
#define STEPS_PER_CYCLE 256
|
||||
|
||||
/* DOS constants */
|
||||
#define DOS_VERSION 0x0600
|
||||
|
|
Loading…
Reference in a new issue