[stella] Dumb newbee question

Subject: [stella] Dumb newbee question
From: Adam Wozniak <adam@xxxxxxxxxxxxxxxx>
Date: Tue, 19 Mar 2002 18:24:58 -0800 (PST)
Assuming I've set up my compiler properly, should this work?


#include "tia.h"
#include "riot.h"

void main(void)
{
   int i;
   int j;

   // turn that damn noise off
   AUDV0 = 0;
   AUDV1 = 0;

   while (1)
   {
      // turn everything the same color
      COLUP0 = COLUP1 = COLUPF = COLUBK = i++;

      VSYNC |= 0x02;

      for (j = 0; j < 2; j++)
      {
         // wait for sync
         WSYNC=1;
      }

      VSYNC &= ~0x02;

      for (j = 0; j < 262; j++)
      {
         // wait for sync
         WSYNC=1;
      }

      VBLANK |= 0x02;

      for (j = 0; j < 37; j++)
      {
         // wait for sync
         WSYNC=1;
      }

      VBLANK &= ~0x02;
   }
}

-- 
adam@xxxxxxxxxxxxxxxx        http://cuddlepuddle.org/~adam/pgp.txt

----------------------------------------------------------------------------------------------
Archives (includes files) at http://www.biglist.com/lists/stella/archives/
Unsub & more at http://www.biglist.com/lists/stella/


Current Thread