 | 8051 Instruction Set Manual |  |
|
|
| XCHThe 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. See Also: SWAP, XCHD | Bytes | 1 | | Cycles | 1 | | Encoding | | | Operation |
XCH
A swap (Ri)
| | Example |
XCH A, @R0
|
| Bytes | 2 | | Cycles | 1 | | Encoding | | | Operation |
XCH
A swap (direct)
| | Example |
XCH A, 45h
|
| Bytes | 1 | | Cycles | 1 | | Encoding | | | Operation |
XCH
A swap Rn
| | Example |
XCH A, R6
|
|
|