Table of Contents Previous topic Next topic
MICROPROCESSOR INSTRUCTION REFERENCE->XCH
XCH Exchange Accumulator with Byte Variable
This instruction loads the accumulator with the contents of the indicated variable and at the same time writes the original accumulator contents to the indicated variable.
Formats:
Description | Mnemonic | Bytes | Cycles |
Exchange Register and Accumulator: | XCH A,Rn | 1 | 1 |
Exchange Memory and Accumulator: | XCH A,<direct addr> | 2 | 1 |
Exchange Indirect Address and Accumulator: | XCH A,@Ri | 1 | 1 |
PSW: | C | AC | F0 | RS1 | RS0 | OV | P |
N/A | N/A | N/A | N/A | N/A | N/A | * |