You are here : assembly8051XRL

XRL - 8051

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.


Syntax

XRL source,destination


Example

XRL A,#10H	;2 bytes 1 cycle
XRL A,@R1	;1 byte  1 cycle
XRL A,30h	;2 bytes 1 cycle
XRL A,R6	;1 byte  1 cycle
XRL 30h,#12h	;3 bytes 2 cycles
XRL 30h,A	;2 bytes 1 cycle


Output / Return Value


Limitations


Alternatives / See Also


Reference