delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/11/01/13:52:16

From: ao950 AT FreeNet DOT Carleton DOT CA (Paul Derbyshire)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Real mode -> Protected mode ptr conversion
Date: 1 Nov 1997 05:19:39 GMT
Organization: The National Capital FreeNet
Lines: 20
Message-ID: <63ee5b$qh5@freenet-news.carleton.ca>
References: <NEWTNews DOT 878364937 DOT 4261 DOT me AT dialup152-1-50 DOT swipnet DOT se>
Reply-To: ao950 AT FreeNet DOT Carleton DOT CA (Paul Derbyshire)
NNTP-Posting-Host: freenet5.carleton.ca
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

[posted and mailed]

 (mr DOT doom AT la DOT multi DOT se) writes:
> I need help...
> 
> How do I convert a real mode pointer to protected mode?
> When getting VESA modes, you get a real mode pointer to a list containing
> all available modes, but I can't get it to protected mode...

I assume by real-mode pointer you mean a farptr? I think you have to
malloc a chunk of memory (protected mode of course), and use movedata to
copy the real-mode data there, where you can then manipulate it as you
normally would. Check the libc docs about movedata and far pointers.

--
    .*.  Where feelings are concerned, answers are rarely simple [GeneDeWeese]
 -()  <  When I go to the theater, I always go straight to the "bag and mix"
    `*'  bulk candy section...because variety is the spice of life... [me]
Paul Derbyshire ao950 AT freenet DOT carleton DOT ca, http://chat.carleton.ca/~pderbysh

- Raw text -


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