[alt.msdos.programmer] reading the kb shift status - summary

djb@wjh12.harvard.edu (David J. Birnbaum) (06/05/90)

About a week ago I posted an inquiry about the relative merits of checking
the keyboard shift status by reading 0:0417 directly or using the available
int 16h function.  Here is the summary I promised:

====================================
Use Int 16.
====================================

Nobody could think of any good reason for refusing to use the BIOS
services. 

Although I didn't make it clear in the original posting, I had not intended
to poll this value, but, rather, to hook int 9 and check the keyboard shift
status whenever there was keyboard activity.

I also posted a separate inquiry about whether it is best to chain to old
interrupt service routines by calling them at the beginning of your
own routine or by jumping to them at the end.  It seems that it might
be better to call the original int 9 routine before checking the kb
status here, since the old routine holds the code that will update the
status you are hoping to read.

Thanks to everyone who replied.

--David
============================================================================
David J. Birnbaum                   djb@wjh12.harvard.edu [Internet]
                                    ...!wjh12!djb [UUCP]
                                    djb@harvunxw.bitnet [Bitnet]