Assembly Language Help (alang.hlp) (Table of Contents; Topic list)
Int 16h Functions 01h and 11h
 Example                                   Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
  Interrupt:   16h     Functions:  01h and 11h
 
  Title:       Get Keyboard Status
 
  See also:    Int 16h Functions 00h and 10h, Keyboard Scan Codes,
               ASCII Chart, Check Keyboard Status, Keyboard Data Memory
 
  Description:                                          [PC] [AT] [PS/2]
 
     Determines whether a character is ready for input, returning a
     flag and also the character itself, if one is waiting. The
     character returned by this function when the zero flag is clear
     is not removed from the type-ahead buffer. The same character and
     scan code will be returned by the next call to Int 16h Function
     00h or 10h.
 
     Use Function 11h if the code must handle the additional keys of
     the enhanced keyboard (such as F11, F12, and cursor control
     keys). You can use the keyboard data byte at 0000:0496h to
     determine if the extended keyboard is available.
 
     Input                                   Output
 
     AH = 01h to check any keyboard          If key waiting to be input
        = 11h to check extended keyboard       Zero flag: clear
                                               AH = Keyboard scan code
                                               AL = Character
 
                                             If no key waiting
                                               Zero flag: set
                                    -♦-