PIC16C55X
MOVF
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Example
Move f
[ label ] MOVF f,d
0 ≤ f ≤ 127
d ∈ [0,1]
(f) → (dest)
Z
00
1000 dfff ffff
The contents of register f is
moved to a destination dependant
upon the status of d. If d = 0, des-
tination 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.
1
1
MOVF FSR, 0
After Instruction
W = value in FSR register
Z =1
MOVWF
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Example
Move W to f
[ label ] MOVWF f
0 ≤ f ≤ 127
(W) → (f)
None
00
0000 1fff ffff
Move data from W register to register
'f'.
1
1
MOVWF OPTION
Before Instruction
OPTION = 0xFF
W
= 0x4F
After Instruction
OPTION = 0x4F
W
= 0x4F
NOP
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Example
No Operation
[ label ] NOP
None
No operation
None
00
0000
No operation.
1
1
NOP
0xx0
0000
OPTION
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Example
Load Option Register
[ label ] OPTION
None
(W) → OPTION
None
00
0000 0110 0010
The contents of the W register are
loaded in the OPTION register. This
instruction is supported for code
compatibility with PIC16C5X products.
Since OPTION is a readable/writable
register, the user can directly
address it.
1
1
To maintain upward compatibility
with future PICmicro™ products, do
not use this instruction.
2002 Microchip Technology Inc.
Preliminary
DS40143D-page 61