PIC17C75X
ANDWF
Syntax:
AND WREG with f
BCF
Bit Clear f
[ label ] ANDWF f,d
Syntax:
Operands:
[ label ] BCF f,b
Operands:
0 ≤ f ≤ 255
0 ≤ f ≤ 255
0 ≤ b ≤ 7
d
[0,1]
Operation:
(WREG) .AND. (f) → (dest)
Operation:
Status Affected:
Encoding:
Description:
Words:
0 → (f<b>)
Status Affected:
Encoding:
Z
None
0000
101d
ffff
ffff
1000
1bbb
ffff
ffff
The contents of WREG are AND’ed with
register 'f'. If 'd' is 0 the result is stored
in WREG. If 'd' is 1 the result is stored
back in register 'f'.
Bit 'b' in register 'f' is cleared.
Description:
1
1
Cycles:
Words:
Cycles:
1
1
Q Cycle Activity:
Q1
Q2
Q3
Q4
Decode
Read
register 'f'
Process
Data
Write
register 'f'
Q Cycle Activity:
Q1
Q2
Q3
Q4
Decode
Read
register 'f'
Process
Data
Write to
destination
BCF
FLAG_REG,
7
Example:
Before Instruction
FLAG_REG = 0xC7
ANDWF
REG, 1
Example:
After Instruction
Before Instruction
FLAG_REG = 0x47
WREG
=
0x17
0xC2
REG
=
After Instruction
WREG
REG
=
=
0x17
0x02
DS30264A-page 190
1997 Microchip Technology Inc.