English
Language : 

DR805X Datasheet, PDF (75/79 Pages) Digital Core Design – 8-bit RISC Microcontroller Instructions set details ver 3.10
DR805x Instructions set details
3.42. XCH
- 75 -
Instruction: 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.
3.42.1.
XCH A, RN
Operation: (PC) ← (PC) + 1
(A) ↔ (Rn)
Bytes:
1
Cycles:
2
Encoding:
11001 r r r
3.42.2.
XCH A, DIRECT
Operation: (PC) ← (PC) + 2
(A) ↔ (direct)
Bytes:
2
Cycles:
3
Encoding:
11000101
direct address
3.42.3.
XCH A, @RI
Operation: (PC) ← (PC) + 1
(A) ↔ ((Ri))
Bytes:
1
Cycles:
3
Encoding:
1100011 i
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.