Fix INT 16h, AH=01h/11h.


svn path=/trunk/; revision=67569
This commit is contained in:
Aleksandar Andrejevic 2015-05-05 20:49:09 +00:00
parent 066c89edc7
commit fbd6184f27

View file

@ -122,6 +122,13 @@ static VOID WINAPI BiosKeyboardService(LPWORD Stack)
{
/* There is a character, clear ZF and return it */
Stack[STACK_FLAGS] &= ~EMULATOR_FLAG_ZF;
if (getAH() == 0x01 && LOBYTE(Character) == 0xE0)
{
/* Clear the extended code */
Character &= 0xFF00;
}
setAX(Character);
}
else
@ -130,12 +137,6 @@ static VOID WINAPI BiosKeyboardService(LPWORD Stack)
Stack[STACK_FLAGS] |= EMULATOR_FLAG_ZF;
}
if (getAH() == 0x01 && LOBYTE(Character) == 0xE0)
{
/* Clear the extended code */
Character &= 0xFF00;
}
break;
}