
2001 Microchip Technology Inc.
Advance Information
DS39582A-page 161
PIC16F87XA
DECFSZ
Decrement f, Skip if 0
Syntax:
Operands:
[
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’ is 0, the result
is placed in the W register. If ’d’ is
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 2T
CY
instruction.
Operation:
Status Affected:
Description:
GOTO
Unconditional Branch
Syntax:
Operands:
Operation:
[
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.
Status Affected:
Description:
INCF
Increment f
Syntax:
Operands:
[
label
] INCF f,d
0
≤
f
≤
127
d
∈
[0,1]
(f) + 1
→
(destination)
Z
The contents of register ’f’ are
incremented. If ’d’ is 0, the result
is placed in the W register. If ’d’ is
1, the result is placed back in
register ’f’.
Operation:
Status Affected:
Description:
INCFSZ
Increment f, Skip if 0
Syntax:
Operands:
[
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’ is 0, the result is
placed in the W register. If ’d’ is 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 2T
CY
instruction.
Operation:
Status Affected:
Description:
IORLW
Inclusive OR Literal with W
Syntax:
Operands:
Operation:
Status Affected:
Description:
[
label
] IORLW k
0
≤
k
≤
255
(W) .OR. k
→
(W)
Z
The contents of the W register are
OR’ed with the eight-bit literal 'k'.
The result is placed in the W
register.
IORWF
Inclusive OR W with f
Syntax:
Operands:
[
label
] IORWF f,d
0
≤
f
≤
127
d
∈
[0,1]
(W) .OR. (f)
→
(destination)
Z
Inclusive OR the W register with
register 'f'. If 'd' is 0 the result is
placed in the W register. If 'd' is 1
the result is placed back in
register 'f'.
Operation:
Status Affected:
Description: