|
PIC17C7XX Datasheet, PDF (202/328 Pages) Microchip Technology – High-Performance 8-Bit CMOS EPROM Microcontrollers with 10-bit A/D | |||
|
◁ |
PIC17C7XX
ANDWF
AND WREG with f
Syntax:
[ label ] ANDWF f,d
Operands:
0 ⤠f ⤠255
d â [0,1]
Operation:
(WREG) .AND. (f) â (dest)
Status Affected: Z
Encoding:
0000 101d ffff ffff
Description:
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'.
Words:
1
Cycles:
1
Q Cycle Activity:
Q1
Decode
Q2
Read
register 'f'
Q3
Process
Data
Q4
Write to
destination
Example:
ANDWF REG, 1
Before Instruction
WREG = 0x17
REG = 0xC2
After Instruction
WREG = 0x17
REG = 0x02
BCF
Bit Clear f
Syntax:
[ label ] BCF f,b
Operands:
0 ⤠f ⤠255
0â¤bâ¤7
Operation:
0 â (f<b>)
Status Affected: None
Encoding:
1000 1bbb ffff ffff
Description:
Bit 'b' in register 'f' is cleared.
Words:
1
Cycles:
1
Q Cycle Activity:
Q1
Decode
Q2
Read
register 'f'
Q3
Process
Data
Q4
Write
register 'f'
Example:
BCF
Before Instruction
FLAG_REG = 0xC7
After Instruction
FLAG_REG = 0x47
FLAG_REG, 7
DS30289A-page 202
© 1998 Microchip Technology Inc.
|
▷ |