MSM80C154S/83C154S/85C154HVS

104. XCH A, data address (Exchange memory with accumulator)

Instruction code

:

7

 

 

 

 

 

 

 

0

1

1

0

0

 

0

1

0

1

Byte 1

 

 

 

7

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

 

 

 

 

Data address

 

a7

a6

a5

a4

a3

a2

 

 

a1

 

 

 

a0

 

 

Byte 2

Operation

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

: (A)(data address)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Number of bytes

: 2

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Number of cycles

: 1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Flags

:

 

C

AC

F0

RS1

RS0

OV

 

 

F1

 

 

 

P

 

 

 

 

(PSW)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Description

: The accumulator contents are exchanged with the specified

 

 

data address contents, and the flag is updated.

 

 

Example XCH A, 7AH

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

7

 

 

 

 

 

 

 

0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Instruction code

:

1

1

 

0

0

0

1

0

1

Byte 1

 

 

 

 

 

 

 

 

 

 

 

 

7

 

 

 

 

 

 

 

0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

1 1 1

1 0

1

0

Byte 2

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Before execution

 

 

 

 

After execution

 

 

 

 

Accumulator

 

 

 

 

 

Accumulator

 

 

 

 

 

 

 

1

0

 

1

1

1

1

0

1

 

1

1

0

1

 

1

1

0

0

 

 

7

 

 

 

 

 

 

 

0

7

 

 

 

 

 

 

 

 

 

 

0

 

 

 

7AH

 

 

 

 

 

 

 

 

7AH

 

 

 

 

 

 

 

 

 

 

 

 

 

1

1

 

0

1

1

1

0

0

 

1

0

1

1

 

1

1

0

1

 

 

7

 

 

 

 

 

 

 

0

7

 

 

 

 

 

 

 

 

 

 

0

 

364

Page 371
Image 371
Sonic Alert msm85c154hvs, msm83c154s, msm80154s user manual 364, 7AH