You are here : assembly8051XCH

XCH - 8051

The XCH instruction loads the accumulator with the byte value of the specified operand while simultaneously storing the previous contents of the accumulator in the specified operand.


Syntax

XCH source,destination


Example

XCH A,@R0	;1 byte  1 cycle
XCH A,30h	;2 bytes 1 cycle
XCH A,R6	;1 byte  1 cycle


Output / Return Value


Limitations


Alternatives / See Also


Reference