INT 16 - KEYBOARD - GET SHIFT STATUS                     

Input

Output

AX

02h     Shift Status AX

BX

        BX

CX

        CX

DX

        DX
ES:DI     ES:DI

 

Shift Status
Bit Dec Hex  Description
0 1 01h  RIGHT SHIFT key depressed
1 2 02h  LEFT SHIFT key depressed
2 4 04h  CTRL key depressed
3 8 08h  ALT key depressed
4 16 10h  SCROLL LOCK active
5 32 20h  NUM LOCK active
6 64 40h  CAPS LOCK active
7 128 80h  INSERT state active
 


Copyright © 1985 to 2022 Beta Systems                            Last modified: Wednesday, January 05, 2022 .