INT 16 - KEYBOARD - GET ENHANCED SHIFT FLAGS (AT model 339,XT2,XT286,PS)   

Input

Output

AX

12h   Extended Status 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

 

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


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