Re:dac Registers

 BBS: Inland Empire Archive
Date: 05-27-92 (01:55)             Number: 134
From: RICH GELDREICH               Refer#: NONE
  To: BRETT LEVIN                   Recvd: NO  
Subj: Re:dac Registers               Conf: (2) Quik_Bas
>      Does anybody have a way to get the colors in the VGA register
> (mode 13)? Possibly an INP?  Thanks.
>     Brett

    I've recently posted 2 programs that do what you ask. One's in
assembly and the other is in pure QB. The messages labeled "VGA SCREEN

    If you can't find it, then do this:

    Out &h3c7, color:out &h3c8, color       '<--- out to BOTH !!!

    Where "color" is the color you want to find(put it in a for/next
loop to find all of the RGB colors...).

    Have fun!

    Rich Geldreich

    P.S. I've recently seen that some people only OUT to &h3C7 when
loading or changing the DAC colors. THIS DOES NOT WORK ON SOME VGA'S!!
Out to both &h3C7 AND &h3C8!!

    Don't ask why it doesn't work on some computers when you only OUT to
the first port. I'm didn't make the darn things...

--- RBBSMAIL 17.2A
 * Origin: Computer Co-Op RBBS HST, 609-784-9404 Voorhees
NJ (RBBS-PC 1:266/29)
Outer Court
Echo Basic Postings

Books at Amazon:

Back to BASIC: The History, Corruption, and Future of the Language

Hackers: Heroes of the Computer Revolution (including Tiny BASIC)

Go to: The Story of the Math Majors, Bridge Players, Engineers, Chess Wizards, Scientists and Iconoclasts who were the Hero Programmers of the Software Revolution

The Advent of the Algorithm: The Idea that Rules the World

Moths in the Machine: The Power and Perils of Programming

Mastering Visual Basic .NET