English
Language : 

PIC17C4X Datasheet, PDF (114/240 Pages) Microchip Technology – High-Performance 8-Bit CMOS EPROM/ROM Microcontroller
PIC17C4X
ANDWF
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Q Cycle Activity:
Q1
Decode
AND WREG with f
[ label ] ANDWF f,d
0 ≤ f ≤ 255
d ∈ [0,1]
(WREG) .AND. (f) → (dest)
Z
0000 101d 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'.
1
1
Q2
Read
register 'f'
Q3
Execute
Q4
Write to
destination
Example:
ANDWF REG, 1
Before Instruction
WREG = 0x17
REG = 0xC2
After Instruction
WREG = 0x17
REG = 0x02
BCF
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Q Cycle Activity:
Q1
Decode
Bit Clear f
[ label ] BCF f,b
0 ≤ f ≤ 255
0≤b≤7
0 → (f<b>)
None
1000 1bbb ffff
Bit 'b' in register 'f' is cleared.
1
1
ffff
Q2
Read
register 'f'
Q3
Execute
Q4
Write
register 'f'
Example:
BCF
Before Instruction
FLAG_REG = 0xC7
After Instruction
FLAG_REG = 0x47
FLAG_REG, 7
DS30412C-page 114
© 1996 Microchip Technology Inc.