[NTVDM]: Implement a basic BIOS Wait interrupt INT 15h, AH=86h.

svn path=/branches/ntvdm/; revision=61821
This commit is contained in:
Hermès Bélusca-Maïto 2014-01-25 22:29:54 +00:00
parent 298e47dbaf
commit 1608c84d72

View file

@ -49,6 +49,22 @@ static VOID WINAPI BiosMiscService(LPWORD Stack)
{
switch (getAH())
{
/* Wait */
case 0x86:
{
/*
* Interval in microseconds CX:DX
* See Ralf Brown: http://www.ctyme.com/intr/rb-1525.htm
* for more information.
*/
Sleep(MAKELONG(getDX(), getCX()));
/* Clear CF */
Stack[STACK_FLAGS] &= ~EMULATOR_FLAG_CF;
break;
}
/* Copy Extended Memory */
case 0x87:
{