Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Programmers Reference 0.02b - <b>int 16h, 02h (2) get shift status all</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
INT 16h,  02h (2)        Get Shift Status                                 all

    Returns the current keyboard shift status.

       On entry:      AH         02h

       Returns:       AL         Shift status

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

               Shift Status (AL)
               7 6 5 4 3 2 1 0
               1 . . . . . . .      Insert locked
               . 1 . . . . . .      Caps Lock locked
               . . 1 . . . . .      Num Lock locked
               . . . 1 . . . .      Scroll Lock locked
               . . . . 1 . . .      Alt key is pressed
               . . . . . 1 . .      Ctrl key is pressed
               . . . . . . 1 .      Left Shift key is pressed
               . . . . . . . 1      Right Shift key is pressed

       Notes:         This shift status byte is obtained from the byte at
                      memory location 0:0417h.

                      See Service 12h to obtain the shift status for the
                      enhanced (101/102-key) keyboard.

See Also: INT 16h, 12h

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