System Debug Reference Manual (32650-90888)

288 Chapter6
System Debug Command Specifications M-X
W (write)
Display all currently defined user variables.
%nmdebug > varl sl@
var save : 1ptr = %302.120
var s1 : str = this is a string
Display all variables that begin with the letter "s".
Limitations, Restrictions
Variables are not currently listed in sorted alphabetical order.
W (write)
Writes a list of values, with optional formatting, to output.
Syntax
W
valuelist
WL
valuelist
WP
valuelist
WCOL
column
WPAGE
W (Write), WL (Writeln), and WP (Prompt) write a list of values, with optional formatting, to
output.
WP (Prompt) appends the new formatted values to the output buffer, flushes the buffer to
output, and maintains the cursor on the same line.
W (Write) appends the new formatted values to the output buffer and advances the current
buffer position.
WL (Writeln) appends the new formatted values to the output buffer, then flushes the buffer
to output with a new line. The output buffer is reset.
WCOL advances the current output buffer position to the specified column position,
blank-filling as necessary if the new position effectively expands the buffer.
WPAGE forces all buffered output to be flushed, and a page eject is emitted. The output
buffer is reset.
Parameters
valuelist
An arbitrary list of values to be written. Values can be separated by blanks
or with commas:
value1, value2 value3 ...
An optional format specification can be appended to each value in the list
in order to select specific output base, left or right justification, blank or