[comp.lang.pascal] caps lock toggle question

MATHRICH@umcvmb.missouri.edu (Rich Winkel UMC Math Department) (03/04/89)

My XT tech reference here says the caps lock state is indicated by
a 1 in bit $40 at byte $40:$17.  So:

mem($40:$17):=mem($40:$17) OR $40; (* turns on caps lock state *)
mem($40:$17):=mem($40:$17) AND $BF; (* turns off caps lock state *)

(sorry, I can't enter square brackets on this keyboard .. mem should have
brackets, not parens)

Rich