|
PIC16F872 Datasheet, PDF (116/160 Pages) Microchip Technology – 28-Pin, 8-Bit CMOS FLASH Microcontroller | |||
|
◁ |
PIC16F872
IORLW
Syntax:
Operands:
Operation:
Status Affected:
Description:
Inclusive OR Literal with W
[ label ] IORLW k
0 ⤠k ⤠255
(W) .OR. k â (W)
Z
The contents of the W register are
ORâed with the eight bit literal 'k'.
The result is placed in the W reg-
ister.
MOVLW
Syntax:
Operands:
Operation:
Status Affected:
Description:
Move Literal to W
[ label ] MOVLW k
0 ⤠k ⤠255
k â (W)
None
The eight bit literal 'k' is loaded
into W register. The donât cares
will assemble as 0âs.
IORWF
Syntax:
Operands:
Operation:
Status Affected:
Description:
Inclusive OR W with f
[ label ] IORWF f,d
0 ⤠f ⤠127
d â [0,1]
(W) .OR. (f) â (destination)
Z
Inclusive OR the W register with
register 'f'. If 'd' is 0 the result is
placed in the W register. If 'd' is 1
the result is placed back in regis-
ter 'f'.
MOVF
Syntax:
Operands:
Operation:
Status Affected:
Description:
Move f
[ label ] MOVF f,d
0 ⤠f ⤠127
d â [0,1]
(f) â (destination)
Z
The contents of register f are
moved to a destination dependant
upon the status of d. If d = 0, des-
tination is W register. If d = 1, the
destination is file register f itself. d
= 1 is useful to test a file register
since status flag Z is affected.
MOVWF
Syntax:
Operands:
Operation:
Status Affected:
Description:
Move W to f
[ label ] MOVWF f
0 ⤠f ⤠127
(W) â (f)
None
Move data from W register to reg-
ister 'f'.
NOP
Syntax:
Operands:
Operation:
Status Affected:
Description:
No Operation
[ label ] NOP
None
No operation
None
No operation.
DS30221A-page 116
Preliminary
© 1999 Microchip Technology Inc.
|
▷ |