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