PIC16C63A/65B/73B/74B
14.1 Instruction Descriptions
ADDLW
Add Literal and W
ANDWF
Syntax:
AND W with f
Syntax:
[label] ADDLW
0 ≤ k ≤ 255
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' is 0, the result is stored in the W
register. If 'd' is 1, the result is stored
back in register 'f'.
ADDWF
Syntax:
Add W and f
BCF
Bit Clear f
[label] ADDWF f,d
Syntax:
Operands:
[label] BCF f,b
Operands:
0 ≤ f ≤ 127
d ∈ [0,1]
0 ≤ f ≤ 127
0 ≤ b ≤ 7
Operation:
(W) + (f) → (destination)
Operation:
0 → (f<b>)
Status Affected: C, DC, Z
Status Affected:
Description:
None
Add the contents of the W register
Description:
Bit 'b' in register 'f' is cleared.
with register ’f’. If ’d’ is 0, the result is
stored in the W register. If ’d’ is 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
AND’ed with the eight bit literal 'k'.
The result is placed in the W register.
Bit 'b' in register 'f' is set.
2000 Microchip Technology Inc.
DS30605C-page 101