Download TASKING VX-toolset for TriCore User Guide

Transcript
Assembly Language
.ACCUM
Syntax
[label:].ACCUM expression[,expression]...
Description
With the .ACCUM directive the assembler allocates and initializes two words of memory (64 bits) for each
argument. Use commas to separate multiple arguments.
An expression can be:
17
17
• a fractional fixed point expression (range [-2 , 2 >)
• NULL (indicated by two adjacent commas: ,,)
Multiple arguments are stored in successive address locations in sets of two bytes. If an argument is
NULL its corresponding address location is filled with zeros.
17
17
If the evaluated expression is out of the range [-2 , 2 >, the assembler issues a warning and saturates
the fractional value.
Example
ACC:
.ACCUM
0.1,0.2,0.3
Related Information
.FRACT, .SFRACT (Define 32-bit/16-bit constant fraction)
.SPACE (Define Storage)
109