[cc65] Additional pages with C64-HI.TGI

From: marcas <marcas1chello.at>
Date: 2011-06-07 13:55:19
Hi,

I am currently playing around with the TGI module for c64 (C64-HI.TGI).

How can I tell TGI that i want to have more than 1 page for usage with 
setdrawpage/setviewpage ? Getpgecount just returns 1. Is there some kind 
of ioctl to achieve this? Or is there currently no way to define a 
second draw page?
I know 8000 Bytes is a lot of RAM, but it would be nice to provide at 
least a second page.

Is the (macro asm) source for C64-HI.TGI available somewhere, i did not 
find it. Maybe someone can give me a hint where to find it.

Are there plans for C64 Multicolor yet?

Kind regards marcas


P.S.: A nice function for use in tgidemo.c , free of charge :-) :


void DoSierpinski(void)
{
     static const char Palette[2] = { COLOR_BLUE, COLOR_LIGHTBLUE };
     uint8_t y;
     uint16_t x=tgi_getxres()>>1;

     tgi_setpalette (Palette);
     tgi_setcolor (COLOR_FORE);
     bordercolor (COLOR_LIGHTBLUE);

     for(;;)
     {
         switch (rand()%3)
         {
             case 0:
                 x = (x+(tgi_getxres()>>1))>>1;
                 y = y>>1;
                 break;
             case 1:
                 x = x>>1;
                 y = (y+tgi_getyres())>>1;
                 break;
             case 2:
                 x = (x+tgi_getxres())>>1;
                 y = (y+tgi_getyres())>>1;
                 break;
         }

         tgi_setpixel (x, y);

         if (kbhit ())
         {
             cgetc ();
             tgi_clear ();
             return;
         }
     }
}
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Tue Jun 7 14:11:16 2011

This archive was generated by hypermail 2.1.8 : 2011-06-07 14:11:19 CEST