System Debug Reference Manual (32650-90888)

458 Chapter10
System Debug Standard Functions
func strwrite
Parameters
valuelist
A list of expressions, in the form of a single string, to be formatted. The
expressions can be separated by blanks or commas:
value1, value2 value3 ...
An optional format specification can be appended to each expression,
introduced with a required colon, in order to select one of the following: a
specific output base, left or right justification, blank or zero fill, and a field
width for the value.
value1
[:
fmtspec1
]
value2
[:
fmtspec2
] ...
A format specification string is a list of selected format directives, with
each directive separated by blanks, commas or nothing at all:
"
directive1 directive2
,
directive3directive4
..."
The following table lists the supported format directives that can be
entered in upper- or lower-case:
+ Current output base ($, #, or % prefix displayed)
- Current output base (no prefix)
+< Current input base ($, #, or % prefix displayed)
-< Current input base (no prefix)
$ Hex output base ($ prefix displayed)
# Decimal output base (# prefix displayed)
% Octal output base (% prefix displayed)
H Hex output base (no prefix)
D Decimal output base (no prefix)
O Octal output base (no prefix)
A ASCII base (use "." for non-printable chars)
N ASCII base (loads actual non-printable chars)
L Left justified
R Right justified
B Blank filled
Z Zero filled
M Minimum field width, based on value
F Fixed field width, based on the type of value
Wn User specified field width
n