Author: aandrejevic
Date: Tue May 5 20:49:09 2015
New Revision: 67569
URL:
http://svn.reactos.org/svn/reactos?rev=67569&view=rev
Log:
[NTVDM]
Fix INT 16h, AH=01h/11h.
Modified:
trunk/reactos/subsystems/mvdm/ntvdm/bios/bios32/kbdbios32.c
Modified: trunk/reactos/subsystems/mvdm/ntvdm/bios/bios32/kbdbios32.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/mvdm/ntvdm/bios…
==============================================================================
--- trunk/reactos/subsystems/mvdm/ntvdm/bios/bios32/kbdbios32.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/mvdm/ntvdm/bios/bios32/kbdbios32.c [iso-8859-1] Tue May 5
20:49:09 2015
@@ -122,18 +122,19 @@
{
/* 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
{
/* No character, set ZF */
Stack[STACK_FLAGS] |= EMULATOR_FLAG_ZF;
- }
-
- if (getAH() == 0x01 && LOBYTE(Character) == 0xE0)
- {
- /* Clear the extended code */
- Character &= 0xFF00;
}
break;