English
Language : 

PIC17C7XX_13 Datasheet, PDF (209/306 Pages) Microchip Technology – High-Performance 8-bit CMOS EPROM Microcontrollers with 10-bit A/D
PIC17C7XX
CPFSEQ
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Q Cycle Activity:
Q1
Decode
Compare f with WREG,
skip if f = WREG
[ label ] CPFSEQ f
0  f  255
(f) – (WREG),
skip if (f) = (WREG)
(unsigned comparison)
None
0011 0001 ffff ffff
Compares the contents of data memory
location 'f' to the contents of WREG by
performing an unsigned subtraction.
If 'f' = WREG, then the fetched instruc-
tion is discarded and a NOP is executed
instead, making this a two-cycle
instruction.
1
1 (2)
Q2
Read
register 'f'
Q3
Process
Data
Q4
No
operation
If skip:
Q1
No
operation
Q2
No
operation
Q3
No
operation
Q4
No
operation
Example:
HERE CPFSEQ REG
NEQUAL :
EQUAL :
Before Instruction
PC Address =
WREG
=
REG
=
HERE
?
?
After Instruction
If REG
=
PC
=
If REG

PC
=
WREG;
Address (EQUAL)
WREG;
Address (NEQUAL)
CPFSGT
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Q Cycle Activity:
Q1
Decode
Compare f with WREG,
skip if f > WREG
[ label ] CPFSGT f
0  f  255
(f) WREG),
skip if (f) > (WREG)
(unsigned comparison)
None
0011 0010 ffff ffff
Compares the contents of data memory
location 'f' to the contents of the WREG
by performing an unsigned subtraction.
If the contents of 'f' are greater than the
contents of WREG, then the fetched
instruction is discarded and a NOP is
executed instead, making this a
two-cycle instruction.
1
1 (2)
Q2
Read
register 'f'
Q3
Process
Data
Q4
No
operation
If skip:
Q1
No
operation
Q2
No
operation
Q3
No
operation
Q4
No
operation
Example:
HERE
CPFSGT REG
NGREATER :
GREATER :
Before Instruction
PC
=
WREG
=
Address (HERE)
?
After Instruction
If REG
>
PC
=
If REG
£
PC
=
WREG;
Address (GREATER)
WREG;
Address (NGREATER)
 1998-2013 Microchip Technology Inc.
DS30289C-page 209