Re: [stella] some more optimization tips

Subject: Re: [stella] some more optimization tips
From: Jim Nitchals <jimn8@xxxxxxxxxx>
Date: Fri, 8 May 1998 17:07:50 -0700 (PDT)
> 
> Rather than strings of NOPs, you can use the following...
> 
>     pha
>     pla

Good, but keep in mind that stack space is limited on a 2600, and the
use of this trick may add a byte to the depth of the stack if used in
the wrong place.

> now, whenever you want a 12 cycle delay you can go...
> 
>         JSR return
> 
> that will only cost you 3 bytes.

And use two bytes of stack.  Again, a great trick but one you must
exercise caution with.

(both tricks used in Oystron, by the way <g>)


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

Current Thread