delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/10/01/04:16:31

From: Matthew Mastracci <mmastrac AT acs DOT ucalgary DOT ca>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Segment & Offset
Date: Tue, 30 Sep 1997 20:49:48 -0600
Organization: The University of Calgary
Lines: 29
Message-ID: <60sdpe$13c8@ds2.acs.ucalgary.ca>
References: <342FC820 DOT DB745851 AT vip DOT cybercity DOT dk>
NNTP-Posting-Host: mmastrac AT acs2 DOT acs DOT ucalgary DOT ca
Mime-Version: 1.0
In-Reply-To: <342FC820.DB745851@vip.cybercity.dk>
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019