Subject: Re: [stella] programming teaser From: "Fred Quimby" <c9r@xxxxxxxxxxx> Date: Fri, 20 May 2005 06:56:03 -0400 |
Maybe your bankswitching instruction swaps the code out after x=8 and finds an RTS where the ldy #21 was? Other than that I have no clue. >From: "Andrew Davie" <atari2600@xxxxxxxxxxxxx> >Reply-To: stella@xxxxxxxxxxxxxxxxxx >To: <stella@xxxxxxxxxxxxxxxxxx> >Subject: Re: [stella] programming teaser >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 > Archives (includes files) at http://www.biglist.com/lists/stella/archives/ Unsub & more at http://stella.biglist.com
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [stella] programming teaser, Dennis Debro | Thread | RE: [stella] programming teaser, Dennis Debro |
Re: [stella] VCS C programming, Fred Quimby | Date | RE: [stella] programming teaser, Dennis Debro |
Month |