
<
2
.75
7UGT U/CPWCN
=L/2*
#FFTGUU5RCEG
7/<:
ADD
Add
Instruction Format:
ADD dst, src
Operation:
dst
←
dst + src
The source operand 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.
Flags:
When the instruction is executed, the flags are set as follows:
C:
1 if a value is carried from the most significant bit of the result; otherwise, 0.
Z:
1et if the result is
0
; otherwise, 0.
S:
1 if the result is negative; 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 result’s low-order four bits;
otherwise, 0.
OPC
dst
src
OPC
src
dst
OPC
dst
src
OPC (Hex)
Address Mode
dst src
02
03
r
r
r
Ir
04
05
R
R
R
IR
06
07
R
IR
IM
IM