delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/04/23/08:28:44

Date: Thu, 23 Apr 98 17:11:43 PST
From: "altaf.aali" <altaf DOT aali AT cressoft-khi DOT com DOT pk>
Message-Id: <9803238933.AA893374626@cressoft.comsats.net.pk>
To: djgpp AT delorie DOT com, "Javier Calleja" <dismuntel AT apdo DOT com>
Subject: Re: Please, help me !!! (FP_SEG and FP_OFF problems)

     I have had exactly the same problem when I was developing DJIPX (my 
     IPX programming lib for DJGPP) a few months back. I have good and bad 
     news for you :-)
     
     Bad News:  There are no such or even equivalent macros for FP_SEG and 
     FP_OFF in DJGPP. This is because FP_SEG and FP_OFF rely on the 
     organization of the memory in real mode (i.e. in segmnet-offset form) 
     while in PMODE the memory is addressed using a segment selector-offset 
     pair.
     
     Good News: The solution to your problem is of course NOT non-existent 
     but I can only try to help if you specify exactly what are u trying to 
     do e.g. in my case I needed to pass the address of a callback to a 
     real-mode interrupt) since the solution will heavily depend on what is 
     to be achieved.
     
     


______________________________ Reply Separator _________________________________
Subject: Please, help me !!! (FP_SEG and FP_OFF problems)
Author:  "Javier Calleja" <dismuntel AT apdo DOT com> at comsats
Date:    4/23/98 1:52 PM


This is a multi-part message in MIME format.
     
------=_NextPart_000_0004_01BD6E99.855DA380 
Content-Type: text/plain;
 charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
     
  Hello:
 =20
  I am programming an aplication with the DJGPP wich use the Genius net =
card's PacketDriver. I need to call some functions in real-mode (I must = 
put the segment and offset in some registers before I use some = 
functions).So, I'd need to know these dates of some values. In real = 
mode, I could call the macros FP_SEG and FP_OFF, it's easy. But the = 
DJGPP hasn't these macros.
     
  I read your FAQ files, and I found a version of the macro wich get a =
far pointer with one segment and offset (MK_FP macro). But I didn`t find = 
any version of the FP_SEG and FP_OFF macros.
     
  Could some good person help me and tell me where I can find these =
macros or how I can programm it?
     
  Kind regars from Spain.
     
     
Javier Calleja Garc=EDa
Av. Pais Valenciano 155, E
46680-Algemes=ED (Valencia)
Spain
Tlf:+34-96-2481217
     
=20
email:dismuntel AT apdo DOT com
     
------=_NextPart_000_0004_01BD6E99.855DA380 
Content-Type: text/html;
 charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
     
<!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN"> 
<HTML>
<HEAD>
     
<META content=3Dtext/html;charset=3Diso-8859-1 = 
http-equiv=3DContent-Type>
<META content=3D'"MSHTML 4.71.1712.3"' name=3DGENERATOR> 
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT color=3D#000000 face=3DArial size=3D2>&nbsp; = 
Hello:</FONT></DIV>
<DIV><FONT color=3D#000000 face=3DArial size=3D2></FONT><FONT = 
face=3DArial size=3D2>&nbsp;=20
</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp; I am programming an aplication = 
with the=20
DJGPP wich use the Genius net card's PacketDriver. I need to call some = 
functions=20
in real-mode (I must put the segment and offset in some registers before = 
I use=20
some functions).</FONT><FONT face=3DArial size=3D2>So, I'd need to know = 
these dates=20
of some values. In real mode, I could call the macros FP_SEG and FP_OFF, = 
it's=20
easy. But the DJGPP hasn't these macros.</FONT></DIV> 
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp; I read your FAQ files, and I = 
found a version=20
of the macro wich get a far pointer with one segment and offset (MK_FP = 
macro).=20
But I didn`t find any version of the FP_SEG and FP_OFF = 
macros.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp; Could some good person help me = 
and tell me=20
where I can find these macros or how I can programm it?</FONT></DIV> 
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp; Kind regars from = 
Spain.</FONT></DIV>
<DIV><FONT color=3D#000000 face=3DArial size=3D2></FONT>&nbsp;</DIV> 
<DIV><FONT color=3D#000000 face=3DArial size=3D2></FONT>&nbsp;</DIV> 
<DIV><FONT color=3D#000000 face=3DArial size=3D2>Javier Calleja = 
Garc&iacute;a<BR>Av.=20
Pais Valenciano 155, E<BR>46680-Algemes&iacute;=20 
(Valencia)<BR>Spain<BR>Tlf:+34-96-2481217<BR><BR> <BR><A=20 
href=3D"mailto:email:dismuntel AT apdo DOT com">email:dismuntel AT apdo DOT com</A></FO= 
NT></DIV></BODY></HTML>
     
------=_NextPart_000_0004_01BD6E99.855DA380--
     

- Raw text -


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