Subject: Re: [stella] some more optimization tips From: emooney@xxxxxxxxxxxxxxxx (Erik Mooney) Date: Sat, 09 May 1998 00:09:45 GMT |
>Rather than strings of NOPs, you can use the following... > > pha > pla > >Pairs of pha/pla cost only two bytes, yet use up 7 cycles each pair. >For longer delays. put a label on one of your RTS instructions > >return RTS > >now, whenever you want a 12 cycle delay you can go... > > JSR return > >that will only cost you 3 bytes. Well, you can't use those two when the stack is pointing at one of the TIA registers, as is done in some kernels. My usual compact delay is INC zeropage - two bytes for five cycles. -- Archives (includes files) at http://www.biglist.com/lists/stella/archives/ Unsub & more at http://www.biglist.com/lists/stella/stella.html
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [stella] some more optimization, Jim Nitchals | Thread | Re: [stella] some more optimization, Andrew Davie |
Re: [stella] some more optimization, Jim Nitchals | Date | Re: [stella] some more optimization, Andrew Davie |
Month |