qa.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 02H
   Summary  Notes  Example  Back
──────────────────────────────────────────────────────────────────────────────
 
  Description:  Get Keyboard Flags      [PC] [AT] [PS/2]
 
  Returns the ROM BIOS flags byte that describes the state of the various
  keyboard toggles and shift keys.
 
  Input             Output
  ══════            ══════════════════════════════════
  AH=02H            AL=flags
                       Bit(s)  Significance (if set)
                       ══════  ═══════════════════════
                       7       Insert on
                       6       Caps Lock on
                       5       Num Lock on
                       4       Scroll Lock on
                       3       Alt key is down
                       2       Ctrl key is down
                       1       left Shift key is down
                       0       right Shift key is down
                                    -♦-