|
PIC16F72-E Datasheet, PDF (79/136 Pages) Microchip Technology – 28-Pin, 8-Bit CMOS FLASH Microcontoller with A/D Converter | |||
|
◁ |
COMF
Syntax:
Operands:
Operation:
Status Affected:
Description:
Complement f
[ label ] COMF f,d
0 ⤠f ⤠127
d â [0,1]
(f) â (destination)
Z
The contents of register âfâ are
complemented. If âdâ = â0â, the
result is stored in W. If âdâ = â1â, the
result is stored back in register âfâ.
PIC16F72
GOTO
Syntax:
Operands:
Operation:
Status Affected:
Description:
Unconditional Branch
[ label ] GOTO k
0 ⤠k ⤠2047
k â PC<10:0>
PCLATH<4:3> â PC<12:11>
None
GOTO is an unconditional branch.
The eleven-bit immediate value is
loaded into PC bits <10:0>. The
upper bits of PC are loaded from
PCLATH<4:3>. GOTO is a
two-cycle instruction.
DECF
Syntax:
Operands:
Operation:
Status Affected:
Description:
Decrement f
[ label ] DECF f,d
0 ⤠f ⤠127
d â [0,1]
(f) - 1 â (destination)
Z
Decrement register âfâ. If âdâ = â0â,
the result is stored in the W
register. If âdâ = â1â, the result is
stored back in register âfâ.
INCF
Syntax:
Operands:
Operation:
Status Affected:
Description:
Increment f
[ label ] INCF f,d
0 ⤠f ⤠127
d â [0,1]
(f) + 1 â (destination)
Z
The contents of register âfâ are
incremented. If âdâ = â0â, the result
is placed in the W register. If
âdâ = â1â, the result is placed back
in register âfâ.
DECFSZ
Syntax:
Operands:
Operation:
Status Affected:
Description:
Decrement f, Skip if 0
[ label ] DECFSZ f,d
0 ⤠f ⤠127
d â [0,1]
(f) - 1 â (destination);
skip if result = 0
None
The contents of register âfâ are
decremented. If âdâ = â0â, the result
is placed in the W register. If
âdâ = â1â, the result is placed back
in register âfâ.
If the result is â1â, the next instruc-
tion is executed. If the result is â0â,
then a NOP is executed instead,
making it a 2 TCY instruction.
INCFSZ
Syntax:
Operands:
Operation:
Status Affected:
Description:
Increment f, Skip if 0
[ label ] INCFSZ f,d
0 ⤠f ⤠127
d â [0,1]
(f) + 1 â (destination),
skip if result = 0
None
The contents of register âfâ are
incremented. If âdâ = â0â, the result
is placed in the W register. If
âdâ = â1â, the result is placed back
in register âfâ.
If the result is â1â, the next instruc-
tion is executed. If the result is â0â,
a NOP is executed instead, making
it a 2 TCY instruction.
© 2007 Microchip Technology Inc.
DS39597C-page 77
|
▷ |