
<
2
.75
7UGT U/CPWCN
#FFTGUU5RCEG
=L/2*
7/<:
ADC
Add with Carry
Instruction Format:
ADC dst, src
Operation:
dst
←
dst + src + C
The source operand, along with the setting of the Carry (
C
) Flag, is added to the destination operand. Two’s
complement addition is performed. The sum is stored in the destination operand. The contents of the source
operand are not changed. In multiple precision arithmetic, this instruction permits the carry from the addition
of low order operands to be carried into the addition of high order operands.
Flags:
When the instruction is executed, the flags are set as follows:
C:
1 if a value is carried from the most signigicant bit of the result; otherwise, 0.
Z:
1 if the result is
0
; otherwise, 0.
S:
1 if the result is a negative value; otherwise, 0.
V:
1 if an arithmetic overflow occurs (both operands have the same sign and the result has the opposite
sign; otherwise, 0.
D:
0.
H:
1 if a value is carried from the most significant bit of the low-order four bits of the result; otherwise,
0.
OPC
dst
src
OPC
src
dst
OPC
dst
src
OPC (Hex)
Address Mode
dst src
12
13
r
r
r
Ir
14
15
R
R
R
IR
16
17
R
IR
IM
IM