From: "Alvin Lau" Newsgroups: comp.os.msdos.djgpp Subject: How to combine segment:offset to far pointer Date: Sun, 20 Jun 1999 23:54:44 +0800 Lines: 12 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2014.211 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211 NNTP-Posting-Host: 202.67.162.87 X-Original-NNTP-Posting-Host: 202.67.162.87 Message-ID: <376d0f9a@ruby.hknet.com> X-Trace: 20 Jun 1999 23:58:18 +0800, 202.67.162.87 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com 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 ??