RE: [stella] programming teaser

Subject: RE: [stella] programming teaser
From: "Dennis Debro" <dennis@xxxxxxxxxxxxxxx>
Date: Fri, 20 May 2005 06:02:33 -0400
Hi Andrew,

> As promised, here is a programming teaser.  Explain how the following code
> could ever exit?
>         ldy #10                        ; draw scanlines in groups of 21
> (ie:
> 1 character row)
> 
> anotherLine
>             ; draw a scanline here (code omitted)
> 
>         sta WSYNC
> 
>         dey
>         bne anotherLine
>         bmi Continue

Am I missing something here? When y equaled 0 wouldn't the routine fall
through and not bmi?

Take care,
Dennis


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

Current Thread