Move Not - Mvn(22) - Omron CPM1 Programming Manual

Hide thumbs Also See for CPM1:
Table of Contents

Advertisement

Data Movement Instructions
5-17-2 MOVE NOT – MVN(22)
Limitations
Description
Precautions
Flags
Example
00001
238
Ladder Symbols
MVN(22)
@MVN(22)
S
D
DM 6144 to DM 6655 cannot be used for D.
When the execution condition is OFF, MVN(22) is not executed. When the
execution condition is ON, MVN(22) transfers the inverted content of S (spec-
ified word or four-digit hexadecimal constant) to D, i.e., for each ON bit in S,
the corresponding bit in D is turned OFF, and for each OFF bit in S, the corre-
sponding bit in D is turned ON.
Source word
TC numbers cannot be designated as D to change the PV of the timer or
counter. However, these can be easily changed using BSET(71).
Indirectly addressed DM word is non-existent. (Content of *DM word
ER:
is not BCD, or the DM area boundary has been exceeded.)
EQ:
ON when all zeros are transferred to D.
The following example shows @MVN(22) being used to copy the complement
of #F8C5 to DM 0010 when IR 00001 goes from OFF to ON.
1 1 1 1 1 0 0 0 1 1
#F8C5
DM 0010
0 0 0 0 0 1 1 1 0 0
IR, SR, AR, DM, HR, TC, LR, #
S
D
Bit status
inverted.
Address Instruction
@MVN(22)
00000
LD
#F8C5
00001
@MOV(21)
DM 0010
0
0 0 1 0 1
1
1 1 0 1 0
Section 5-17
Operand Data Areas
S: Source word
D: Destination word
IR, SR, AR, DM, HR, LR
Destination word
Operands
00001
#
F8C5
DM
0010

Advertisement

Table of Contents
loading

Table of Contents