From 0c91026f754abc56a53daefdff2650ddb30d9023 Mon Sep 17 00:00:00 2001 From: Aleksandar Andrejevic Date: Sat, 28 Sep 2013 00:55:28 +0000 Subject: [PATCH] [NTVDM] Change the instruction in the interrupt handlers to "INC SP" twice instead of one "ADD SP, 2". It's shorter and supported by soft386 already. svn path=/branches/ntvdm/; revision=60397 --- subsystems/ntvdm/bios.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/subsystems/ntvdm/bios.c b/subsystems/ntvdm/bios.c index 0791c271ed2..6acf424c1a5 100644 --- a/subsystems/ntvdm/bios.c +++ b/subsystems/ntvdm/bios.c @@ -478,9 +478,8 @@ BOOLEAN BiosInitialize(VOID) BiosCode[Offset++] = LOBYTE(EMULATOR_INT_BOP); BiosCode[Offset++] = HIBYTE(EMULATOR_INT_BOP); - BiosCode[Offset++] = 0x83; // add sp, 2 - BiosCode[Offset++] = 0xC4; - BiosCode[Offset++] = 0x02; + BiosCode[Offset++] = 0x44; // inc sp + BiosCode[Offset++] = 0x44; // inc sp BiosCode[Offset++] = 0xCF; // iret }