Author: hbelusca Date: Sat Jan 25 22:29:54 2014 New Revision: 61821
URL: http://svn.reactos.org/svn/reactos?rev=61821&view=rev Log: [NTVDM]: Implement a basic BIOS Wait interrupt INT 15h, AH=86h.
Modified: branches/ntvdm/subsystems/ntvdm/bios/bios.c
Modified: branches/ntvdm/subsystems/ntvdm/bios/bios.c URL: http://svn.reactos.org/svn/reactos/branches/ntvdm/subsystems/ntvdm/bios/bios... ============================================================================== --- branches/ntvdm/subsystems/ntvdm/bios/bios.c [iso-8859-1] (original) +++ branches/ntvdm/subsystems/ntvdm/bios/bios.c [iso-8859-1] Sat Jan 25 22:29:54 2014 @@ -49,6 +49,22 @@ { 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: {