Mail Archives: djgpp/2003/08/26/02:06:39
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.
- Raw text -