Mail Archives: djgpp/1996/08/12/06:50:20
On Fri, 9 Aug 1996, John Joseph Newbigin wrote:
>I was thinking about the ways to access graphics video memory and it hit
>me that it the video memory could be paged so that it is part of the data
>segment then it can be accessed with a near pointer and still keep memory
>protection.
>
>I have not tried any of the DPMI services in DJGPP so I don't know how
>easy or hard this would be, or if it is possible at all, so I am
>suggesting it here. Does anyone know if this is possible and if so, how
>to do it?
Well, I guess it might be accomplished using __dpmi_map_device_memory (maybe
it is not the exact name, but you'll recognise it ;-))). Note however that
this is a DPMI 1.0 call which is simulated by CWSDPMI, and might be not
supported (or rather IT IS NOT supported) by other 0.9 servers.
I'm not sure, however, whether it is possible to tailor the allocated buffer
to the default data seg of djgpp app.
Regards, Mark
/************************************************************/
/** Maybe it was infatuation or the thrill of a chase? **/
/** Maybe you were always beyond my reach and my heart **/
/** was playing safe? ***********/
/** But was that love in your eyes I saw, **/
/** or the reflection of mine? **/
/** I'll never really know for sure, **/
/** You never really gave me time! **/
/** Won't you give me that time? **/
/** "Cindirella Search" **/
/********************************/
Visit my homepage: http://ananke.amu.edu.pl/~grendel
- Raw text -