![background image](http://html1.mh-extra.com/html/omron/sysmac-cs1d-cpu/sysmac-cs1d-cpu_reference-manual_742268116.webp)
77
Instruction Functions
Section 2-2
SWAP BYTES
SWAP
@SWAP
637
Output
Required
726
FIND MAXIMUM
MAX
@MAX
182
Output
Required
728
FIND MINIMUM
MIN
@MIN
183
Output
Required
732
SUM
SUM
@SUM
184
Output
Required
736
FRAME CHECK-
SUM
FCS
@FCS
180
Output
Required
739
Instruction
Mnemonic
Code
Symbol/Operand
Function
Location
Execution
condition
Page
SWAP(637)
N
R1
N
: Number of
words
R1
: 1st word in
range
N
R1
Switches the leftmost and rightmost bytes in all of the words in the
range.
Byte position is swapped.
MAX(182)
C
R1
D
C
: 1st control
word
R1
: 1st word in
range
D
: Destination
word
R1+(W
−
1)
R1
Finds the maximum value in the range.
Internal I/O
memory address
C words
Max.
value
MIN(183)
C
R1
D
C
: 1st control
word
R1
: 1st word in
range
D
: Destination
word
R1+(W
−
1)
R1
Finds the minimum value in the range.
Internal I/O
memory address
C words
Min. value
SUM(184)
C
R1
D
C
: 1st control
word
R1
: 1st word in
range
D
: 1st destination
word
R1+(W
−
1)
R1
)
Adds the bytes or words in the range and outputs the result to two
words.
FCS(180)
C
R1
D
C
: 1st control
word
R1
: 1st word in
range
D
: 1st destination
word
C units
Calculation
R1
Calculates the ASCII FCS value for the specified range.
ASCII conversion
FCS value
Содержание SYSMAC CS1D-CPU**
Страница 3: ...iv...
Страница 29: ...xxx...
Страница 185: ...146 List of Instructions by Function Code Section 2 4...
Страница 193: ...154 3 35 4 MOVE BIT MOVBC 568 1274 3 35 5 BIT COUNTER BCNTC 621 1276 3 35 6 GET VARIABLE ID GETID 286 1278...
Страница 1389: ...1350 CJ series Instruction Execution Times and Number of Steps Section 4 2...
Страница 1390: ...1351 Appendix A ASCII Code Table ASCII SP Four leftmost bits Four rightmost bits...
Страница 1391: ...1352 ASCII Code Table Appendix A...