Billy
wpc...@cts.com
There are two "keyboard shift flags"...located at 0040h:0017h and
0040h:0018h. Everytime you press or release the shift, alt, ctrl,
ins, caps lock, numlock, scroll lock or sys request key, the int
09h handler changes bits in these flags. The following table give
the details about the individual bits of 0040h:0017h. the other
shift flag gives more detailed info (such as when the keys are
pressed/release) about insert, caps lock, num lock, scroll lock,
pause (ctrl-numlock), sys request, and individual alt and ctrl
keys. I'm not including it cuz it's alot of typing, but if you
want/need this info, let me know and I'll mail it to ya...
Russell Hansen rha...@masterkey.win.net
---- 0040h:0017h ----
Bit # Meaning
-------------------------------------------------------------------
76543210
-------------------------------------------------------------------
^^^^^^^^
||||||||
|||||||+----------> 0: the right shift key is not depressed
||||||| 1: the right shift key is depressed
||||||+-----------> 0: the left shift key is not depressed
|||||| 1: the left shift key is depressed
|||||+------------> 0: the ctrl key is not depressed
||||| 1: the ctrl key is depressed
||||+-------------> 0: the alt key is not depressed
|||| 1: the alt key is depressed
|||+--------------> 0: scroll lock is inactive
||| 1: scroll lock is active
||+---------------> 0: Num lock is inactive
|| 1: Num lock is active
|+----------------> 0: caps lock is inactive
| 1: caps lock is active
+-----------------> 0: insert is inactive
1: insert is active