Dec 062017
 
QuickBasic Function that writes key states(NumLock, etc) to screen. Asm source included.
File KEYFLAGS.ZIP from The Programmer’s Corner in
Category BASIC Language
QuickBasic Function that writes key states(NumLock, etc) to screen. Asm source included.
File Name File Size Zip Size Zip Type
KYSTATES.ASM 5085 1928 deflated
KYSTATES.BAS 2424 918 deflated
KYSTATES.OBJ 629 480 deflated
READ.ME 1146 628 deflated
TEST.QLB 5441 3347 deflated
TPCREAD.ME 199 165 deflated

Download File KEYFLAGS.ZIP Here

Contents of the READ.ME file


This function solved a problem in a spelling checker that I am writing.
The spelling checker did not stop for user input until it found a misspelled
word. So how was I to keep track of mainly the Caps Lock and the Insert keys.
I could have used key trapping, but that would have added a lot of code and
slowed the program down. I needed to keep the program as small and as fast as
possible.

So, I got the idea of an interrupt handler from Ethan Winer's book, "Basic
Techniques and Utilities." This book has an interrupt handler called "NoReboot",
which I rewrote.

If anyone can use this, they are welcome to it. There is one thing I would like.
I am not an expert assembly language programmer, but even I can see that this is
not well written. If anyone rewrites this function, improves it, etc, I would
like a copy of the improvements.

In my program, the NumLock key is really a Hot Key. Pressing the NumLock key in
my program writes either "English" or "Russian" to the screen instead of Numlock.

I can be contacted on the Programmer's Corner or at

Doyce D. Burton
1312 Gatwick Rd.
Glen Burnie, Md.
21061


 December 6, 2017  Add comments

Leave a Reply