User guide
Chapter 21
Move and Logical Instructions
21–3
Using Arithmetic Status Bits
C always reset
V always reset
Z set if the result is zero; otherwise reset
S set if the result is negative (most significant bit is set); otherwise reset
Application note: If you wish to move 1 word of data without affecting the
math flags, use a copy (COP) instruction with a length of 1 word instead of
using the MOV instruction. The COP instruction is discussed in chapter 22.
Masked Move MVM Output Instruction
(MVM)
MVM
MASKED MOVE
Source B3:6
1111010011110101
Mask 00E0
Dest B3:7
0000000011100000
F1 F2 F3 F4 F5
ZOOM on MVM –(MVM)– 2.3.0.0.2
NAME: MASKED MOVE
SOURCE: B3:6 1111 0100 1111 0101
MASK: 00E0 00E0
DEST: B3:7 0000 0000 1110 0000
EDT_DAT
HHT Ladder Display:
HHT Zoom Display:
Ladder Diagrams and APS Displays:
(online monitor mode)
The masked move instruction is a word instruction that moves a copy of the
data from a source location to a destination, and allows portions of the
destination data to be masked by a separate word.
Masked Move (MVM)