Sonic Alert msm83c154s, msm80154s Addc A, #data Add carry plus immediate data to accumulator, 251

Models: msm83c154s msm85c154hvs msm80154s

1 378
Download 378 pages 26.51 Kb
Page 258
Image 258

DESCRIPTION OF INSTRUCTIONS

6. ADDC A, #data (Add carry plus immediate data to accumulator)

 

 

 

7

 

 

 

 

 

 

 

 

 

 

0

 

Instruction code

:

 

0

 

0

 

 

1

1

 

0

1

0

0

Byte 1

 

 

 

7

 

 

 

 

 

 

 

 

 

 

0

 

#data

 

 

I7

 

I6

 

I5

I4

 

I3

I2

I1

I0

Byte 2

Operation

: (A)(A)+(C)+#data

 

 

 

 

 

 

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 an 8-bit

 

 

immediate data is added to that result. The result is placed in

 

 

the accumulator, and the flags are updated.

 

Example ADDC A, #76H

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

7

 

 

 

 

 

 

 

0

 

 

 

 

 

Instruction code

:

0

0

1

1

 

0

1

0

0

Byte 1

 

 

 

 

7

 

 

 

 

 

 

 

0

 

 

 

 

 

 

 

0

1

1

1

 

0

1

1

0

Byte 2

 

 

 

Before execution Accumulator

0 1 0 1 1 0 0 1

70 Carry flag

1

After execution Accumulator

1 1 0 1 0 0 0 0

70 Carry flag

0

251

Page 258
Image 258
Sonic Alert msm83c154s, msm80154s, msm85c154hvs user manual Addc A, #data Add carry plus immediate data to accumulator, 251