13.07.2015 Views

TASKING VX-toolset for ARM User Guide

TASKING VX-toolset for ARM User Guide

TASKING VX-toolset for ARM User Guide

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>TASKING</strong> <strong>VX</strong>-<strong>toolset</strong> <strong>for</strong> <strong>ARM</strong> <strong>User</strong> <strong>Guide</strong>.FLOAT, .DOUBLESyntax[label].FLOAT expression[,expression]...[label].DOUBLE expression[,expression]...DescriptionWith the .FLOAT or .DOUBLE directive the assembler allocates and initializes a floating-point number(32 bits) or a double (64 bits) in memory <strong>for</strong> each argument.An expression can be:• a floating-point expression• NULL (indicated by two adjacent commas: ,,)You can represent a constant as a signed whole number with fraction or with the 'e' <strong>for</strong>mat as used in theC language. For example, 12.457 and +0.27E-13 are legal floating-point constants.If the evaluated argument is too large to be represented in a single word / double-word, the assemblerissues an error and truncates the value.If you specify label, it gets the value of the location counter at the start of the directive processing.ExampleFLT: .FLOAT 12.457,+0.27E-13DBL: .DOUBLE 12.457,+0.27E-13Related In<strong>for</strong>mation.DS (Define Storage)112

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!