TIP: Click on subject to list as thread! ANSI
echo: 80xxx
to: SYLVAIN LAUZON
from: DENIS BOYLES
date: 1997-04-05 15:20:00
subject: Interrupts

SL> > I suppose it depends on what sort of TSR your developing that
SL> > would determine it's interaction with the system. A simple one like my
SL> > palette changer for example allows things to continue on. However a 
ore
SL> > complicated one like a popup TSR program would probably stop things.
SL>Cool! The palette changer. How long did it take to build? I
Not long actually, it only took about 5 minutes or so to get the initial
idea working. I thought of it as a way to make "night-time" coding a little
easier on the eyes. The gray palette is easier to read and not as bright as
the color palette.
It also gave me something where I could put my Windows '95 keyboard to
good use. Since I used the Windows '95 keys in DOS as the "hot-keys" for
the program. I used the "win" key to set the color palette, and the "menu"
key for the gray palette.
The program itself hooks into the keyboard interrupt #09h so it can check
for it's "hot-keys". The program "flow" looks kinda like this:
+--------+
|KEYPRESS| --> generates interrupt #09h
+--------+              |
                  +--------------+
                  |CHECK KEYPRESS|
                  +--------------+
                        |
                    +--------+
                    |WIN KEY?| --> set color palette -- |
                    +--------+                          |
                        |                               |
                   +---------+                          |
                   |MENU KEY?| --> set gray palette  -- |
                   +---------+                          |
                        |                               |
             jump to original handler               <-- |
SL>remember about a thing like that on my old PC with the GEM
SL>window type software.
Heard of GEM, but I've never used, though I imagine my program is a bit
different.
SL>See you Denis! :-)
Cheers,
  Denis Boyles
 * OLX 2.1 TD * All wiyht.  Rho sritched mg kegtops awound?
--- Maximus/2 3.01
---------------
* Origin: Frog Hollow Port Moody BC 604-469-0264/0284 (1:153/290)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.