EasyManuals Logo

Infineon TriCore TC1.6P User Manual

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
Page #21 background imageLoading...
Page #21 background image
TriCore
®
TC1.6P & TC1.6E
32-bit Unified Processor Core
Instruction Set Information
V1.0 2013-07
User Manual (Volume 2) 1-14
1.5 PSW Status Flags (User Status Bits)
The Status section of a given instruction description lists the five status flags that may be affected by the operation.
The PSW logically groups the five user bits together as shown below.
Notes
1. In the following table, ‘result’ for 32-bit instructions is D[c]. For 16-bit instructions it is D[a] or D[15](when
implicit).
2. The PSW register is defined in Volume 1, Core Registers.
* Programming Note: V (Overflow) and AV (Advanced Overflow) Status Bits
Because the TriCore Instruction Set contains many compound instructions (MULR, MAC, ABSDIF), it is necessary
to understand when the overflow flags are computed.
The AV and V flags are computed on the final operation, except in the case of instructions with saturation, when
it is always before saturation. Saturation is not part of the operation as such, but is the resulting effect (chosen by
the user) of an overflow situation.
1.6 List of OS and I/O Privileged Instructions
The following is a list of operating system Input/Output priviliged instructions:
Table 1-13 PSW Status Flags
Field PSW Bit Type Description
C31rwCarry
The result has generated a carry_out.
if (carry_out) then PSW.C = 1 else PSW.C = 0;
V 30 rw Overflow *
The result exceeds the maximum or minimum signed or unsigned value,
as appropriate.
if (overflow) then PSW.V = 1 else PSW.V = 0;
SV 29 rw Sticky Overflow
A memorized overflow. Overflow is defined by V, above.
if (overflow) then PSW.SV = 1 else PSW.SV = PSW.SV;
AV 28 rw Advance Overflow *
if (advanced_overflow) then PSW.AV = 1 else PSW.AV = 0;
SAV 27 rw Sticky Advance Overflow
A memorized advanced overflow. Advanced_overflow is defined by AV,
above.
if (advanced_overflow) then PSW.SAV = 1 else PSW.SAV = PSW.SAV;
Table 1-14 OS and I/O Privileged Instructions
Kernel (Supervisor) User-1 Mode User-0 Mode
BISR
MTCR
CACHEI.I
CACHEA.I
RFM
ENABLE
DISABLE
RESTORE
All others (including DEBUG)

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Infineon TriCore TC1.6P and is the answer not in the manual?

Infineon TriCore TC1.6P Specifications

General IconGeneral
BrandInfineon
ModelTriCore TC1.6P
CategoryMicrocontrollers
LanguageEnglish

Related product manuals