Datasheet

1997 Microchip Technology Inc. DS30444E - page 125
PIC16C9XX
CLRF Clear f
Syntax: [
label
] CLRF f
Operands: 0 f 127
Operation: 00h (f)
1 Z
Status Affected: Z
Encoding:
00 0001 1fff ffff
Description:
The contents of register 'f' are cleared
and the Z bit is set.
Words: 1
Cycles: 1
Q Cycle Activity: Q1 Q2 Q3 Q4
Decode Read
register
'f'
Process
data
Write
register 'f'
Example
CLRF FLAG_REG
Before Instruction
FLAG_REG = 0x5A
After Instruction
FLAG_REG = 0x00
Z = 1
CLRW Clear W
Syntax: [
label
] CLRW
Operands: None
Operation: 00h (W)
1 Z
Status Affected: Z
Encoding:
00 0001 0xxx xxxx
Description:
W register is cleared. Zero bit (Z) is
set.
Words: 1
Cycles: 1
Q Cycle Activity: Q1 Q2 Q3 Q4
Decode No-
Operation
Process
data
Write to
W
Example
CLRW
Before Instruction
W = 0x5A
After Instruction
W = 0x00
Z = 1