Aw: Aw: Re: [stella] Bubble Sort

Subject: Aw: Aw: Re: [stella] Bubble Sort
From: cybergoth@xxxxxxxx
Date: Tue, 26 Mar 2002 11:28:56 +0100 (MET)
Hi Thomas!

Von:     Thomas Jentzsch <tjentzsch@xxxxxx>
> Manuel wrote:
> >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.

So, if you agree, should't both lead to the same result?
 
> 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

Yes, I know. But that doesn't explain why the upper
two sequences produce two different results...
 
> !!! ?

Not yet. :-)
 
Greetings,
     Manuel


-----------------------------------------------------------------------
Riester-Rente - Kassieren Sie das Geld vom Staat:
Zum Förderungsrechner! http://www.arcor.de/home/redir.php/riesterrente
-----------------------------------------------------------------------

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


Current Thread