Siemens C500 User Manual page 102

Microcontroller family
Table of Contents

Advertisement

XCH
A, <byte>
Function:
Exchange accumulator with byte variable
Description:
XCH loads the accumulator with the contents of the indicated variable, at the same
time writing the original accumulator contents to the indicated variable. The source/
destination operand can use register, direct, or register-indirect addressing.
Example:
R0 contains the address 20 H . The accumulator holds the value 3F H (00111111 B ).
Internal RAM location 20 H holds the value 75 H (01110101 B ). The instruction
XCH
will leave RAM location 20 H holding the value 3F H (00111111 B ) and 75 H
(01110101 B ) in the accumulator.
XCH
A,Rn
Operation:
XCH
¬ ®
(A)
Encoding:
1 1 0 0
Bytes:
1
Cycles:
1
XCH
A,direct
Operation:
XCH
¬ ®
(A)
Encoding:
1 1 0 0
Bytes:
2
Cycles:
1
Semiconductor Group
A, @R0
(Rn)
1 r r r
(direct)
0 1 0 1
direct address
4-76
Instruction Set
C500 Family
1998-04-01

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents