Add echo to INT 21h, function AH = 3Fh.


svn path=/branches/ntvdm/; revision=61257
This commit is contained in:
Aleksandar Andrejevic 2013-12-10 02:56:42 +00:00
parent 76f1085bdc
commit 7e07cd3ec5

View file

@ -2014,11 +2014,13 @@ VOID WINAPI DosInt21h(LPWORD Stack)
if (getCF()) break;
// FIXME: Security checks!
DosPrintCharacter(Character);
Buffer[Stack[STACK_COUNTER]++] = Character;
if (Character == '\r')
{
/* Stop on first carriage return */
DosPrintCharacter('\n');
break;
}
}