Article View: alt.msdos.programmer
Article #688Re: Mouse programming
From: George Jetson
Date: Mon, 05 Oct 1992 14:09
Date: Mon, 05 Oct 1992 14:09
21 lines
1703 bytes
1703 bytes
In article <1992Oct5.000501.3735@ccu1.aukuni.ac.nz> stuartw@ccu1.aukuni.ac.nz (Stuart Woolford) writes: >How do you write a routine in pascal ( or C...asm...etc ) which will be called >by the standard callback function of the driver ( when a button is pressed, etc >), and which can still address the programs global variables, the problem is >that, when the routine is called, DS points at the MOUSE DRIVERS data segment, >and I at least could not think of an easy way to address the programs global >data, which will NOT be at a fixed address :-( You could stick a copy of the program's DS into the ICA (4F0:0-F) on startup and then have your routine pick it up from there. ************************************************************************ A note to new readers: the weasely :-) symbol is frowned upon in this group. Any questions, see Phil Gustafson who will gladly rearrange your diodes for you. - From the AFU FAQ - - pynq@quads.uchicago.edu, who is still costing the net hundreds, if not thousands, of dollars, every time he posts - ************************************************************************
Technical Details
Message-ID:
<1992Oct5.140904.13535@midway.uchicago.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!noc.near.net!news.Brown.EDU!qt.cs.utexas.edu!yale.edu!spool.mu.edu!uwm.edu!psuvax1!rutgers!uwvax!uchinews!quads!pynqReferences:
<1992Oct5.000501.3735@ccu1.aukuni.ac.nz>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!noc.near.net!news.Brown.EDU!qt.cs.utexas.edu!yale.edu!spool.mu.edu!uwm.edu!psuvax1!rutgers!uwvax!uchinews!quads!pynq From: pynq@quads.uchicago.edu (George Jetson) Newsgroups: alt.msdos.programmer Subject: Re: Mouse programming Keywords: Mouse Message-ID: <1992Oct5.140904.13535@midway.uchicago.edu> Date: 5 Oct 92 14:09:04 GMT References: <1992Oct5.000501.3735@ccu1.aukuni.ac.nz> Sender: news@uchinews.uchicago.edu (News System) Reply-To: pynq@midway.uchicago.edu Organization: D. J. Dougherty & Associates Lines: 21