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