16F876 Microchip Technology, 16F876 Datasheet - Page 139

no-image

16F876

Manufacturer Part Number
16F876
Description
28/40-pin 8-Bit CMOS FLASH Microcontrollers
Manufacturer
Microchip Technology
Datasheet
13.1
ADDLW
Syntax:
Operands:
Operation:
Status Affected:
Description:
ADDWF
Syntax:
Operands:
Operation:
Status Affected:
Description:
ANDLW
Syntax:
Operands:
Operation:
Status Affected:
Description:
1999 Microchip Technology Inc.
Instruction Descriptions
[ label ] ADDWF
(W) + (f)
C, DC, Z
Add the contents of the W register
Add W and f
0
d
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 reg-
ister ’f’.
Add Literal and W
[ label ] ADDLW
0
(W) + k
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.
AND Literal with W
[ label ] ANDLW
0
(W) .AND. (k)
Z
The contents of W register are
AND’ed with the eight bit literal
'k'. The result is placed in the W
register.
f
k
k
127
255
255
(W)
(destination)
(W)
f,d
k
k
ANDWF
Syntax:
Operands:
Operation:
Status Affected:
Description:
BCF
Syntax:
Operands:
Operation:
Status Affected:
Description:
BSF
Syntax:
Operands:
Operation:
Status Affected:
Description:
AND W with f
[ label ] ANDWF
0
d
(W) .AND. (f)
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'.
Bit Clear f
[ label ] BCF
0
0
0
None
Bit 'b' in register 'f' is cleared.
Bit Set f
[ label ] BSF
0
0
1
None
Bit 'b' in register 'f' is set.
f
f
b
f
b
(f<b>)
(f<b>)
PIC16F87X
127
127
127
7
7
f,b
f,b
(destination)
DS30292B-page 139
f,d

Related parts for 16F876