
Displaying Data in Alternative Formats
7-17
Managing Data
7.8
Displaying Data in Alternative Formats
By default, all data is displayed in its natural format. This means that:
-
Integer values are displayed as decimal numbers.
-
Floating-point values are displayed in floating-point format.
-
Pointers are displayed as hexadecimal addresses (with a 0x prefix).
-
Enumerated types are displayed symbolically.
However, any data displayed in the COMMAND, MEMORY, WATCH, or DISP
window can be displayed in a variety of formats.
Changing the default format for specific data types
To display specific types of data in a different format, use the SETF command.
The syntax for this command is:
setf
[
data type, display format ]
The
display format parameter identifies the new display format for any data of
type
data type. Table 7–1 lists the available formats and the corresponding
characters that can be used as the
display format parameter.
Table 7–1. Display Formats for Debugger Data
Display Format
Parameter
Display Format
Parameter
Default for the data type
*
Octal
o
ASCII character (bytes)
c
Valid address
p
Decimal
d
ASCII string
s
Exponential floating point
e
Unsigned decimal
u
Decimal floating point
f
Hexadecimal
x
Table 7–2 lists the C data types that can be used for the
data type parameter.
Only a subset of the display formats applies to each data type, so Table 7–2
also shows valid combinations of data types and display formats.
Содержание TMS320C6 Series
Страница 10: ...x ...
Страница 20: ...xx ...
Страница 118: ...4 20 ...
Страница 144: ...6 16 ...
Страница 164: ...7 20 ...
Страница 170: ...8 6 ...
Страница 284: ...B 18 ...
Страница 290: ...C 6 ...