Re: [stella] programming teaser

Subject: Re: [stella] programming teaser
From: "Andrew Davie" <atari2600@xxxxxxxxxxxxx>
Date: Fri, 20 May 2005 05:57:50 -0400
I goofed.  The bmi should be beq. And the line constant was miscommented.
Murphy's Law ;)   Here is the corrected version of 'Tricky'...

> loop
>        jsr Tricky            ; do we ever return from this subroutine?
>        inc colour            ; yes!  but how?!!
>        lda colour
>        sta COLUBK
>        jmp loop
>
>
>
> Tricky
>
>        ldx #$FF                                            ; 'character' 
> line
>
> Continue
>
>        inx
>        stx SET_BANK_RAM                ; bankswitch to appropriate RAM
>
>        ldy #21                        ; draw scanlines in groups of 21
>
> anotherLine
>            ; draw a scanline here (code omitted)
>
>        sta WSYNC
>
>        dey
>        bne anotherLine
>        beq Continue

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

Current Thread