PIC16C745/765
IORLW
Inclusive OR Literal with W
MOVLW
Move Literal to W
[ label ] MOVLW k
0 ≤ k ≤ 255
Syntax:
[ label ] IORLW k
0 ≤ k ≤ 255
Syntax:
Operands:
Operation:
Status Affected:
Description:
Operands:
Operation:
(W) .OR. k → (W)
Z
k → (W)
Status Affected: None
The contents of the W register are
OR’ed with the eight bit literal 'k'. The
result is placed in the W register.
The eight bit literal 'k' is loaded into W
register. The don’t cares will assem-
ble as 0’s.
Description:
IORWF
Inclusive OR W with f
[ label ] IORWF f,d
0 ≤ f ≤ 127
MOVWF
Syntax:
Move W to f
Syntax:
[ label ] MOVWF
0 ≤ f ≤ 127
f
Operands:
Operands:
Operation:
d
[0,1]
(W) → (f)
Operation:
(W) .OR. (f) → (destination)
Status Affected: None
Status Affected:
Description:
Z
Description:
Move data from W register to reg-
ister ’f’.
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’.
NOP
No Operation
[ label ] NOP
None
Syntax:
MOVF
Move f
Operands:
Operation:
Syntax:
Operands:
[ label ] MOVF f,d
0 ≤ f ≤ 127
No operation
d
[0,1]
Status Affected: None
Description: No operation.
Operation:
(f) → (destination)
Status Affected:
Description:
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.
DS41124A-page 114
Advanced Information
1999 Microchip Technology Inc.