PIC10F200/202/204/206
DECF
Syntax:
Operands:
Operation:
Status Affected:
Description:
Decrement f
[
label
] DECF f,d
0
≤
f
≤
31
d
∈
[0,1]
(f) – 1
→
(dest)
Z
Decrement 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’.
INCF
Syntax:
Operands:
Operation:
Status Affected:
Description:
Increment f
[
label
]
0
≤
f
≤
31
d
∈
[0,1]
(f) + 1
→
(dest)
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’.
INCF f,d
DECFSZ
Syntax:
Operands:
Operation:
Status Affected:
Description:
Decrement f, Skip if 0
[
label
] DECFSZ f,d
0
≤
f
≤
31
d
∈
[0,1]
(f) – 1
→
d;
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 ‘0’, the next instruc-
tion, which is already fetched, is
discarded and a
NOP
is executed
instead making it a two-cycle
instruction.
skip if result =
0
INCFSZ
Syntax:
Operands:
Operation:
Status Affected:
Description:
Increment f, Skip if 0
[
label
]
0
≤
f
≤
31
d
∈
[0,1]
(f) + 1
→
(dest), 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 ‘0’, then the next
instruction, which is already
fetched, is discarded and a
NOP
is
executed instead making it a
two-cycle instruction.
INCFSZ f,d
GOTO
Syntax:
Operands:
Operation:
Status Affected:
Description:
Unconditional Branch
[
label
]
GOTO k
0
≤
k
≤
511
k
→
PC<8:0>;
STATUS<6:5>
→
PC<10:9>
None
GOTO
is an unconditional branch.
The 9-bit immediate value is
loaded into PC bits <8:0>. The
upper bits of PC are loaded from
STATUS<6:5>.
GOTO
is a two-
cycle instruction.
IORLW
Syntax:
Operands:
Operation:
Status Affected:
Description:
Inclusive OR literal with W
[
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.
©
2007 Microchip Technology Inc.
DS41239D-page 55