Author: aandrejevic Date: Sat Sep 28 00:55:28 2013 New Revision: 60397
URL: http://svn.reactos.org/svn/reactos?rev=60397&view=rev Log: [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.
Modified: branches/ntvdm/subsystems/ntvdm/bios.c
Modified: branches/ntvdm/subsystems/ntvdm/bios.c URL: http://svn.reactos.org/svn/reactos/branches/ntvdm/subsystems/ntvdm/bios.c?re... ============================================================================== --- branches/ntvdm/subsystems/ntvdm/bios.c [iso-8859-1] (original) +++ branches/ntvdm/subsystems/ntvdm/bios.c [iso-8859-1] Sat Sep 28 00:55:28 2013 @@ -478,9 +478,8 @@ 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 }