Subject: Re: [stella] An exercise in minimalism... From: "Andrew Davie" <atari2600@xxxxxxxxxxxxx> Date: Mon, 23 Jun 2003 15:37:20 +1000 |
> LDX #$FF > TXS > INX ; BETTER WAY TO GET SP=$FF, X=0 > > TXA > CLEAR PHA > DEX > BNE CLEAR > > ; 9 BYTES TOTAL FOR CLEARING STACK, MEMORY > ; STACK POINTER NOW $FF, A=X==0 > ; BUT 1 CYCLE FASTER > > > <Ducks> > > > Chris... Looks good to me. But I can't have you better my (now out of date) masterpiece, so I came up with this... ldx #0 txa Clear dex txs pha bne Clear How bout that? 8 bytes beats 1 cycle :) I'm not sure it works... bit busy right now. I'll post a retraction later, if need be. But on first glance, it looks OK :) Cheers A ---------------------------------------------------------------------------------------------- Archives (includes files) at http://www.biglist.com/lists/stella/archives/ Unsub & more at http://www.biglist.com/lists/stella/
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [stella] An exercise in minimal, Christopher Tumber | Thread | Re: [stella] Stella Programing Laws, Thomas Jentzsch |
Re: [stella] An exercise in minimal, Christopher Tumber | Date | Re: [stella] An exercise in minimal, Manuel Polik |
Month |