Assembly Language Help (alang.hlp) (Table of Contents; Topic list)
Int 21h Function 0Ch
 Summary Example                         Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
     This function exists to allow a program to defeat MS-DOS's
     type-ahead feature. It discards any characters that are waiting in
     MS-DOS's internal type-ahead buffer, forcing the specified input
     function to wait for a character (usually a keyboard entry) that
     is truly entered after the program's request.
 
     The presence or absence of CTRL+C checking during execution of
     this function depends on the function number in register AL.
 
     A function number in AL other than 01h, 06h, 07h, 08h, or 0Ah
     simply flushes the input buffer and returns control to the calling
     program.
                                    -♦-