ADDAB/ADDAH/ADDAW
Integer Addition Using Addressing Mode
3-34
Syntax
ADDAB (.unit)
src2, src1, dst
or
ADDAH (.unit)
src2, src1, dst
or
ADDAW (.unit)
src2, src1, dst
.unit = .D1 or .D2
Opcode map field used...
For operand type...
Unit
Opfield
src2
src1
dst
sint
sint
sint
.D1, .D2
byte: 110000
halfword: 110100
word: 111000
src2
src1
dst
sint
ucst5
sint
.D1, .D2
byte: 110010
halfword: 110110
word: 111010
Opcode
31
29 28 27
23 22
18 17
creg
z
dst
13 12
5
4
3
2
1
0
op
0
0
0
s
p
3
5
5
5
6
7
6
1
0
src 2
src 1/cst
Description
src1 is added to src2 using the addressing mode specified for src2. The addi-
tion defaults to linear mode. However, if
src2 is one of A4–A7 or B4–B7, the
mode can be changed to circular mode by writing the appropriate value to the
AMR (see section 2.6.1).
src1 is left shifted by 1 or 2 for halfword and word data
sizes respectively. Byte, halfword, and word mnemonics are ADDAB,
ADDAH, and ADDAW, respectively. The result is placed in
dst.
Execution
if (cond)
src2 +a src1
→
dst
else
nop
Pipeline
stage
E1
Read
src1, src2
Written
dst
Unit in use
.D
Instruction Type
Single-cycle
Delay Slots
0
Pipeline