www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/12/20/06:30:30

From: "Tobias Nygren" <tobias DOT nygren AT telia DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: problems with linear frame buffer
Date: Sun, 20 Dec 1998 12:25:19 +0100
Organization: Telia Internet Services
Lines: 29
Message-ID: <367cdf99.0@d2o32.telia.com>
NNTP-Posting-Host: d2o32.telia.com
X-Newsreader: Microsoft Outlook Express 4.72.3110.5
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
X-NNTP-Posting-Host: t2o32p50.telia.com
X-Complaints-To: abuse AT internet DOT telia DOT com
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

I am writing a program that uses VESA mode 10F, 320x200x16.8M.

I have got the physical memory adress from the modeinfo block.
It is 0xe1000000 ...


I want the modeinfo.physbaseptr into an
    unsigned char *bigbuffer;

... to be able to do things like

bigbuffer[x*3+y*3*320]=red;
bigbuffer[1+x*3+y*3*320]=green;
bigbuffer[2+x*3+y*3*320]=blue;


I know it has got something to do with __dpmi_physical_address_mapping()...

But I'd appreciate some help(or maybe an example?)

Thanks!








- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019