Mail Archives: djgpp/1997/11/01/13:52:16
[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 -