;name myKindOfSort ;author Paulsson ;strategy Bubble sort, short -> fast (hopefully) ;startegy v3, works (hopefully) ;contact mpn@ifm.liu.se ;NSFCWT Round 4 org start temp equ count-2 ;temporary store eot equ count-1 ;used to get end of data count dat 4002,4001 ;counters in bubble sort. compb1 slt.b @count-comp1,*count-comp1 compb2 slt.a @count-comp2,*count-comp2 start jmz.a start2,count+4000 ;take away equals? seq.i eot,>last last jmp -1,count+4001 nop count dat 0 samei jmz.a 2,count+4000 ; check for equal seq.i @count,*count jmp next,}count mov.i