
eZ8
™
CPU Core
User Manual
UM012820-0810 ADD Instruction
80
ADD
Definition
Add
Syntax
ADD dst, src
Operation
dst
dst + src
Description
Add the source operand to the destination operand. Perform two’s-com-
plement addition. Store the sum in the destination operand. The contents
of the source operand are not affected.
Flags
Attributes
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
Mnemonic
Destination,
Source
Op
Code
(Hex) Operand 1 Operand 2 Operand 3
ADD r1, r2 02 {r1, r2} — —
ADD r1, @r2 03 {r1, r2} — —
Comentários a estes Manuais