Re: [stella] Fast Missile code

Subject: Re: [stella] Fast Missile code
From: Manuel Rotschkar <cybergoth@xxxxxxxx>
Date: Fri, 16 Jan 2004 13:22:20 +0100
Hi there!

>Anyway, how about this one:
>  lda #4                 
>  dcp torpedoyPos 
>  adc #1
>  sta ENAM1          
>  lda #4                 
>  dcp torpedoyPos+1
>  adc #1
>  sta ENAM0
>
>24 cycles! :-)

Uhija! That is way cool!

But maybe unusable in my case unfortunately. 

Hm... except if I'd provide a RAM array with several 
torpedoyPos pairs...

Still I'd have to reload at least one pair... hm²...

Let me see what I can make of this.

Since I'm usually prefering simple solutions, the sheer 
brilliantness of this snippet is probably too hard to 
resist. :-)

It's just perfect:

No scannline count reqired, no stack, no register, the 
carry doesn't matter...

Wait... shouldn't it rather be 

>  lda #3

instead of 

>  lda #4

Or did I miss something?

Greetings,
	Manuel

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


Current Thread