EasyManua.ls Logo

Infineon TriCore TC1.6P - Loop

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-175
LOOP
Loop
Description
If address register A[b] is not equal to zero, then add the value specified by disp15, multiplied by two and sign-
extended, to the contents of PC and jump to that address. The address register is decremented unconditionally.
LOOPA[b], disp15 (BRR)
if (A[b] != 0) then PC = PC + sign_ext(2 * disp15);
A[b] = A[b] - 1;
LOOPA[b], disp4 (SBR)
Status Flags
Examples
loop a4, iloop
See Also
JNED, JNEI, LOOPU
If address register A[b] is not equal to zero then add value specified by disp4, multiplied by two and one-extended
to a 32-bit negative number, to the contents of PC and jump to that address. The address register is decremented
unconditionally.
if (A[b] != 0) then PC = PC + {27b’111111111111111111111111111, disp4, 0};
A[b] = A[b] - 1;
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.
loop a4, iloop
31
00
H
30
disp15
16 15
b
12 11
-
8 7
FD
H
0
15
b
12 11
disp4
8 7
FC
H
0

Table of Contents

Related product manuals