delorie.com/archives/browse.cgi | search |
Date: | Thu, 30 Mar 2000 11:38:02 +0500 |
Message-Id: | <200003300638.LAA00861@midpec.com> |
From: | prashant_tr AT yahoo DOT com (Prashant TR) |
To: | djgpp AT delorie DOT com |
In-reply-to: | <054a4830.80e90c42@usw-ex0105-036.remarq.com> (message from |
batchex on Wed, 29 Mar 2000 11:52:30 -0800) | |
Subject: | Re: VBE question |
References: | <054a4830 DOT 80e90c42 AT usw-ex0105-036 DOT remarq DOT com> |
Reply-To: | djgpp AT delorie DOT com |
Errors-To: | nobody AT delorie DOT com |
X-Mailing-List: | djgpp AT delorie DOT com |
X-Unsubscribes-To: | listserv AT delorie DOT com |
batchex <thedark1NOthSPAM AT phreaker DOT net DOT invalid> proclaimed: > I'm trying to set some VBE modes with Linear Frame Buffer (LFB). > I've abled to set the mode and map the LFB (at around 3 GB), but > then, how do I use the mapped address. > > Here's what I do : > > LFBPtr = the mapped address returned by int 31h func. 800h > ((ebx << 16) + (ecx & 0xFFFF)) > for(i=0;i<width;i++) > LFBPtr[i] = some value > > This approach crash my program. > > I've read somewhere that I have to allocate a descriptor for use > with the mapped address. But at what base address? limit? Why don't you try __djgpp_map_physical_memory? It's much easier than using DPMI functions, IMHO.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |