PIC16F7X7
MOVF
Move f
NOP
No Operation
Syntax:
[ label ] MOVF f,d
Syntax:
[ label ] NOP
None
Operands:
0 ≤ f ≤ 127
d ∈ [0,1]
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,
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.
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,
1 → 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 ≤ 127
(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.
DS30498C-page 198
2004 Microchip Technology Inc.