System Debug Reference Manual (32650-90888)
Chapter 10 357
System Debug Standard Functions
func asc
specific output base, left or right justification, blank or zero fill, and field
width.
A format specification string is a list of selected format directives,
optionally separated by blanks or commas in order to avoid ambiguity.
"
directive1 directive2, directive3 directive4 ...
"
The following table lists the supported format directives which 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
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).