
<
2
.75
7UGT U/CPWCN
=L/2*
#FFTGUU5RCEG
7/<:
ADC
Add with Carry
Example: Working register
R3
contains
16H
. The
C
flag is set to
1
. Working register R11 contains
20H
. The
following statement leaves the value
37H
in working register
R3
, and the
C
,
Z
,
S
,
V
,
D
, and
H
flags are set to 0.
ADC R3, R11
Op Code: 12 3B
.
Example: Working register
R16
contains
16H
. The
C
flag is not set. Working register
R10
contains
20H
.
Register
20H
contains
11H
. The following statements leave the value
27H
in working register R16; the
C
,
Z
,
S
,
V
,
D
, and
H
flags are set to 0.
ADC R16, @R10
Op Code: 13 FA
Example: Register
34H
contains
2EH
. The
C
flag is set. Register 12H contains
1BH
. The following state-
ment leaves the value
4AH
in register
34H
. The
H
flag is set, and the
C
,
Z
,
S
,
V
, and
D
flags are set to 0.
ADC 34H, 12H
Op Code: 14 12 34
Example: Register
4BH
contains
82H
. The
C
flag is set. Working register
R3
contains
10H
. Register
10H
contains
01H
. The following statement leaves the value
84H
in register
4BH
. The
S
flag is set to 1, and the
C
,
Z
,
V
,
D
, and
H
flags are set to 0.
ADC 4BH, @R3
Op Code: 15 E3 4B