[stella] how tos

Subject: [stella] how tos
From: Glenn Saunders <cybpunks2@xxxxxxxxxxxxx>
Date: Mon, 24 Sep 2001 10:18:05 -0700
At 12:45 PM 9/24/2001 -0400, you wrote:
<<
lso i dont see how the colors are done. like the series of colors able to be used . i know the PC has 256 how many does the 2600 have 8 ,16??? also do you know how the color is done? these are minor
<<


You should probably read the Stella programmer's guide first for these sorts of questions.

Just remember that what you see on the screen is the result of a kernel, or series of lines of code that builds the screen one line at a time.

If you want to draw a box programmatically, you'd do something like this (assuming playfield in reflect mode). This should work:

LDA #%11111111
STA PF0
STA PF1
STA PF2
WSYNC
WSYNC ; the 2600 repeats whatever it did in previous scanlines unless you change the registers.
WSYNC
WSYNC
WSYNC


LDA #%10000000
STA PF0
LDA #%00000000
STA PF1
STA PF2
WSYNC
WSYNC
WSYNC
WSYNC
WSYNC

LDA #%11111111
STA PF0
STA PF1
STA PF2
WSYNC
WSYNC ; the 2600 repeats whatever it did in previous scanlines unless you change the registers.
WSYNC
WSYNC
WSYNC



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

Current Thread