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