PIC18F2331/2431/4331/4431
IORLW
Inclusive OR Literal with W
IORWF
Inclusive OR W with f
Syntax:
[ label ] IORLW
0 k 255
(W) .OR. k W
N, Z
k
Syntax:
[ label ] IORWF f [,d [,a]]
Operands:
Operation:
Status Affected:
Encoding:
Description:
Operands:
0 f 255
d [0,1]
a [0,1]
Operation:
(W) .OR. (f) dest
0000
1001
kkkk
kkkk
Status Affected:
Encoding:
N, Z
The contents of W are ORed with the
8-bit literal, ‘k’. The result is placed in
W.
0001
00da
ffff
ffff
Description:
Inclusive OR W with register, ‘f’. If ‘d’ is
‘0’, the result is placed in W. If ‘d’ is ‘1’,
the result is placed back in register, ‘f’. If
‘a’ is ‘0’, the Access Bank will be
selected, overriding the BSR value. If
‘a’ = 1, then the bank will be selected as
per the BSR value.
Words:
Cycles:
1
1
Q Cycle Activity:
Q1
Q2
Q3
Q4
Decode
Read
literal ‘k’
Process
Data
Write to
W
Words:
Cycles:
1
1
Example:
IORLW
0x9A
0x35
Q Cycle Activity:
Q1
Q2
Q3
Q4
Before Instruction
W
=
Decode
Read
register ‘f’
Process
Data
Write to
destination
After Instruction
W
=
0xBF
Example:
IORWF RESULT, W
Before Instruction
RESULT =
0x13
0x91
W
=
After Instruction
RESULT =
0x13
0x93
W
=
DS39616D-page 306
2010 Microchip Technology Inc.