2000 Microchip Technology Inc.
DS30605C-page 103
PIC16C63A/65B/73B/74B
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
register ’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 2 T
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 2 T
CY
instruction
.
Summary of Contents for PIC16C63A
Page 4: ...PIC16C63A 65B 73B 74B DS30605C page 4 2000 Microchip Technology Inc NOTES ...
Page 6: ...PIC16C63A 65B 73B 74B DS30605C page 6 2000 Microchip Technology Inc NOTES ...
Page 8: ...PIC16C63A 65B 73B 74B DS30605C page 8 2000 Microchip Technology Inc NOTES ...
Page 28: ...PIC16C63A 65B 73B 74B DS30605C page 28 2000 Microchip Technology Inc NOTES ...
Page 42: ...PIC16C63A 65B 73B 74B DS30605C page 42 2000 Microchip Technology Inc NOTES ...
Page 78: ...PIC16C63A 65B 73B 74B DS30605C page 78 2000 Microchip Technology Inc NOTES ...
Page 112: ...PIC16C63A 65B 73B 74B DS30605C page 112 2000 Microchip Technology Inc NOTES ...
Page 152: ...PIC16C63A 65B 73B 74B DS30605C page 152 2000 Microchip Technology Inc NOTES ...
Page 164: ...PIC16C63A 65B 73B 74B DS30605C page 164 2000 Microchip Technology Inc NOTES ...
Page 174: ...PIC16C63A 65B 73B 74B DS30605C page 174 2000 Microchip Technology Inc NOTES ...
Page 178: ...PIC16C63A 65B 73B 74B DS30605C page 178 2000 Microchip Technology Inc NOTES ...
Page 179: ... 2000 Microchip Technology Inc DS30605C page 179 PIC16C63A 65B 73B 74B NOTES ...
Page 180: ...PIC16C63A 65B 73B 74B DS30605C page 180 2000 Microchip Technology Inc NOTES ...
Page 181: ... 2000 Microchip Technology Inc DS30605C page 181 PIC16C63A 65B 73B 74B NOTES ...
Page 182: ...PIC16C63A 65B 73B 74B DS30605C page 182 2000 Microchip Technology Inc NOTES ...
Page 183: ... 2000 Microchip Technology Inc DS30605C page 183 PIC16C63A 65B 73B 74B NOTES ...