From: "Michael B. Wright" Newsgroups: comp.os.msdos.djgpp Subject: Re: 0xA0000000h Date: 26 Jan 1997 13:58:51 GMT Organization: Tallahassee Free-Net Lines: 20 Message-ID: <01bc0b8c$e5c744e0$0100007f@Mikey> References: <01bc0a29$44be7280$b27a388f AT JNTF DOT jntf DOT osd DOT mil> NNTP-Posting-Host: fts4p2-bfs.scri.fsu.edu Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp 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 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. -Good luck Michael Wright Mikey AT Nxus DOT com