Assembly Language Help (alang.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
Int 16h Function 05h
                                             Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
  Interrupt:   16h     Function:   05h
 
  Title:       Push Character and Scan Code
 
  Description:                                               [AT] [PS/2]
 
     Places a character and scan code in the keyboard type-ahead
     buffer. This function can be used by keyboard enhancers and other
     utilities to interpolate keys into the data stream seen by
     application programs.
 
     Input              Output
 
     AH = 05h           If function successful
     CH = Scan code       Carry flag: clear
     CL = Character       AL = 00h
 
                        If function unsuccessful
                        (type-ahead buffer is full)
                          Carry flag: set
                          AL = 01h
                                    -♦-