Chapter 6 Applied Instructions
6-261
6.13.2 Explanation of Data Processing Instructions
API
Instruction code Operand
Function
1200 D
SER P
S
1
, S
2
, D, n
Searching the data
Device
X Y M S T C HC D L SM SR E PR K 16#
“$” DF
16-bit instruction (9 steps)
32-bit instruction (9 steps)
Symbol:
S
1
Initial device involved in the
comparison
Word/Double word
S
2
Compared data Word/Double word
D
Initial device in which the
comparison result is stored
Word/Double word
n
Data length Word/Double word
Explanation:
1. n singed decimal values in the registers starting from the register specified by S
1
are
compared with the singed decimal value in the register specified by S
2
, and the comparison
results are stored in the registers D~D+4.
D+1
Data number of the first equal
value
D+2
Data number of the last equal
value
D+3
Data number of the minimum
value
D+4
Data number of the maximum
value
2. The operand n used in the 16-bit instruction should be within the range between 1 and 256.
The operand n used in the 32-bit instruction should be within the range between 1 and 128.
3. Only the 32-bit instructions can use the 32-bit counter.