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 0ch flush buffer, read keyboard</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
Function 0Ch            Flush Buffer, Read Keyboard

    Removes any characters in the standard input buffer, then invokes
    the specified function.

        Entry   AH = 0Ch
                AL = Function to be invoked (06h, 07h, 08h)
                     (0Ah may not be used, 01h may be used but is
                      superseded)

        Return  AL = Return value from function
                     (zero if invalid function)

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

    This function clears the keyboard buffer, then invokes a DOS
    service (specified in AL). The purpose is to ensure that your
    program receives new input before it performs the followup
    function.


    Note
    If used to call function 06h, this function must pass 0FFh in the
    DL register; it cannot be used to write a character.

See Also: 06h 07h 08h

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