System Debug Reference Manual (32650-90888)
Chapter 10 459
System Debug Standard Functions
func strwrite
T Typed (display the type of the value)
U Untyped (do not display the type of the value)
QS Quote single (surround w/ single quotes)
QD Quote double (surround w/ double quotes)
QO Quote original (surround w/ original quote character)
QN Quote none (no quotes)
The M directive (minimum field width) selects the minimum possible field
width necessary to format all significant digits (or characters in the case of
string inputs).
The F directive (fixed field width) selects a fixed field width based on type
of the value and the selected output base. Fixed field widths are listed in
the following table:
The Wn directive (variable field width) allows the user to specify the
desired field width. The W directive can be specified with an arbitrary
expression. If the specified width is less than the minimum necessary
width to display the value, then the user width is ignored, and the
minimum width used instead. All significant digits are always printed. For
example:
number:"w6"
or
number:"w2*3"
The number of positions specified (either by Wn or F) does not include the
characters required for the radix indicator (if specified) or sign (if
negative). Also, the sign and radix indicator will always be positioned just
preceding the first (leftmost) character.
Zero versus blank fill applies to leading spaces (for right justification)
Trailing spaces are always blank filled.
Types hex($,H) dec(#,D) oct(%,O) ascii(A,N)
S16,U16 4662
S32,U32 810114
S64 16 20 22 8
SPTR 810114
LPTR Class 8.8 10.10 11.11 8
EADDR Class 8.16 10.20 11.22 12
STR field width = length of the string