Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Assembly Language - <b>function 01h (1) read keyboard character and echo</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
Function 01h (1)         Read Keyboard Character and Echo

    Reads a character from the standard input device (usually the
    keyboard), and echoes it to the standard output device (usually the
    screen).

       On entry:      AH         01h

       Returns:       AL         Character read

  --------------------------------------------------------------------------

       Extended ASCII For the special keys, such as the cursor and
                      function keys, this function returns a 0 in AL; call
                      the function again to read the extended code of the
                      special character. (See the Key codes for a listing
                      of the extended codes.)

       Ctrl-Break &   DOS generates an INT 23h.
       Ctrl-C

       Note:          This function checks for Ctrl-Break and Ctrl-C. Use
                      Function 07h if you don't wish to check Ctrl-Break
                      and Ctrl-C.

See Also: 06h 07h 08h 0Ah 0Ch Key codes

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson