Sonic Alert msm83c154s, msm80154s, msm85c154hvs user manual 362

Models: msm83c154s msm85c154hvs msm80154s

1 378
Download 378 pages 26.51 Kb
Page 369
Image 369

MSM80C154S/83C154S/85C154HVS

102. XCH A, @Rr (Exchange indirect address with accumulator)

 

 

7

 

 

 

 

 

 

0

 

Instruction code

:

1

1

0

0

0

1

1

r

Byte 1

Operation

 

 

r=0 or 1

 

 

 

 

 

: (A)((Rr))

 

 

 

 

 

Number of bytes

: 1

 

 

 

 

 

 

 

 

Number of cycles

: 1

 

 

 

 

 

 

 

 

Flags

:

C

AC

F0

RS1

RS0

OV

F1

P

(PSW)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Description

 

 

 

 

 

 

 

 

 

 

: The accumulator contents are exchanged with the data memory

 

 

location contents addressed by the register r, and the flag is

 

 

updated.

 

 

 

 

 

 

 

Example XCH A, @R0

 

 

 

 

 

 

 

 

 

 

 

 

7

 

 

0

 

 

 

 

 

Instruction code

:

1 1

0 0

0 1

1 0

Byte 1

 

 

 

Before execution Accumulator

1 0 0 1 1 1 0 0

70 Register 0

0 1 0 0 1 0 1 1

70 4BH

0 1 1 1 0 1 1 0

70

After execution Accumulator

0 1 1 1 0 1 1 0

70 Register 0

0 1 0 0 1 0 1 1

70 4BH

1 0 0 1 1 1 0 0

70

362

Page 369
Image 369
Sonic Alert msm83c154s, msm80154s, msm85c154hvs user manual 362