User's Manual

MSM80C154S/83C154S/85C154HVS
364
104. XCH A, data address (Exchange memory with accumulator)
11000101
70
Instruction code
Data address
Operation
Number of bytes
Number of cycles
Flags
(PSW)
Description
Example XCH A, 7AH
Instruction code
: Byte 1
a7 a6 a5 a4 a3 a2 a1 a0
70
Byte 2
(A)
(data address):
C AC F0 RS1 RS0 OV F1 P
:
:
:
The accumulator contents are exchanged with the specified
data address contents, and the flag is updated.
:
11000101
70
Byte 1
Accumulator
10111101
70
2
1
01111010
70
Byte 2
Before execution
Accumulator
11011100
70
After execution
:
7AH
11011100
70
7AH
10111101
70