VS070QS-1618MDM1 Integrated Machine Single word data sorting
202403 (V1.0) 51
Appendix E Single word data sorting
The single word data sorting (SORT) instruction is used to sort the overall matrix
data of a data table by the sorting results of the particular column.
E.1 Operand description
IL: SORT (S1) (S2) (S3) (D1) (S4)
S1: The address of the starting element of the original data sheet.
S2: The number of groups of sorted data. Range: 1–32.
S3: The number of data in each group. Range: 1–32.
D1: The address of the starting element where the sorted result data sheet is stored.
S4: The partitioning column that the data table is sorted. Range: 1–S3.
E.2 Function description
1. This instruction sorts S2 × S3 data tables starting with S1 unit by the parameters
in column S4, and is placed in the variable domains starting with D1. The
following is the 3×3 data sorting process:
Before sorting: