Sender: nate AT cartsys DOT com Message-ID: <376D6DAE.9297D12E@cartsys.com> Date: Sun, 20 Jun 1999 15:39:42 -0700 From: Nate Eldredge X-Mailer: Mozilla 4.08 [en] (X11; I; Linux 2.2.10 i586) MIME-Version: 1.0 To: djgpp AT delorie DOT com Subject: Re: How to combine segment:offset to far pointer References: <376d0f9a AT ruby DOT hknet DOT com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Reply-To: djgpp AT delorie DOT com Alvin Lau wrote: > > I need to receive the segment and the offset from CPU registers: es and bp. > And combine these into far pointer. > > In real mode the code is as follow: > union REGPACK r; > unsigned char far *fp; > fp = MK_FP(r.x.es, r.x.bp); > > But I can't find the macro MK_FP in DJGPP. > So, how can I do this in DJGPP ?? FAQ section 17.7. (A popular one today...) -- Nate Eldredge nate AT cartsys DOT com