PIC12F510/16F506
IORWF
Inclusive OR W with f
MOVWF
Move W to f
Syntax:
[ label ] IORWF f,d
Syntax:
[ label ] MOVWF
0 ≤ f ≤ 31
f
Operands:
0 ≤ f ≤ 31
d ∈ [0,1]
Operands:
Operation:
(W) → (f)
Operation:
(W).OR. (f) → (dest)
Status Affected: None
Status Affected:
Description:
Z
Description:
Move data from the W register to
register ‘f’.
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’.
MOVF
Move f
NOP
No Operation
Syntax:
[ label ] MOVF f,d
Syntax:
[ label ] NOP
None
Operands:
0 ≤ f ≤ 31
d ∈ [0,1]
Operands:
Operation:
No operation
Operation:
(f) → (dest)
Status Affected: None
Status Affected:
Description:
Z
Description:
No operation.
The contents of register ‘f’ are
moved to destination ‘d’. If ‘d’ is ‘0’,
destination is the W register. If ‘d’
is ‘1’, the destination is file
register ‘f’. ‘d’ = 1is useful as a
test of a file register, since Status
flag Z is affected.
MOVLW
Move Literal to W
OPTION
Load OPTION Register
Syntax:
[ label ] Option
None
Syntax:
[ label ] MOVLW k
0 ≤ k ≤ 255
Operands:
Operation:
Operands:
Operation:
(W) → Option
k → (W)
Status Affected: None
Status Affected: None
Description: The content of the W register is
Description:
The eight-bit literal ‘k’ is loaded
into the W register. The “don’t
loaded into the OPTION register.
cares” will be assembled as ‘0’s.
DS41268B-page 76
Preliminary
© 2006 Microchip Technology Inc.