Newsgroups: comp.os.msdos.programmer
Path: utzoo!utgpu!barry
From: barry@gpu.utcs.utoronto.ca (Barry Lay)
Subject: Re: Handling interrupts in C
Message-ID: <1991May29.174219.16339@gpu.utcs.utoronto.ca>
Organization: UTCS Public Access
References: <1991May20.171545.23591@amc.com> <1991May21.140557.16018@cbnewsc.att.com> <334@nazgul.UUCP> <1991May29.044612.8057@bnr.ca>
Date: Wed, 29 May 1991 17:42:19 GMT

MSC appears to have the interrupt keyword for functions as well, and will take
the various register values as parameters.  I would like to know if this is
the way to deal with the "hooks" that you can set up with INT 33h (function
14h, or thereabouts).  That is, can I set up a function which will be called
if, say, mouse button one is pressed.  My understanding of the interrupt
keyword is that a special prologue and epilogue is created which saves all of
the registers (and restores them) and uses IRET rather than RET to return.
What I don't know is what the mouse driver expects the user interrupt routine
to do.

Barry
