A-19
Appendices
CJ2 CPU Unit Software User’s Manual
A-1 Instruction Functions
App
A-1-6 Data Movement Instructions
MULTIPLE BIT
TRANSFER
XFRB
@XFRB
062 Output Required
BLOCK
TRANSFER
XFER
@XFER
070 Output Required
BLOCK SET BSET
@BSET
071 Output Required
DATA
EXCHANGE
XCHG
@XCHG
073 Output Required
DOUBLE DATA
EXCHANGE
XCGL
@XCGL
562 Output Required
SINGLE WORD
DISTRIBUTE
DIST
@DIST
080 Output Required
Instruction Mnemonic Code Symbol/Operand Function Location
Execution
condition
XFRB(062)
C
S
D
C: Control word
S: 1st source
word
D: 1st destination
word
Transfers the specified number of consecutive bits.
XFER(070)
N
S
D
N: Number of
words
S: 1st source
word
D: 1st destination
word
S+(N 1)
D+(N 1)
−
−
to to
N words
Transfers the specified number of consecutive words.
BSET(071)
S
St
E
S: Source word
St: Starting word
E: End word
St
E
Copies the same word to a range of
consecutive words.
Source word Destination words
XCHG(073)
E1
E2
E1: 1st exchange
word
E2: 2nd exchange
word
E2E1
Exchanges the contents of the two specified words.
XCGL(562)
E1
E2
E1: 1st exchange
word
E2: Second
exchange word
E2E1 E1+1 E2+1
Exchanges the contents of a pair of consecutive words
with another pair of consecutive words.
DIST(080)
S
Bs
Of
S: Source word
Bs: Destination
base address
Of: Offset
S B
Bs+n
s
Of
Transfers the source word to a destination word
calculated by adding an offset value to the base address.