🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.msdos.programmer
Article #5497

Re: Vga Palette regisiters

#5497
From: n liu
Date: Thu, 28 Mar 1991 23:05
25 lines
1809 bytes
joe@proto.com (Joe Huffman) writes:

>bpz4r@holmes.acc.Virginia.EDU (Bernard Paul Ziegler) writes:

>>I'm looking for help on how to directly write to the VGA's palette
>>registers, in order to do quick color scrolling.  Using the BIOS
>>functions is too slow.  Does anyone know of some references for this?
>>I have a paradise VGA card.

Actually, the hard part here is getting the screen updates to sync with 
the damn register writes so you don't get a flickering black band
across the middle of your screen... I tried to write a simple one
a while ago, and biffed some of the palette rotation machine code
from Fractint source - it ran pretty poorly, since i'm no assembly
coder.  Does anybody have some good stand-alone source or object
code that can be used with MSC 600 which rotates the palette quickly?
I know the basics of the palette registers, so i'm more interested in
the timing. From looking at the Fractint code, it seemed that after every
write to the registers, they checked on the status of the screen update,
and if it was incomplete, they cut the size of the block updated at once
into smaller blocks - change a block, wait for update, change next block,
etc., until all registers are updated. Is this an accurate guess? Or 
are non-bios functions fast enough to not worry about this?

nye
Technical Details
Message-ID: <1991Mar28.230504.840@nntp-server.caltech.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!jarthur!nntp-server.caltech.edu!nyet
References: <1991Mar27.174723.20640@murdoch.acc.Virginia.EDU> <1991Mar28.192908.23697@proto.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!jarthur!nntp-server.caltech.edu!nyet
From: nyet@nntp-server.caltech.edu (n liu)
Newsgroups: comp.os.msdos.programmer
Subject: Re: Vga Palette regisiters
Message-ID: <1991Mar28.230504.840@nntp-server.caltech.edu>
Date: 28 Mar 91 23:05:04 GMT
References: <1991Mar27.174723.20640@murdoch.acc.Virginia.EDU> <1991Mar28.192908.23697@proto.com>
Organization: California Institute of Technology, Pasadena
Lines: 25