
Display Data in Another Format
2-26
You can also change display formats according to data type. This affects all
data of a specific C data type.
Change display formats according to data types by using the SETF (set
format) command:
1) For comparison, watch the following variables. Their C data types are
listed on the right.
wa i
Type int
wa ff
Type float
wa dd
Type double
2) You can list all the data types and their current display formats:
setf
3) Now display the following data types with new formats:
setf int, c
Ints as characters
setf float, o
Floats as octal integers
setf double, x
Doubles as hex integers
4) List the data types to display formats again. You might want to zoom
the COMMAND window to compare the new listing of the type formats
to the listing that you saw in step 2:
setf
5) Add the variables to the WATCH window again; use labels to identify
the additions:
wa i, NEWi
wa ff, NEWff
wa dd, NEWdd
Notice the differences in the display formats between the first versions
you added and these new versions.
6) Now reset all data types back to their defaults:
setf *
Summary of Contents for TMS320C6 Series
Page 10: ...x ...
Page 20: ...xx ...
Page 118: ...4 20 ...
Page 144: ...6 16 ...
Page 164: ...7 20 ...
Page 170: ...8 6 ...
Page 284: ...B 18 ...
Page 290: ...C 6 ...