Mail Archives: djgpp/1997/10/01/04:16:31
On Mon, 29 Sep 1997, Gustav Roder wrote:
> I'm writing a mouse-handler in DJGPP. I need to get the segment and
> offset of my handler-function.
>
> How can I estimate the segment and offset of a function in DJGPP?
>
> BTW - do you know a good source for a mouse-handler in DJGPP-source?
If you're doing something like this, you might want to consider using
NASM for your driver. If you don't know, NASM is an Intel-syntax (as
opposed to AT&T) compiler that can output to DJGPP-format COFF files.
I've got a tutorial that includes a step-by-step mouse driver at:
http://www.ucalgary.ca/~mmastrac/djgppasm.doc
There's some supplimentary source at:
http://www.ucalgary.ca/~mmastrac/djnasmex.zip
Of course, you can always d/l the Allegro package and see how the
mouse routines are done there, if you want to use AT&T syntax.
/\/\att /\/\astracci mmastrac AT acs DOT ucalgary DOT ca
GCS/GE d- s+:+ a--- C++++ UA P+ L E-- W+ N++ o K+ w+ O M- V
PS++ PE++ Y+ PGP t+++ 5+++ X++ R++ tv+ b+++ DI++++ I
G++ e h r* z?
- Raw text -