TriCore
®
TC1.6P & TC1.6E
32-bit Unified Processor Core
Instruction Set
V1.0 2013-07
User Manual (Volume 2) 3-174
LEA
Load Effective Address
Description
Compute the absolute (effective) address defined by the addressing mode and put the result in address register
A[a].
Note:The auto-increment addressing modes are not supported for this instruction.
LEAA[a], off18 (ABS)(Absolute Addressing Mode)
EA = {off18[17:14], 14b'0, off18[13:0]};
A[a] = EA[31:0];
LEAA[a], A[b], off10 (BO)(Base + Short Offset Addressing Mode)
EA = A[b] + sign_ext(off10);
A[a] = EA[31:0];
LEAA[a], A[b], off16 (BOL)(Base + Long Offset Addressing Mode)
EA = A[b] + sign_ext(off16);
A[a] = EA[31:0];
Status Flags
Examples
lea a0, _absadd
lea a7, NumberOfLoops
See Also
MOV.A, MOV.D, MOVH.A
C Not set by this instruction.
V Not set by this instruction.
SV Not set by this instruction.
AV Not set by this instruction.
SAV Not set by this instruction.
31
off18[9:6]
28 27
00
H
26 25
off18[13:10]
22 21
off18[5:0]
16 15
off18[17:14]
12 11
a
8 7
C5
H
0
31
off10[9:6]
28 27
28
H
22 21
off10[5:0]
16 15
b
12 11
a
8 7
49
H
0
31
off16[9:6]
28 27
off16[15:10]
22 21
off16[5:0]
16 15
b
12 11
a
8 7
D9
H
0