PIC16F818/819
13.2 Instruction Descriptions
ADDLW
Add Literal and W
[ label ] ADDLW
0 ≤ k ≤ 255
ANDWF
Syntax:
AND W with f
Syntax:
k
[ label ] ANDWF f,d
Operands:
Operation:
Status Affected:
Description:
Operands:
0 ≤ f ≤ 127
d ∈ [0,1]
(W) + k → (W)
C, DC, Z
Operation:
(W) .AND. (f) → (destination)
Status Affected:
Description:
Z
The contents of the W register
are added to the eight-bit literal ‘k’
and the result is placed in the W
register.
AND the W register with register
‘f’. If ‘d’ = 0, the result is stored in
the W register. If ‘d’ = 1, the result
is stored back in register ‘f’.
BCF
Bit Clear f
ADDWF
Syntax:
Add W and f
Syntax:
Operands:
[ label ] BCF f,b
[ label ] ADDWF f,d
0 ≤ f ≤ 127
0 ≤ b ≤ 7
Operands:
0 ≤ f ≤ 127
d ∈ [0,1]
Operation:
0 → (f<b>)
Operation:
(W) + (f) → (destination)
Status Affected:
Description:
None
Status Affected: C, DC, Z
Bit ‘b’ in register ‘f’ is cleared.
Description:
Add the contents of the W register
with register ‘f’. If ‘d’ = 0, the result
is stored in the W register. If
‘d’ = 1, the result is stored back in
register ‘f’.
ANDLW
AND Literal with W
BSF
Bit Set f
Syntax:
[ label ] ANDLW
0 ≤ k ≤ 255
k
Syntax:
Operands:
[ label ] BSF f,b
Operands:
Operation:
Status Affected:
Description:
0 ≤ f ≤ 127
0 ≤ b ≤ 7
(W) .AND. (k) → (W)
Operation:
1 → (f<b>)
Z
Status Affected:
Description:
None
The contents of W register are
ANDed with the eight-bit literal ‘k’.
The result is placed in the W
register.
Bit ‘b’ in register ‘f’ is set.
2004 Microchip Technology Inc.
DS39598E-page 105