ADC A,r

Operation

A <- A + r + CY

Mnemonic

ADC

Operands

A,r

b7b6b5b4b3b2b1b0
1 0 0 0 0 r

Description

The contents of register r along with the Carry Flag (C in the F Register) are added to the contents of the Accumulator, and the result is stored in the Accumulator. The r symbol identifies the registers A, B, C, D, E, H, or L, assembled as follows in the object code:

RegisterrHex
A111$8F
B000$88
C001$89
D010$8A
E011$8B
H100$8C
L101$8D

Condition Bits Affected

Sis set if result is negative, otherwise it is reset.
Zis set if result is 0, otherwise it is reset.
His set if carry from bit 3, otherwise it is reset.
P/Vis set if overflow, otherwise it is reset
Nis reset.
Cis set if carry from bit 7, otherwise it is reset.

Example

If the Accumulator contains $44, the Carry flag is set and Register C contains $11, then upon the execution of

	ADC	A,C

the Accumulator contains $56.