mirror of
https://github.com/reactos/reactos.git
synced 2025-08-02 05:55:42 +00:00
[NTVDM]: Implement a basic BIOS Wait interrupt INT 15h, AH=86h.
svn path=/branches/ntvdm/; revision=61821
This commit is contained in:
parent
298e47dbaf
commit
1608c84d72
1 changed files with 16 additions and 0 deletions
|
@ -49,6 +49,22 @@ static VOID WINAPI BiosMiscService(LPWORD Stack)
|
||||||
{
|
{
|
||||||
switch (getAH())
|
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 */
|
/* Copy Extended Memory */
|
||||||
case 0x87:
|
case 0x87:
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue