SAB80C517-M16 SIEMENS [Siemens Semiconductor Group], SAB80C517-M16 Datasheet - Page 244

no-image

SAB80C517-M16

Manufacturer Part Number
SAB80C517-M16
Description
8-Bit CMOS Single-Chip Microcontroller
Manufacturer
SIEMENS [Siemens Semiconductor Group]
Datasheet
XCH
Function:
Description:
Example:
XCH
Operation:
Encoding:
Bytes:
Cycles:
XCH
Operation:
Encoding:
Bytes:
Cycles:
Semiconductor Group
A, <byte>
A,Rn
A,direct
Exchange accumulator with byte variable
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.
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)
1
1
XCH
(A)
2
1
1 1 0 0
1 1 0 0
(Rn)
(direct)
A, @R0
0 1 0 1
1 r r r
245
direct address
Instruction Set

Related parts for SAB80C517-M16