Re: [stella] Crazy Balloon Day 4

Subject: Re: [stella] Crazy Balloon Day 4
From: David Galloway <davidgalloway@xxxxxxxxxxxxxx>
Date: Fri, 31 Dec 2004 17:07:54 -0800
Manuel Rotschkar wrote:

The 2LK has currently 40 cycles left, I hope that even with the required rewrite it still can do the second sprite (at 2 line resolution) and the ball.


Well, when you are done and have any cycles plus a couple of bytes of RAM you can

replace this
       LDX divideby3,Y
with
       LDX div3

and put this just in front of the DEY BNE load

   LDX div3cnt
   DEX
   BPL .nostep
   LDX #2
   DEC div3
.nostep    STX div3cnt

You would also need to initialize div3 to 25 where you initialize Y with KERNEL_HEIGHT

heh, I know I'm going to get dinged by Thomas for optimizing too soon, but that 156 byte divideby3 (actually by 6) table was pretty tempting.

- David


Current Thread