From: Andrew Cottrell Newsgroups: comp.os.msdos.djgpp Subject: Re: Writing Directly to Display memory Date: Wed, 23 Apr 2003 15:59:37 +1000 Organization: ECLiPSE Lines: 29 Message-ID: References: <8987bd5a DOT 0304220707 DOT 648694ff AT posting DOT google DOT com> NNTP-Posting-Host: p14-max21.syd.ihug.com.au Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: lust.ihug.co.nz 1051077584 29427 203.173.153.206 (23 Apr 2003 05:59:44 GMT) X-Complaints-To: abuse AT ihug DOT co DOT nz NNTP-Posting-Date: Wed, 23 Apr 2003 05:59:44 +0000 (UTC) X-Newsreader: Forte Agent 1.92/32.572 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com >Hi Guys, >I have some simple question here,that i hope u guys can easily solve. >I want to initialise my display in 640*480*24 mode i.e VBE 112 h using >this function. >setmode() >{ >union REGS r; >r.x.ax=0x4f00; >r.x.bx=0x112; >int86(0x10,&r,&r); >} >How will i make sure that my card is set to VBE mode 112 ? Look at the return codes in the registers. You may need to look at the VBE spec for this. >After this i want to write to display memory directly my RGB data >which is 8 bits each to display a pixel. >Say my display memory is initialised at 0xA0000000L and I have RGB >Data with me corresponding to a pixel then how can write this to >display memory to glow the pixel.? >Please give your expert comments I would NOT advise this as you will then haev to include bank switching code when you get to the 64K boundary. Overall I would advise looking at Allegeo (http://alleg.sourceforge.net/) and using it. This will save you allot of time and effort. Andrew