7 APPLICATION INSTRUCTIONS
7.20 Data Processing Instructions
925
7
• These instructions search the (n) points of 32-bit binary data in the device specified by (s) for the maximum value, and store
the maximum value in the devices specified by (d) and (d)+1. Each instruction searches data starting from the device
specified by (s) and detects first the maximum value in the xth point from (s), and stores x in (d)+2 and the number of
maximum values in (d)+3.
There is no operation error.
(d), (d)+1: Maximum value
(d)+2: Location
(d)+3: Number of maximum values
54321000 (BIN)
4321000 (BIN)
3254000 (BIN)
54321000 (BIN)
12345678 (BIN)
(n)
54321000 (BIN)
1
2
(s)+1, (s)
(s)+9, (s)+8
(s)+3, (s)+2
(s)+5, (s)+4
(s)+7, (s)+6
(d)+1
(d)
(d)+2
(d)+3