|
PIC12F529T48A Datasheet, PDF (59/98 Pages) Microchip Technology – 14-Pin, 8-Bit Flash Microcontrollers | |||
|
◁ |
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â.
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; 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 â0â, the next instruc-
tion, which is already fetched, is
discarded and a NOP is executed
instead making it a two-cycle
instruction.
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.
PIC12F529T48A
INCF
Syntax:
Operands:
Operation:
Status Affected:
Description:
Increment f
[ label ] INCF f,d
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â.
INCFSZ
Syntax:
Operands:
Operation:
Status Affected:
Description:
Increment f, Skip if 0
[ label ] INCFSZ f,d
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.
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.
ï£ 2012 Microchip Technology Inc.
Preliminary
DS41634A-page 59
|
▷ |