|
PIC16F526 Datasheet, PDF (75/122 Pages) Microchip Technology – 14-Pin, 8-Bit Flash Microcontroller | |||
|
◁ |
DECF
Decrement f
Syntax:
[ label ] DECF f,d
Operands:
0 ï£ f ï£ 31
d ï [0,1]
Operation:
(f) â 1 ï® (dest)
Status Affected: Z
Description:
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â.
DECFSZ
Decrement f, Skip if 0
Syntax:
[ label ] DECFSZ f,d
Operands:
0 ï£ f ï£ 31
d ï [0,1]
Operation:
(f) â 1 ï® d; skip if result = 0
Status Affected: None
Description:
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.
GOTO
Unconditional Branch
Syntax:
[ label ] GOTO k
Operands:
0 ï£ k ï£ 511
Operation:
k ï® PC<8:0>;
STATUS<6:5> ï® PC<10:9>
Status Affected: None
Description:
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.
PIC16F526
INCF
Increment f
Syntax:
[ label ] INCF f,d
Operands:
0 ï£ f ï£ 31
d ï [0,1]
Operation:
(f) + 1 ï® (dest)
Status Affected: Z
Description:
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â.
INCFSZ
Increment f, Skip if 0
Syntax:
[ label ] INCFSZ f,d
Operands:
0 ï£ f ï£ 31
d ï [0,1]
Operation:
(f) + 1 ï® (dest), skip if result = 0
Status Affected: None
Description:
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.
IORLW
Inclusive OR literal with W
Syntax:
[ label ] IORLW k
Operands:
0 ï£ k ï£ 255
Operation:
(W) .OR. (k) ï® (W)
Status Affected: Z
Description:
The contents of the W register are
ORâed with the eight-bit literal âkâ.
The result is placed in the
W register.
ï£ 2010 Microchip Technology Inc.
DS41326D-page 75
|
▷ |