delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/12/16/02:14:30

Date: Tue, 16 Dec 1997 10:10:55 +0100 (GMT+0100)
From: Petr Mrazek <mrazek AT cas3 DOT zlin DOT vutbr DOT cz>
To: Konference DJGPP <djgpp AT delorie DOT com>
Subject: VGA off-topic
Message-ID: <Pine.LNX.3.91.971216095944.14995B-100000@cas3.zlin.vutbr.cz>
MIME-Version: 1.0

Hi,
excuse me for off-topic, but I don't have time to search other newsgroups.

My program runs in VGA graphics mode 640x480x16 and I don't know how to 
write into VGA memory from buffer in RAM. In this mode VGA uses 4 bytes 
for 8 pixels (4-bit color), right? When setting only one pixel, I must set 
the mask and then write color to VGA (very simple said). Is to possible to 
write for example two pixels with two different colors in one step? Or 
how to directly acces these 4 bytes (mentioned above)?

I hope that my questions is clear.

Answer to my e-mail please.		Thanks very much.

/*         Petr Mrazek                                                    */
/* e-mail: mrazek AT cas3 DOT zlin DOT vutbr DOT cz                                      */
/* SMS:    petr DOT mrazek AT sms DOT paegas DOT cz (120 chars - junk mails here please) */
/* phone:  +420-603-501050                                                */
/*                                        Zlin, Czech republic            */

- Raw text -


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