Download TMS320C55x Assembly Language Tools User's Guide

Transcript
Constants
Note the difference between character constants and character strings
(Section 3.8, Character Strings, on page 3-24, discusses character strings).
A character constant represents a single integer value; a string is a list of characters.
3.7.6
Floating-Point Constants
A floating-point constant is a string of decimal digits, followed by an optional
decimal point, fractional portion, and exponent portion. The syntax for a
floating-point number is:
[ +|– ] [ nnn ] . [ nnn [ E|e [ +|– ] nnn ] ]
Replace nnn with a string of decimal digits. You can precede nnn with a + or
a –. You must specify a decimal point. For example, 3.e5 is valid, but 3e5 is
not valid. The exponent indicates a power of 10. These are examples of valid
constants:
3.0
3.14
.3
–0.314e13
+314.59e–2
Assembler Description
3-23