Crossware

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:
    
DescriptionMnemonicBytesCycles
    
Exchange Register and Accumulator:XCH A,Rn11
Exchange Memory and Accumulator:XCH A,<direct addr>21
Exchange Indirect Address and Accumulator:XCH A,@Ri11

where Ri is R0 or R1 and Rn is R0 - R7
    
PSW:CACF0RS1RS0OVP
N/AN/AN/AN/AN/AN/A*

(N/A: Not affected)