VS070QS-1618MDM1 Integrated Machine Double word data sorting
202403 (V1.0) 56
Appendix F Double word data sorting
The double word data sorting (DSORT) instruction is used to sort the overall matrix
data of a double word data table by the sorting results of the particular column.
F.1 Operand description
IL: DSORT (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.
F.2 Function description
1. This instruction sorts S2 × S3 double word 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: