6/12/72                                               QSORT (III)





NAME            qsort -- quicker sort



SYNOPSIS        (base of data in r1)

                (end of data in r2)

                (element width in r3)

                jsr pc,qsort



DESCRIPTION     qsort is an implementation of the quicker sort

                algorithm.  It is designed to sort equal length

                byte strings.  Registers r1 and r2 delimit the

                region of core containing the array of byte

                strings to be sorted: r1 points to the start of

                the first string, r2 to the first location above

                the last string.  Register r3 contains the length

                of each string.  r2-r1 should be a multiple of

                r3.  On return, r0, r1, r2, r3, r4, AC and MQ are

                destroyed.



FILES           --



SEE ALSO        --



DIAGNOSTICS     --



BUGS            The user should be able to supply his own compar-

                ison routine.



OWNER           ken