PIC16F688
MOVWF
Move W to f
MOVLW
Move Literal to W
[ label ] MOVLW k
0 ≤ k ≤ 255
Syntax:
[ label ] MOVWF
0 ≤ f ≤ 127
(W) → (f)
f
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Operands:
Operation:
Status Affected:
Encoding:
Description:
k → (W)
None
None
00
0000
1fff
ffff
11
00xx
kkkk
kkkk
Move data from W register to
register ‘f’.
The eight bit literal ‘k’ is loaded
into W register. The don’t cares
will assemble as 0’s.
Words:
Cycles:
Example
1
1
Words:
Cycles:
Example
1
1
MOVWF
OPTION
MOVLW
0x5A
Before Instruction
OPTION = 0xFF
After Instruction
W
=
0x4F
W
=
0x5A
After Instruction
OPTION = 0x4F
0x4F
W
=
IORLW
Inclusive OR Literal with W
NOP
No Operation
[ label ] NOP
None
Syntax:
Syntax:
[ label ] IORLW k
0 ≤ k ≤ 255
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Operands:
Operation:
Status Affected:
Description:
No operation
None
(W) .OR. k → (W)
Z
00
0000
0xx0
0000
The contents of the W register are
OR’ed with the eight-bit literal ‘k’.
The result is placed in the W
register.
No operation.
1
Cycles:
1
NOP
Example
IORWF
Inclusive OR W with f
Syntax:
[ label ] IORWF f,d
0 ≤ f ≤ 127
Operands:
d
[0,1]
Operation:
(W) .OR. (f) → (destination)
Status Affected:
Description:
Z
Inclusive OR the W register with
register ‘f’. If ‘d’ is ‘0’, the result is
placed in the W register. If ‘d’ is
‘1’, the result is placed back in
register ‘f’.
DS41203B-page 124
Preliminary
2004 Microchip Technology Inc.