MSM80C154S/83C154S/85C154HVS

3. ADD A, @Rr (Add indirect address)

 

 

7

 

 

 

 

 

 

 

0

 

Instruction code

:

0

0

 

1

0

0

1

1

r

Byte 1

Operation

: (A)(A)+((Rr)) r=0 or 1

 

 

 

 

Number of bytes

: 1

 

 

 

 

 

 

 

 

 

Number of cycles

: 1

 

 

 

 

 

 

 

 

 

Flags

:

C

AC

F0

RS1

RS0

OV

F1

P

(PSW)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Description

 

 

 

 

 

 

 

 

 

 

 

: The data memory location contents addressed by the register r

 

 

contents are added to the accumulator. The result is placed in

 

 

the accumulator, and the flags are updated.

Example ADD A, @R0

 

 

 

 

 

 

 

 

 

 

 

 

 

7

 

 

 

0

 

 

 

 

 

Instruction code

:

0 0

1 0

 

0 1

1 0

Byte 1

 

 

 

Before execution Accumulator

0 1 0 0 1 1 0 1

70 Register 0

0 1 0 1 1 1 0 0

70 5CH

0 1 1 0 1 0 0 1

70

After execution Accumulator

1 0 1 1 0 1 1 0

70 Register 0

0 1 0 1 1 1 0 0

70 5CH

0 1 1 0 1 0 0 1

70

248

Page 255
Image 255
Sonic Alert msm83c154s, msm80154s, msm85c154hvs user manual MSM80C154S/83C154S/85C154HVS ADD A, @Rr Add indirect address, 248