
PIC16(L)F722A/723A
DS41417B-page 190
2010-2012 Microchip Technology Inc.
MOVF
Move f
Syntax:
[ label ] MOVF f,d
Operands:
0
f 127
d
[0,1]
Operation:
(f)
(dest)
Status Affected:
Z
Description:
The contents of register f is
moved to a destination dependent
upon the status of d. If d = 0,
destination is W register. If d = 1,
the destination is file register f
itself. d = 1 is useful to test a file
register since status flag Z is
affected.
Words:
1
Cycles:
1
Example:
MOVF
FSR, 0
After Instruction
W=
value in FSR
register
Z=
1
MOVLW
Move literal to W
Syntax:
[ label ]
MOVLW k
Operands:
0
k 255
Operation:
k
(W)
Status Affected: None
Description:
The eight-bit literal ‘k’ is loaded into
W register. The “don’t cares” will
assemble as ‘0’s.
Words:
1
Cycles:
1
Example:
MOVLW
0x5A
After Instruction
W=
0x5A
MOVWF
Move W to f
Syntax:
[ label ] MOVWF
f
Operands:
0
f 127
Operation:
(W)
(f)
Status Affected:
None
Description:
Move data from W register to
register ‘f’.
Words:
1
Cycles:
1
Example:
MOVW
F
OPTION
Before Instruction
OPTION =
0xFF
W
=
0x4F
After Instruction
OPTION =
0x4F
W
=
0x4F
NOP
No Operation
Syntax:
[ label ] NOP
Operands:
None
Operation:
No operation
Status Affected:
None
Description:
No operation.
Words:
1
Cycles:
1
Example:
NOP