Table of Contents

Advertisement

Instruction Format:
ADD dst, src
OPC
OPC
OPC
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.
dst
src
src
dst
OPC (Hex)
dst
src
.75
P
Address Mode
dst
02
r
03
r
04
R
05
R
06
R
07
IR
Â
ADD
Add
src
r
Ir
R
IR
IM
IM

Advertisement

Table of Contents
loading

Table of Contents