amw@cunixb.cc.columbia.edu (Andrew M. Winkler) (12/17/89)
I need to use the int86x library function in C, to call an interrupt vector. I need to put a pointer in the ES:DI registers. How do I do that? I know that there are the inregs, but how do I split up a (huge) pointer into segment:offset. Thanks!
dold@mitisft.Convergent.COM (Clarence Dold) (12/17/89)
in article <2488@cunixc.cc.columbia.edu>, amw@cunixb.cc.columbia.edu (Andrew M. Winkler) says: > there are the inregs, but how do I split up a (huge) pointer into > segment:offset. Thanks! For Microsoft C: #include <dos.h> char far *ptr; seg_val = FP_SEG(ptr); off_val = FP_OFF(ptr); -- --- Clarence A Dold - dold@tsmiti.Convergent.COM (408) 435-5293 ...pyramid!ctnews!tsmiti!dold FAX (408) 435-3105 P.O.Box 6685, San Jose, CA 95150-6685 MS#10-007