Mail Archives: djgpp/1997/02/02/19:44:35
In article <01bc0b8c$e5c744e0$0100007f AT Mikey>,
Michael B. Wright <Mikey AT Nxus DOT com> wrote:
>Russ Hubbard <hubbardr AT jntf DOT osd DOT mil> wrote in article
><01bc0a29$44be7280$b27a388f AT JNTF DOT jntf DOT osd DOT mil>...
>> How would I create an array for video memory in djgpp?
>> Currently I have:
>> char far *video_buffer = (char far)0xA0000000L;
>> thanks,
>> Russ-L
>DJGPP uses a protected mode scheme that rearanges your adressing system;
>"char *video_buffer = (char)0xa00000;" might work. Check out the _DJGPP
>Game Programming Page_ by Mr. Brennen Underwood for an excellent
Which is at http://brennan.home.ml.org/djgpp/
>explenation of how this works, a tutorial on "How to access the VGA in
>DJGPP", and comparisons of DPMI vs. real mode programming. The site also
>sports a nuber of links to some very useable works, with perhaps an
>execption to a little cd player(hehe), but I suppose even that did contain
>some quite good code.
Hey, gimme a break. It worked on all the systems I have available to me.
Plus, I've attempted to improve it, mostly in error-catching + so on,
so get 1.1. If it still doesn't work, uh, carry on with the beatings.
Actually, if it doesn't work still, please try running Quake to see if
it can play your CD-ROM. If it can, it must not be a DJGPP-specific thing.
Otherwise, my spec must be wrong. It's a Microsoft spec, so how could that
be?
Brennan
--
brennan AT rt66 DOT com | Ding-a-ding-dang my dang-a-long-ling-long.
Riomhchlaraitheoir|
Rasterfarian | <http://brennan.home.ml.org> -O
- Raw text -