
Constants
5-9
Using the DSK Assembler
Floating-point constants
A floating-point constant is a string of decimal digits, followed by an optional
decimal point, fractional portion, and exponent portion. Examples of floating-
point numbers include:
1.75e–10
represented internally as 2202 629A
16
4
represented internally as 0200 0000
16
–3.5
represented internally as 01A0 0000
16
3.2e5
represented internally as 12E3 C000
16
A floating-point constant can be preceded with a + or – sign.
Character constants
A character constant is a single character enclosed in
single quotes. The char-
acters are represented as 8-bit ASCII characters. Examples of valid character
constants include:
‘ab’
represented internally as 0000 0061
16
‘C’
represented internally as 0000 0043
16
Note the difference between character
constants and character strings. A
character constant represents a simple integer value and is enclosed in single
quotes; a string is a list of characters and is enclosed in double quotes.
Содержание TMS320C3 Series
Страница 1: ...TMS320C3x DSP Starter Kit User s Guide...
Страница 18: ...1 4...
Страница 28: ...2 10...
Страница 82: ...5 18...
Страница 140: ...Communications Kernel Source Code A 12...
Страница 145: ...Schematics B 5 DSK Circuit Board Dimensions and Schematic Diagrams...
Страница 146: ...Schematics B 6...
Страница 147: ...Schematics B 7 DSK Circuit Board Dimensions and Schematic Diagrams...
Страница 148: ...Schematics B 8...
Страница 149: ...Schematics B 9 DSK Circuit Board Dimensions and Schematic Diagrams...
Страница 150: ...Schematics B 10...
Страница 154: ...B 14...
Страница 160: ...C 6...
Страница 166: ...Index 6...