(Note 7) Can be specified only when the operation unit is a single-precision floating point real number (SF).
(Note 8) Can be specified only when the operation unit is a double-precision floating point real number (DF).
■
Outline of operation
● This instruction searches the range specified by [S2] and [S3] for the search data specified
by [S1].
● The search result is given in the data format of unsigned 32-bit integer, and stored as
follows.
[D], [D]+1
[D]+2、[D]+3
16-bit device
[D]
[D]+1
32-bit device
Store the number of data with the same value in a
decimal form
Store the position of the first matching data
(relative position with the first data as '0')
Description of output
● The maximum amount of data that can be specified is 30000.
● Search is executed from [S2] to [S3].
■
Processing
Example 1) When the operation unit is 16-bit (US, SS)
H 7FFF
H 1234
H 1234
H 6677
H 1234
DT10
DT38
DT39
DT40
[S1]…DT10 [S2]…DT20
H 1211
H 12FF
H 1234
DT20
DT21
DT22
DT23
0
[S3]…DT40 [D]…DT100
<Search data>
<Search range>
1
2
3
18
19
20
Relative
position
K 3
DT100・DT101
<Area specified by D>
K 2
DT102・DT103
([D] , [D]+1)
([D]+2 , [D]+3)
The relative position
of the first match is
set for DT102・DT103
The amount of search
data is set for
DT100・DT101
・・・・
・・・・
・・・・
[i]…US,SS
10.1 SRC (Data Search)
WUME-FP7CPUPGR-12 10-3