PIC16F870/871
IORLW
Inclusive OR Literal with W
MOVLW
Move Literal to W
[ label ] MOVLW k
0 ≤ k ≤ 255
Syntax:
[ label ] IORLW k
0 ≤ k ≤ 255
Syntax:
Operands:
Operation:
Status Affected:
Description:
Operands:
Operation:
(W) .OR. k → (W)
Z
k → (W)
Status Affected: None
The contents of the W register are
OR’ed with the eight bit literal 'k'.
The result is placed in the W reg-
ister.
Description:
The eight bit literal 'k' is loaded
into W register. The don’t cares
will assemble as 0’s.
MOVWF
Syntax:
Move W to f
IORWF
Inclusive OR W with f
[ label ] IORWF f,d
0 ≤ f ≤ 127
[ label ] MOVWF
0 ≤ f ≤ 127
f
Syntax:
Operands:
Operation:
Operands:
(W) → (f)
d
[0,1]
Status Affected: None
Operation:
(W) .OR. (f) → (destination)
Description:
Move data from W register to reg-
ister 'f'.
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 regis-
ter 'f'.
NOP
No Operation
[ label ] NOP
None
Syntax:
MOVF
Move f
Operands:
Operation:
Syntax:
Operands:
[ label ] MOVF f,d
No operation
0 ≤ f ≤ 127
Status Affected: None
Description: No operation.
d
[0,1]
Operation:
(f) → (destination)
Status Affected:
Description:
Z
The contents of register f are
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.
DS30569A-page 110
Preliminary
1999 Microchip Technology Inc.