[comp.lang.pascal] capturing INT 9

hmatisa@wpi.wpi.edu (Huzrei M. Isa) (08/06/90)

Hello,

I would like to check for specific key everytime the keyboard is
pressed.  In order to do this, my intuition told me that I can
capture the keyboard interrupt vector(int 9), examine the key, and if that
is the key that I want, my program will execute a subroutine.

This problem is, if the key is not what I want, I'll have to pass
execution back to the original keyboard interrupt handler...
Questions :

How do I do that in Pascal?  How do I get the instruction pointer to
goto original keyboard interrupt vector and then jump back into my
program?   Is there any way I can do it without plunging into massive
assembly language code?  I know 8088 assembly language but not much...

Nope, I'm not writing a memory resident program.  I'd like to use
this feature in my user interface code where the user can press i.e.
ALT-F in the middle of doing `other' things and `suddenly' a file
directory (or whatever) appear onscreen.

				Thanks.
-- 
.............................  //|||\\  ....................................
1. Biar cepat asal dapat        |O O|    hmatisa@wpi.wpi.edu
2. Orang tamak SELALU untung!    \-/      \/
                               /~~V~~\____/