Appendices
A-1-14
Table Data Processing Instructions
Instruction
Mnemonic
SWAP BYTES
SWAP
FRAME
FCS
CHECKSUM
A-30
Variations
Symbol/Operand
@
SWAP(637)
N
R1
N: Number of words
R1: 1st word in range
@
FCS(180)
C
R1
D
C: First control word
R1: First word in range
D: First destination word
Function
Switches the leftmost and rightmost bytes in all of the words in the
range.
Byte position is swapped.
R1
Calculates the FCS value for the specified range and outputs the
result in ASCII.
R1
W (Table length)
ASCII conversion
Calculation
FCS value
D
C: First control word
15
C
W: Number of words/bytes in range
&1 to &65535 (decimal) or
#0001 to #FFFF (hex)
15
14
13 12 11
C+1
00
0000
0000
0000
Starting byte (Valid only when bit 13 is 1.)
0: Leftmost byte
1: Rightmost byte
Calculation units
0: Words
1: Bytes
0
CP1E CPU Unit Software User's Manual(W480)
N
0
0
0
Need help?
Do you have a question about the CP1E CPU UNIT SOFTWARE and is the answer not in the manual?
Questions and answers