| Entry | |
|---|---|
| R0 | Number of elements |
| R1 | Pointer to word-array |
| R2 | Sort type or comparison routine? |
| R7 | Flags |
| Optional: | |
| R3 | Workspace pointer |
| R4 | Array of actual objects |
| R5 | Size of object in R4 |
| R6 | Workspace of R5 bytes (if R5>16k) |
| Exit | |
|---|---|
| All registers preserved | |
The purpose of this call is to perform a fast and memory efficient sort on a list of objects.
The CallASWI module allows this SWI to be used with earlier versions of RISC OS (before 5.00). The earlier version of this SWI OS_HeapSort is also available.