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

    Returns the current keyboard shift status.

        Entry   AH = 02h

        Return  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

    This shift status byte is obtained from the byte at memory
    location 0040h:0017h.

    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