Move Digit - Movd(83) - Omron CPM1 Programming Manual

Hide thumbs Also See for CPM1:
Table of Contents

Advertisement

Data Movement Instructions
5-17-9 MOVE DIGIT – MOVD(83)
Limitations
Description
Digit Designator
Flags
246
Ladder Symbols
MOVD(83)
@MOVD(83)
S
Di
D
The rightmost three digits of Di must each be between 0 and 3.
DM 6144 to DM 6655 cannot be used for Di or D.
When the execution condition is OFF, MOVD(83) is not executed. When the
execution condition is ON, MOVD(83) copies the content of the specified
digit(s) in S to the specified digit(s) in D. Up to four digits can be transferred at
one time. The first digit to be copied, the number of digits to be copied, and
the first digit to receive the copy are designated in Di as shown below. Digits
from S will be copied to consecutive digits in D starting from the designated
first digit and continued for the designated number of digits. If the last digit is
reached in either S or D, further digits are used starting back at digit 0.
Digit number: 3 2 1 0
The following show examples of the data movements for various values of Di.
Di: 0010
S
0
1
2
3
Di: 0031
S
0
1
2
3
ER:
At least one of the rightmost three digits of Di is not between 0 and 3.
Indirectly addressed DM word is non-existent. (Content of *DM word
is not BCD, or the DM area boundary has been exceeded.)
Operand Data Areas
IR, SR, AR, DM, HR, TC, LR, #
Di: Digit designator (BCD)
S
IR, SR, AR, DM, HR, TC, LR, #
Di
D
IR, SR, AR, DM, HR, TC, LR
First digit in S (0 to 3)
Number of digits (0 to 3)
0: 1 digit
1: 2 digits
2: 3 digits
3: 4 digits
First digit in D (0 to 3)
Not used. (Set to 0.)
D
S
0
0
1
1
2
2
3
3
D
S
0
0
1
1
2
2
3
3
Section 5-17
S: Source word
D: Destination word
Di: 0030
D
0
1
2
3
Di: 0023
D
0
1
2
3

Advertisement

Table of Contents
loading

Table of Contents