Extended Assembler Sort
by David Beaumont

Running this application runs the Basic program !ArmSort.!RunImage. This is a new version of the ArmSort routine published in last month's magazine (Volume 5 Issue 6), and it enables Basic arrays to be sorted (rather than memory arrays).

The program demonstrates an assembler routine to sort a Basic array of integers into decreasing order. When the program is run, you will be asked for the number of elements to be sorted, and an array of random numbers is set up. Then the ArmSort routine is called to sort the numbers, and the time for the sort is displayed.

See the REM statements at the start of the program for more information on how to use the sort routine in your own programs.

 RISC User 1992
