PIC12F629/675
MOVF
Move f
NOP
No Operation
Syntax:
[ label ] MOVF f,d
Syntax:
[ label ] NOP
None
Operands:
0 ≤ f ≤ ±27
d ∈ [0,±]
Operands:
Operation:
No operation
Operation:
(f) → (destination)
Status Affected: None
Status Affected:
Description:
Z
Description:
No operation.
The contents of register f are
moved to a destination dependant
upon the status of d. If d = 0,
destination is W register. If d = ±,
the destination is file register f itself.
d = ± is useful to test a file register,
since status flag Z is affected.
MOVLW
Move Literal to W
RETFIE
Return from Interrupt
Syntax:
[ label ] MOVLW k
0 ≤ k ≤ 255
k → (W)
Syntax:
[ label ] RETFIE
Operands:
Operation:
Status Affected:
Description:
Operands:
Operation:
None
TOS → PC,
± → GIE
None
Status Affected: None
The eight-bit literal 'k' is loaded
into W register. The don’t cares
will assemble as 0’s.
MOVWF
Move W to f
RETLW
Return with Literal in W
Syntax:
[ label ] MOVWF
0 ≤ f ≤ ±27
(W) → (f)
f
Syntax:
[ label ] RETLW k
0 ≤ k ≤ 255
Operands:
Operation:
Status Affected:
Description:
Operands:
Operation:
k → (W);
TOS → PC
None
Status Affected: None
Move data from W register to
register 'f'.
Description: The W register is loaded with the
eight-bit literal 'k'. The program
counter is loaded from the top of
the stack (the return address).
This is a two-cycle instruction.
DS41190C-page 74
2003 Microchip Technology Inc.