Chapter
3.
Instruction
Set
Add
Register to Accumulator with Carry
Opccde Operand
ADC
reg
The operand must specify one
of
the registers A through
E,
H or L. This instruction adds the contents
of
the
specified register and the carry bit to the accumulator and stores the result
in
the accumulator.
000
Cycles:
States:
Addressings:
Flags:
Add
Memory to Accumulator with
Carry
Opcode Operand
ADC
M
5 5
5\
1
4
register
Z,S,P,CY,AC
This instruction adds the contents of the memory location addressed
by
the
Hand
L registers and the carry
bit to the accumulator and stores the result
in
the accumulator. M
is
a symbolic reference to the
Hand
L
registers.
000
Cycles:
States:
Addressing:
Flags:
Example:
2
7
register indirect
Z,S,P,CY,AC
Assume that register C contains 3DH, the accumulator contains 42H, and the carry bit
is
set to zero. The
instruction
ADC
C performs the addition
as
follows:
3DH
42H
CARRY
The condition flags are set
as
follows:
Carry
Sign
Zero
Parity
Aux.
Carry
00111101
01000010
o
01111111
=7FH
0
0
0
0
=
0
3·3