Datasheet

PIC17C7XX
DS30289C-page 224 1998-2013 Microchip Technology Inc.
RRNCF Rotate Right f (no carry)
Syntax: [ label ] RRNCF f,d
Operands: 0 f 255
d [0,1]
Operation: f<n> d<n-1>;
f<0> d<7>
Status Affected: None
Encoding:
0010 000d ffff ffff
Description:
The contents of register 'f' are rotated
one bit to the right. If 'd' is 0, the result is
placed in WREG. If 'd' is 1, the result is
placed back in register 'f'.
Words: 1
Cycles: 1
Q Cycle Activity:
Q1 Q2 Q3 Q4
Decode Read
register 'f'
Process
Data
Write to
destination
Example 1:
RRNCF REG, 1
Before Instruction
WREG = ?
REG = 1101 0111
After Instruction
WREG = 0
REG = 1110 1011
Example 2:
RRNCF REG, 0
Before Instruction
WREG = ?
REG = 1101 0111
After Instruction
WREG = 1110 1011
REG = 1101 0111
register f
SETF Set f
Syntax: [ label ] SETF f,s
Operands: 0 f 255
s [0,1]
Operation: FFh f;
FFh d
Status Affected: None
Encoding:
0010 101s ffff ffff
Description:
If 's' is 0, both the data memory location
'f' and WREG are set to FFh. If 's' is 1,
only the data memory location 'f' is set
to FFh.
Words: 1
Cycles: 1
Q Cycle Activity:
Q1 Q2 Q3 Q4
Decode Read
register 'f'
Process
Data
Write
register 'f'
and other
specified
register
Example1:
SETF REG, 0
Before Instruction
REG = 0xDA
WREG = 0x05
After Instruction
REG = 0xFF
WREG = 0xFF
Example2: SETF REG, 1
Before Instruction
REG = 0xDA
WREG = 0x05
After Instruction
REG = 0xFF
WREG = 0x05