[comp.lang.pascal] IBM-PC Status Keys

Johnny.Chin@andrew.cmu.EDU (Johnny J. Chin) (12/10/87)

------------
The status of [Caps], [Num], and [Scroll] are stored in a memory location.

The memory location may be altered to set their current status.
The memory location is [$0040:$0017].

To set them you can OR the memory by the byte below:
    Caps    $40
    Num	    $20
    Scroll  $10

To cancel them you can AND the memory by the byte below:
    Caps    $BF
    Num	    $DF
    Scroll  $EF

Notice that all the above memory addresses and bytes are in HEX.

------------
Johnny J. Chin