DP805x Instructions set details
- 75 -
3.42. XCH
Instruction:
Function:
XCH A, <byte>
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.
3.42.1.
XCH A, RN
Operation: (PC) ← (PC) + 1
(A) ↔ (Rn)
Bytes:
Cycles:
1
2
Encoding:
1
1
0
0
1
0
0
r
r
r
1
i
3.42.2.
XCH A, DIRECT
Operation: (PC) ← (PC) + 2
(A) ↔ (direct)
Bytes:
Cycles:
2
3
Encoding:
1
1
0
0
1
0
direct address
3.42.3.
XCH A, @RI
Operation: (PC) ← (PC) + 1
(A) ↔ ((Ri))
Bytes:
Cycles:
1
3
Encoding:
1
1
0
0
1
1
All trademarks mentioned in this document
are trademarks of their respective owners.
http://www.DigitalCoreDesign.com
http://www.dcd.pl
Copyright 1999-2003 DCD – Digital Core Design. All Rights Reserved.