PIC16C925/926
GOTO
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Q Cycle Activity:
1st Cycle
2nd Cycle
Unconditional Branch
[ label ] GOTO k
0 ≤ k ≤ 2047
k → PC<10:0>
PCLATH<4:3> → PC<12:11>
None
10
1kkk kkkk kkkk
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.
1
2
Q1
Q2
Q3
Q4
Decode Read Process Write to
literal ’k’ data
PC
No
No
No
No
Operation Operation Operation Operation
Example
GOTO THERE
After Instruction:
PC = Address THERE
INCF
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Q Cycle Activity:
Increment f
[ label ] INCF f [,d]
0 ≤ f ≤ 127
d ∈ [0,1]
(f) + 1 → (destination)
Z
00 1010 dfff ffff
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’.
1
1
Q1 Q2 Q3
Q4
Decode
Read
register
’f’
Process Write to
data destination
Example
INCF
CNT, 1
Before Instruction:
CNT = 0xFF
Z
=0
After Instruction:
CNT = 0x00
Z
=1
DS39544A-page 122
Preliminary
2001 Microchip Technology Inc.