Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- DOS 5.0 Ref. - <b>function 06h direct console i/o</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
Function 06h            Direct Console I/O

    Reads a character (if one is available) from standard input or
    outputs a character to standard output. Does not echo characters
    read or check for Ctrl-C.

    Character input:
        Entry   AH = 06h
                DL = FFh

        Return  ZF = 1  No character available
                        (AL undefined, but usually zero)
                ZF = 0  AL = Character


    Character output:
        Entry   AH = 06h
                DL = Character (< FFh)

        Return  AL = Character (undocumented)

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

    If no character is available when reading from standard input,
    this function does not wait but returns immediately.

    This function is typically used by programs that must be able to
    read and write any character or control code. Ctrl-C is returned
    as ASCII 03h.

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

See Also: 07h 08h 0Bh 0Ch

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