Mail Archives: djgpp/1996/06/18/01:42:43
On 15 Jun 1996, Michael Ritzert wrote:
> I need to find out the segment and offset of a structure for an interrupt
> call using MS-DOS. I tried using FP_OFF and FP_SEG, but I only got
> "implicit decleration of function ...". I didn't find any includefile
> defining these functions. How can I use them, or are there different ways
> to solve this problem?
You are jumping right into the deep water before reading the safety
regulations, so to speak. Please download the file v2/faq200b.zip from
the same place you get DJGPP and read chapter 18 of the DJGPP FAQ list.
It explains how to call real-mode interrupts that need pointers to
buffers. This is done in a way that is very different from what you are
used to under 16-bit real-mode compilers, and you don't need FP_SEG or its
simulation to do it. Just read the FAQ and do what it tells you.
- Raw text -