Crossware

Table of Contents        Previous topic       Next topic       

MICROPROCESSOR INSTRUCTION REFERENCE->XCHD

XCHD               Exchange Digit

This instruction exchanges the low order nibble of the accumulator (bits 3-0) with that of the internal RAM location indirectly addressed by the specified register.  The high order nibbles of each register are unaffected.  In general this is used when the low order nibbles are representing hexadecimal or BCD digits).


Formats:
    
DescriptionMnemonicBytesCycles
    
Exchange Indirect Address and Accumulator:XCHD A,@Ri11

where Ri is R0 or R1
    
PSW:CACF0RS1RS0OVP
N/AN/AN/AN/AN/AN/A*

(N/A: Not affected)