Keil Logo

XRL

The XRL instruction performs a logical exclusive OR operation between the specified operands. The result is stored in the destination operand.

Note

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

See Also: ANL, ORL

XRL A, #immediate
C AC F0 RS1 RS0 OV   P
Bytes 2
Cycles 1
Encoding
01100100 immediate
Operation
XRL
A = A XOR immediate
Example
XRL A, #0FFh
XRL A, @Ri
C AC F0 RS1 RS0 OV   P
Bytes 1
Cycles 1
Encoding
0110011i
Operation
XRL
A = A XOR (Ri)
Example
XRL A, @R0
XRL A, direct
C AC F0 RS1 RS0 OV   P
Bytes 2
Cycles 1
Encoding
01100101 direct
Operation
XRL
A = A XOR (direct)
Example
XRL A, 34h
XRL A, Rn
C AC F0 RS1 RS0 OV   P
Bytes 1
Cycles 1
Encoding
01101nnn
Operation
XRL
A = A XOR Rn
Example
XRL A, R7
XRL direct, #immediate
C AC F0 RS1 RS0 OV   P
Bytes 3
Cycles 2
Encoding
01100011 direct immediate
Operation
XRL
(direct) = (direct) XOR immediate
Example
XRL 34H, #0FFh
XRL direct, A
C AC F0 RS1 RS0 OV   P
Bytes 2
Cycles 1
Encoding
01100010 direct
Operation
XRL
(direct) = (direct) XOR A
Example
XRL 34h, 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.