www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/06/18/01:42:43

Date: Tue, 18 Jun 1996 08:24:40 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Michael Ritzert <Ritzert AT t-online DOT de>
Cc: djgpp AT delorie DOT com
Subject: Re: FP_OFF / FP_SEG
In-Reply-To: <4pumrr$do2@news00.btx.dtag.de>
Message-Id: <Pine.SUN.3.91.960618081959.15901D@is>
Mime-Version: 1.0

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 -


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