From: brennan AT news DOT rt66 DOT com (Brennan "The Rev. Bas" Underwood) Newsgroups: comp.os.msdos.djgpp Subject: Re: 0xA0000000h Date: 2 Feb 1997 15:48:39 -0700 Organization: Acid Brain Lines: 36 Distribution: world Message-ID: <5d35k7$cn8$1@mack.rt66.com> References: <01bc0a29$44be7280$b27a388f AT JNTF DOT jntf DOT osd DOT mil> <01bc0b8c$e5c744e0$0100007f AT Mikey> NNTP-Posting-Host: mack.rt66.com To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp In article <01bc0b8c$e5c744e0$0100007f AT Mikey>, Michael B. Wright wrote: >Russ Hubbard 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 | -O