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: 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 Precedence: bulk [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