Omron CP1E-NA@@D@-@ Computer Hardware User Manual


 
2-113
2 Instructions
CP1E CPU Unit Instructions Reference Manual(W483)
Data Movement Instructions
2
MOVD
MOVD
Applicable Program Areas
Operands
S: Source Word D: Destination Word
C: Control Word
Operand Specifications
Instruction Mnemonic Variations
Function
code
Function
MOVE DIGIT MOVD @MOVD 083
Transfers the specified digit or digits.
(Each digit is made up of 4 bits.)
Symbol
MOVB
Area Step program areas Subroutines Interrupt tasks
Usage OK OK OK
Operand Description Data type Size
S Source word or data WORD 1
C Control word UINT 1
D Destination word UINT 1
The source digits are read from right to left,
wrapping back to the rightmost digit (digit 0) if
necessary.
The destination digits are written from right to
left, wrapping back to the rightmost digit (digit
0) if necessary.
Area
Word addresses Indirect DM addresses
Constants CF Pulse bits TR bits
CIO WR HR AR T C DM @DM *DM
S, C
OK OK OK OK OK OK OK OK OK
OK
--- --- ---
D ---
MOVD(083)
S
C
D
S: Source word or data
C: Control word
D: Destination word
S Digit 3 Digit 2
811
1215
Digit 1 Digit 0
03
47
D Digit 3 Digit 2
811
1215
Digit 1 Digit 0
03
47
15 8 011 37 412
C
0
First digit in S (m): 0 to 3
Number of digits (n): 0 to 3
0: 1 digit
1: 2 digits
2: 3 digits
3: 4 digits
First digit in D (
): 0 to 3
Always 0.
n
m