Re: [stella] Arrrg, Arrrg, and Double Arrrg!!!

Subject: Re: [stella] Arrrg, Arrrg, and Double Arrrg!!!
From: Robin Harbron <macbeth@xxxxxxxxxxxxxxxxxxx>
Date: Mon, 14 Apr 1997 23:40:37 -0400
Eckhard Stolberg wrote:

> The same behaviour occurs on my system too and the problem lies here:
> 
> >        ldx  #$ab
> >blow    sta  WSYNC
> >        dex
> >        bpl  blow
> >        rts
> 
> When X is decreased to $7f the branch isn't taken anymore and
> therefore you are doing a lot less lines than you wanted to.

Wouldn't the bpl immediately fail?  If X is anything above
$7f, it won't loop.  Just change it to:

        ldx  #$ac
blow    sta  WSYNC
        dex
        bne  blow
        rts

for the effect you were probably looking for.
--
Robin Harbron    macbeth@xxxxxxxxxxx
   http://www.tbaytel.net/macbeth

--
Archives (includes files) at http://www.biglist.com/lists/stella/archives/
Unsub & more at http://www.biglist.com/lists/stella/stella.html
Don't post pirate BINs to Stellalist.  Be a programmer, not a pirate.
Write the best game, win framed autographs of famous Atari alumni!!

Current Thread