Keil Logo

ORL

The ORL instruction performs a bitwise logical OR operation on the specified operands, the result of which is stored in the destination operand.

Note

When this instruction is used to modify an output port, the value used as the port data will be read from the output data latch, not the input pins of the port.

See Also: ANL, XRL

ORL A, #immediate
C AC F0 RS1 RS0 OV   P
Bytes 2
Cycles 1
Encoding
01000100 immediate
Operation
ORL
A = A OR immediate
Example
ORL A, #01h
ORL A, @Ri
C AC F0 RS1 RS0 OV   P
Bytes 1
Cycles 1
Encoding
0100011i
Operation
ORL
A = A OR (Ri)
Example
ORL A, @R0
ORL A, direct
C AC F0 RS1 RS0 OV   P
Bytes 2
Cycles 1
Encoding
01000101 direct
Operation
ORL
A = A OR (direct)
Example
ORL A, P0
ORL A, Rn
C AC F0 RS1 RS0 OV   P
Bytes 1
Cycles 1
Encoding
01001nnn
Operation
ORL
A = A OR Rn
Example
ORL A, R5
ORL C, /bit
C AC F0 RS1 RS0 OV   P
Bytes 2
Cycles 2
Encoding
10100000 bit
Operation
ORL
C = C OR NOT (bit)
Example
ORL C, /22h
ORL C, bit
C AC F0 RS1 RS0 OV   P
Bytes 2
Cycles 2
Encoding
01110010 bit
Operation
ORL
C = C OR (bit)
Example
ORL C, 22h
ORL direct, #immediate
C AC F0 RS1 RS0 OV   P
Bytes 3
Cycles 2
Encoding
01000011 direct immediate
Operation
ORL
(direct) = (direct) OR immediate
Example
ORL P0, #01h
ORL direct, A
C AC F0 RS1 RS0 OV   P
Bytes 2
Cycles 1
Encoding
01000010 direct
Operation
ORL
(direct) = (direct) OR A
Example
ORL P0, A
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.