12F508 Microchip Technology, 12F508 Datasheet - Page 61
![no-image](/images/manufacturer_photos/0/4/439/microchip_technology_sml.jpg)
12F508
Manufacturer Part Number
12F508
Description
Search -----> PIC12F508
Manufacturer
Microchip Technology
Datasheet
1.12F508.pdf
(98 pages)
Available stocks
Company
Part Number
Manufacturer
Quantity
Price
Company:
Part Number:
12F508I/SN
Manufacturer:
SILICON
Quantity:
2 400
www.DataSheet.in
DECF
Syntax:
Operands:
Operation:
Status Affected: Z
Description:
DECFSZ
Syntax:
Operands:
Operation:
Status Affected: None
Description:
GOTO
Syntax:
Operands:
Operation:
Status Affected: None
Description:
© 2005 Microchip Technology Inc.
Decrement f
[ label ] DECF f,d
0
d
(f) – 1
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’.
Decrement f, Skip if 0
[ label ] DECFSZ f,d
0
d
(f) – 1
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.
Unconditional Branch
[ label ]
0
k
STATUS<6:5>
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.
f
f
k
[0,1]
[0,1]
PC<8:0>;
31
31
511
(dest)
d;
GOTO k
skip if result = 0
PC<10:9>
Preliminary
PIC12F508/509/16F505
INCF
Syntax:
Operands:
Operation:
Status Affected: Z
Description:
INCFSZ
Syntax:
Operands:
Operation:
Status Affected: None
Description:
IORLW
Syntax:
Operands:
Operation:
Status Affected: Z
Description:
Increment f
[ label ]
0
d
(f) + 1
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’.
Increment f, Skip if 0
[ label ]
0
d
(f) + 1
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.
Inclusive OR literal with W
[ label ]
0
(W) .OR. (k)
The contents of the W register are
OR’ed with the eight-bit literal ‘k’.
The result is placed in the
W register.
f
f
k
[0,1]
[0,1]
31
31
255
(dest)
(dest), skip if result = 0
INCF f,d
INCFSZ f,d
IORLW k
(W)
DS41236B-page 59