
eZ8
™
CPU Core
User Manual
UM012820-0810 ADC Instruction
73
ADC
Definition
Add with Carry.
Syntax
ADC dst, src
Operation
dst
dst + src + C
Description
The source operand and the Carry (C) flag are 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
affected. In multiple-precision (multibyte) arithmetic, this instruction per-
mits the carry from the addition of low-order byte operations to be carried
into the addition of high-order bytes.
Flags
C Set if there is a carry from bit 7; reset otherwise
Z Set if the result is zero; reset otherwise
S Set if the result is negative; reset otherwise
V Set if an arithmetic overflow occurs; reset otherwise
D Reset to 0
H Set if there is a carry from bit 3 of the result; reset otherwise
Comentarios a estos manuales