MSM80C154S/83C154S/85C154HVS

9. ADDC A, data address (Add carry plus memory to accumulator)

 

 

 

7

 

 

 

 

 

 

 

 

 

 

 

0

 

Instruction code

:

 

0

 

0

 

 

1

 

1

0

 

1

0

1

Byte 1

 

 

 

7

 

 

 

 

 

 

 

 

 

 

 

0

 

Data address

 

a7

a6

a5

a4

a3 a2 a1

a0

Byte 2

Operation

: (A)(A)+(C)+(data address)

 

 

 

 

Number of bytes

: 2

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Number of cycles

: 1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Flags

:

 

C

AC

F0

RS1

RS0

OV

F1

P

 

(PSW)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Description

: The carry flag is added to the accumulator,and the specified

 

 

data address contents are added to that result. The result is

 

 

placed in the accumulator, and the flags are updated.

Example ADDC A, 45H

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

7

 

 

 

 

 

 

 

0

 

 

 

 

 

 

Instruction code

:

0

0

1

1

 

0

1

0

1

Byte 1

 

 

 

 

7

 

 

 

 

 

 

 

0

 

 

 

 

 

 

 

 

0

1

0

0

 

0

1

0

1

Byte 2

 

 

 

Before execution Accumulator

0 0 1 1 0 0 1 1

70

45H

0 1 0 1 1 1 1 0

70 Carry flag

1

After execution Accumulator

1 0 0 1 0 0 1 0

70

45H

0 1 0 1 1 1 1 0

70 Carry flag

0

254

Page 261
Image 261
Sonic Alert msm83c154s, msm80154s, msm85c154hvs user manual 254