From: ultraabc AT yahoo DOT com (john) Newsgroups: comp.os.msdos.djgpp Subject: How to set the segment:offset in Mouse function 0ch Date: 25 Aug 2003 22:29:58 -0700 Organization: http://groups.google.com/ Lines: 12 Message-ID: <57708049.0308252129.2318ddbb@posting.google.com> NNTP-Posting-Host: 203.87.129.232 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1061875799 6048 127.0.0.1 (26 Aug 2003 05:29:59 GMT) X-Complaints-To: groups-abuse AT google DOT com NNTP-Posting-Date: 26 Aug 2003 05:29:59 GMT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com How do I do this? I made a function( mousehandler(void) ) that supposedly handles mouse events, but I can't pass it in due to the fact that the mouse driver still uses segment offset. I tried putting the selector (_my_cs()) in es, and the 32-bit offset ( (int)mousehandler ) in dx, but that didn't work. I can't use the transfer buffer __tb either, unless there's a way I can pass the entire function there. Can anyone help? I need a way to get the segment:offset pair of the said function, and I don't know how to do it. BTW, the mousehandler function was written in NASM as a coff object file, if that helps.