[Coco] [Spam] Re: 8 color coco 2 graphic display
Simon Jonassen
simon at roust-it.dk
Mon Apr 22 14:49:20 EDT 2013
Hey all !
Definately all about timing as John Linville has clearly proved with his 44
colour routine....
The first thing one needs to achieve is a stable raster routine... Then
count the clock cycles per line and hit the right point every line
around....
Nop is your friend aswell as brn (essentially a 2 byte 3 clock nop).....
$ff22 is hiding alot more secrets... As i proved by opening up the right
hand side border....
/Simon :-)
-----Oprindelig meddelelse-----
Fra: coco-bounces at maltedmedia.com [mailto:coco-bounces at maltedmedia.com] På
vegne af Luis Antoniosi (CoCoDemus)
Sendt: 22. april 2013 20:39
Til: CoCoList for Color Computer Enthusiasts
Emne: [Spam] Re: [Coco] 8 color coco 2 graphic display
its similar to programming an Atari vdg2600, where there is no framebuffer,
the video registers must be changed while the scanline draws the image on
screen.
On Sun, Apr 21, 2013 at 9:07 AM, John W. Linville
<linville at tuxdriver.com>wrote:
> On Sun, Apr 21, 2013 at 12:12:10AM +0000, Ben wrote:
>
> > I saw a game made for the coco 2 that was able to use 8 colors in a
> game. Is
> > there some sample code around on how to do this? The game I found
> > was
> dragon
> > fire. Of course the trick didn't work in the vcc emulator, but I'd
> > like
> to try
> > and do this on my real coco 2. Also is this trick easy to do? is it
> > worth doing? or is the work involved more trouble then it's worth?
>
> This is half of what I am doing in Sluzzle. (The other half is the
> flip between CG6 and SG24, FWIW.)
>
> The description given by Torsten is essentially correct. One must
> time the switching of the CSS bit to correspond to the screen
> positions you want for each color set. That generally requires cycle
> counting, but other timing mechanisms might work depending on exactly
> what you are trying to accomplish.
>
> I have some description of doing this in the earlier entries at my
> Stupid VDG Tricks blog:
>
> http://vdgtricks.blogspot.com/
>
> There are also links on the blog to Git trees (both for sluzzle.git
> and the earlier vdgtricks.git) containing code that does the CSS
switching.
>
> Good luck! Feel free to ping me about it or to continue the thread
> here. :-)
>
> John
> --
> John W. Linville Someday the world will need a hero, and
you
> linville at tuxdriver.com might be all we have. Be ready.
>
> --
> Coco mailing list
> Coco at maltedmedia.com
> http://five.pairlist.net/mailman/listinfo/coco
>
--
Long live the CoCo
--
Coco mailing list
Coco at maltedmedia.com
http://five.pairlist.net/mailman/listinfo/coco
-----
Ingen virus fundet i denne meddelelse.
Kontrolleret af AVG - www.avg.com
Version: 2012.0.2241 / Virusdatabase: 3162/5765 - Udgivelsesdato: 22-04-2013
-----
Ingen virus fundet i denne meddelelse.
Kontrolleret af AVG - www.avg.com
Version: 2012.0.2241 / Virusdatabase: 3162/5765 - Udgivelsesdato: 22-04-2013
More information about the Coco
mailing list