EasyManua.ls Logo

Infineon TriCore TC1.6P - Add

Infineon TriCore TC1.6P
484 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
TriCore
®
TC1.6P & TC1.6E
32-bit Unified Processor Core
Instruction Set
V1.0 2013-07
User Manual (Volume 2) 3-12
ADD
Add
Description
Add the contents of data register D[a] to the contents of either data register D[b] (instruction format RR) or const9
(instruction format RC) and put the result in data register D[c]. The operands are treated as 32-bit integers, and
the const9 value is sign-extended before the addition is performed.
ADDD[c], D[a], const9 (RC)
result = D[a] + sign_ext(const9);
D[c] = result[31:0];
ADDD[c], D[a], D[b] (RR)
result = D[a] + D[b];
D[c] = result[31:0];
ADDD[a], const4 (SRC)
ADDD[a], D[15], const4 (SRC)
ADDD[15], D[a], const4 (SRC)
Add the contents of either data register D[a] or D[15] to the contents of data register D[b] or const4, and put the
result in either data register D[a] or D[15]. The operands are treated as 32-bit signed integers, and the const4
value is sign-extended before the addition is performed.
result = D[a] + sign_ext(const4);
D[a] = result[31:0];
result = D[15] + sign_ext(const4);
D[a] = result[31:0];
31
c
28 27
00
H
21 20
const9
12 11
a
8 7
8B
H
0
31
c
28 27
00
H
20 19
-
18 17
-
16 15
b
12 11
a
8 7
0B
H
0
15
const4
12 11
a
8 7
C2
H
0
15
const4
12 11
a
8 7
92
H
0
15
const4
12 11
a
8 7
9A
H
0

Table of Contents

Related product manuals