User's Manual

DESCRIPTION OF INSTRUCTIONS
363
103. XCH A, Rr (Exchange register with accumulator)
11001r2 r1 r0
70
Instruction code
Operation
Number of bytes
Number of cycles
Flags
(PSW)
Description
Example XCH A, R5
Instruction code
: Byte 1
(A)
(Rr) r=0 thru 7:
C AC F0 RS1 RS0 OV F1 P
:
:
:
The accumulator contents are exchanged with the register r
contents, and the flag is updated.
:
11001101
70
Byte 1
Accumulator
01110010
70
1
1
Before execution
Accumulator
10100001
70
After execution
:
Register 5
10100001
70
Register 5
01110010
70