|
PIC12F509-I Datasheet, PDF (61/110 Pages) Microchip Technology – 8/14-Pin, 8-Bit Flash Microcontrollers | |||
|
◁ |
PIC12F508/509/16F505
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.
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.
© 2009 Microchip Technology Inc.
DS41236E-page 61
|
▷ |