PIC16C62B/72A
1998-2013 Microchip Technology Inc.
Preliminary
DS35008C-page 71
COMF
Complement f
Syntax:
[
label ] COMF f,d
Operands:
0
f
127
d
[0,1]
Operation:
(f)
(destination)
Status Affected:
Z
Description:
The contents of register 'f' are comple-
mented. If 'd' is 0, the result is stored
in W. If 'd' is 1, the result is stored
back in register 'f'.
DECF
Decrement f
Syntax:
[
label] DECF f,d
Operands:
0
f
127
d
[0,1]
Operation:
(f) - 1
(destination)
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 regis-
ter 'f'
.
DECFSZ
Decrement f, Skip if 0
Syntax:
[
label ] DECFSZ f,d
Operands:
0
f
127
d
[0,1]
Operation:
(f) - 1
(destination);
skip if result = 0
Status Affected:
None
Description:
The contents of register 'f' are decre-
mented. 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 1, the next instruction, is
executed. If the result is 0, then a
NOP
is
executed instead making it a 2T
CY
instruction.
GOTO
Unconditional Branch
Syntax:
[
label ] GOTO k
Operands:
0
k
2047
Operation:
k
PC<10:0>
PCLATH<4:3>
PC<12:11>
Status Affected:
None
Description:
GOTO
is an unconditional branch. The
eleven bit immediate value is loaded
into PC bits <10:0>. The upper bits of
PC are loaded from PCLATH<4:3>.
GOTO
is a two cycle instruction.
INCF
Increment f
Syntax:
[
label ] INCF f,d
Operands:
0
f
127
d
[0,1]
Operation:
(f) + 1
(destination)
Status Affected:
Z
Description:
The contents of register 'f' are incre-
mented. 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
127
d
[0,1]
Operation:
(f) + 1
(destination),
skip if result = 0
Status Affected:
None
Description:
The contents of register 'f' are incre-
mented. 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 1, the next instruction is
executed. If the result is 0, a
NOP
is
executed instead making it a 2T
CY
instruction
.
Summary of Contents for PIC16C62B/72A
Page 4: ...PIC16C62B 72A DS35008C page 4 Preliminary 1998 2013 Microchip Technology Inc NOTES...
Page 30: ...PIC16C62B 72A DS35008C page 30 Preliminary 1998 2013 Microchip Technology Inc NOTES...
Page 38: ...PIC16C62B 72A DS35008C page 38 Preliminary 1998 2013 Microchip Technology Inc NOTES...
Page 48: ...PIC16C62B 72A DS35008C page 48 Preliminary 1998 2013 Microchip Technology Inc NOTES...
Page 80: ...PIC16C62B 72A DS35008C page 80 Preliminary 1998 2013 Microchip Technology Inc NOTES...
Page 104: ...PIC16C62B 72A DS35008C page 104 Preliminary 1998 2013 Microchip Technology Inc NOTES...
Page 110: ...PIC16C62B 72A DS35008C page 110 Preliminary 1998 2013 Microchip Technology Inc NOTES...
Page 120: ...PIC16C62B 72A DS35008C page 120 Preliminary 1913 Microchip Technology Inc...