You are here : assembly8051XCHD

XCHD - 8051

The XCHD instruction exchanges the low-order nibble of the accumulator with the low-order nibble of the specified internal RAM location.

The internal RAM is accessed indirectly through R0 or R1.

The high-order nibbles of each operand are not affected.


Syntax

XCHD A,@Ri


Example

XCHD A,@R1	;1 byte 1 cycle


Output / Return Value


Limitations


Alternatives / See Also


Reference