delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/06/20/12:36:48

From: "Alvin Lau" <alvin_lau AT yahoo DOT com>
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 ??


- Raw text -


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