Function 08h Read Keyboard Without Echo

mov ah, 08h ;Read Keyboard Without Echo

int 21h

mov InputChar, al ;character from standard input

Read Keyboard Without Echo (Function 08h) reads a character from standard input.

This function does not send the character to an output device.

Parameters

This function has no parameters.

Return Value

The AL register contains the ASCII value of the input character.

Comment

If the character read from the keyboard is an extended key code (for example, if the user presses one of the function keys), Read Keyboard Without Echo returns 00h and the program must call the function again to get the second byte of the extended key code.

See Also

Function 06h Direct Console I/O
Function 07h Direct Console Input
Function 0Ah Buffered Keyboard Input
Function 0Bh Check Keyboard Status
Function 0Ch Flush Buffer, Read Keyboard
Function 3Fh Read File or Device