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
This commit is contained in:
Aleksandar Andrejevic 2013-09-28 00:55:28 +00:00
parent cad18120fa
commit 0c91026f75

View file

@ -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
}