Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Ralf Brown's Interrupt List (Part 1,2) - int 16 - keyboard - get enhanced shift flags (at model 339,xt2,xt286,ps) http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
INT 16 - KEYBOARD - GET ENHANCED SHIFT FLAGS (AT model 339,XT2,XT286,PS)
        AH = 12h
Return: AL = shift flags (same as for AH=02h)
           bit 7: Ins ON
           bit 6: CapsLock ON
           bit 5: NumLock ON
           bit 4: ScrollLock ON
           bit 3: Either ALT key down
           bit 2: Either CTRL key down
           bit 1: Left shift key down
           bit 0: Right shift key down
        AH
           bit 7: SysReq key down
           bit 6: CapsLock key down
           bit 5: NumLock key down
           bit 4: ScrollLock key down
           bit 3: Right Alt key down
           bit 2: Right Ctrl key down
           bit 1: Left Alt key down
           bit 0: Left Ctrl key down
Notes:  AL bit 3 set only for left Alt key on many machines
        AH bits 7 through 4 always clear on a Compaq SLT/286
SeeAlso: AH=02h

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