Aw: Re: [stella] Bubble Sort

Subject: Aw: Re: [stella] Bubble Sort
From: Thomas Jentzsch <tjentzsch@xxxxxx>
Date: Tue, 26 Mar 2002 11:11:50 +0100
Manuel wrote:
> snip
>Wouldn't that be:
>
>LDA What ever indextbl,X is pointing to
>CMP What ever indextbl+1,X is pointing to

Correct.


> >     LDY indextbl,X
> >     LDA ypos,Y
> >     LDY indextbl+1,X
> >     CMP ypos,Y
> >     BPL NoSwap
>And this too:

>LDA What ever indextbl,X is pointing to
>CMP What ever indextbl+1,X is pointing to

Correct too.

But i wrote:
    LDY indextbl+1,X	; +1 here!
    LDA ypos,Y
    LDY indextbl,X      ; no +1 here!
    CMP ypos,Y
    BPL NoSwap		; must be BMI

LDA What ever indextbl+1,X is pointing to
CMP What ever indextbl,X is pointing to

!!! ?

Have fun!	
Thomas


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


Current Thread