PIC16C71X
INCF
Increment f
GOTO
Unconditional Branch
Syntax:
Operands:
[ label ] INCF f,d
Syntax:
[ label ] GOTO k
0 ≤ f ≤ 127
Operands:
Operation:
0 ≤ k ≤ 2047
d
[0,1]
k → PC<10:0>
PCLATH<4:3> → PC<12:11>
Operation:
(f) + 1 → (dest)
Status Affected:
Encoding:
Z
Status Affected:
Encoding:
None
00
1010
dfff
ffff
10
1kkk
kkkk
kkkk
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'.
Description:
GOTOis 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>.
GOTOis a two cycle instruction.
Description:
Words:
1
1
Words:
1
2
Cycles:
Cycles:
Q Cycle Activity:
Q1
Q2
Q3
Q4
Q Cycle Activity:
1st Cycle
Q1
Q2
Q3
Q4
Decode
Read
register
'f'
Process
data
Write to
dest
Decode
Read
literal 'k'
Process
data
Write to
PC
NOP
NOP
NOP
NOP
2nd Cycle
Example
INCF
CNT, 1
Example
GOTO THERE
Before Instruction
CNT
Z
=
=
0xFF
0
After Instruction
PC
=
Address THERE
After Instruction
CNT
Z
=
=
0x00
1
DS30272A-page 76
1997 Microchip Technology Inc.