Path: utzoo!attcan!uunet!lll-winken!ames!nrl-cmf!ukma!psuvm.bitnet!mrs120 From: MRS120@PSUVM.BITNET Newsgroups: comp.sys.ibm.pc Subject: Mouse (int 33h) problems Message-ID: <68532MRS120@PSUVM> Date: 24 Jan 89 19:42:33 GMT Organization: Penn State University - Center for Academic Computing Lines: 34 I am trying to interface a Turbo Pascal 4.0 program with the Microsoft Mouse driver & am having some difficulties. My problem boils down to the following: After loading the mouse driver & my program I want to configure the mouse so that when either button is pushed, an interrupt routine I have written (In Turbo pascal 4.0) is called & executed. Using Int 33h, setting AX to 12, CX to Mask, and DX to OFFSET, one would expect everything to work fine... wrong. A detailed trace shows the OFFSET value being passed is pointing to La-La land & thus this doesn't work. Fine. Next try: Writting my OWN assembly routine (not trusting Turbo Pascal to pass a correct OFFSET value) still blows up the computer, BUT: A trace shows the mouse driver correctly passing off control to my short assembly driver. Unfortunately, all my routine attempts to do is RETurn control to the mouse interrupt routine. Nothing happens & the system hangs. Tracing shows the system returning to some empty segment of memory (ie: Definitely the wrong place). Any ideas? Is there some mystic, Microsoft blessed, way of returning control from this? Arghhhhhh!!!!! Thanx in advance... ---------------------------------------------------------------------------- | Mark Supinski | "Didja ever wonder what they do with MRS120@PSUVM.BITNET | frog ARMS?" Ma Bell (814) 867-2550 | U.S. Snail 207 Hammond Bldg | Ipsum Facto, E pluribus Unum, detente, Univ Park Pa 16801 | Chow Mein, Glastnost... | You get the idea...... _________________________________|__________________________________________