|
PIC16F819T-E Datasheet, PDF (107/176 Pages) Microchip Technology – 18/20-Pin Enhanced Flash Microcontrollers with nanoWatt Technology | |||
|
◁ |
13.2 Instruction Descriptions
ADDLW
Syntax:
Operands:
Operation:
Status Affected:
Description:
Add Literal and W
[ label ] ADDLW k
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.
PIC16F818/819
ANDWF
Syntax:
Operands:
Operation:
Status Affected:
Description:
AND W with f
[ label ] ANDWF f,d
0 ⤠f ⤠127
d â [0,1]
(W) .AND. (f) â (destination)
Z
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â.
ADDWF
Syntax:
Operands:
Operation:
Status Affected:
Description:
Add W and f
[ label ] ADDWF f,d
0 ⤠f ⤠127
d â [0,1]
(W) + (f) â (destination)
C, DC, Z
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â.
BCF
Syntax:
Operands:
Operation:
Status Affected:
Description:
Bit Clear f
[ label ] BCF f,b
0 ⤠f ⤠127
0â¤bâ¤7
0 â (f<b>)
None
Bit âbâ in register âfâ is cleared.
ANDLW
Syntax:
Operands:
Operation:
Status Affected:
Description:
AND Literal with W
[ label ] ANDLW k
0 ⤠k ⤠255
(W) .AND. (k) â (W)
Z
The contents of W register are
ANDed 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 f,b
0 ⤠f ⤠127
0â¤bâ¤7
1 â (f<b>)
None
Bit âbâ in register âfâ is set.
 2004 Microchip Technology Inc.
DS39598E-page 105
|
▷ |