print command
(A) Function
Outputting a facility value at the current simulation time with
a specified format.
(B) Format
print <format> { <facility> }
(C) Parameters
<format>
This parameter is a character string to specify an output format.
The characters that are not 'n' and 't' and follow '\' are returned with no change.
The character strings '\n' and '\t' yield a linefeed code and a tab code, respectively.
The conversion instructions are the characters that do not follow \ but cover the range
from % to a first non-numeral character (including the first character itself).
These characters are replaced for output as follows. The characters not included
in the conversion instructions are returned with no change.
The conversion instructions are interpreted as the following pattern:
'%' { <digit> } < conversion instruction character >
Except the case of < conversion instruction character > being 't',
the n-th conversion instruction in <format> determines how to output
a facility value specified by the n-th < facility > parameter.
The <digit> series specifies the number of characters output as
a result of the replacement. If this is not specified, the number of
characters needed to output a value is obtained.
The following description explains differences of outputs by
<conversion instruction character >:
Conversion
instruction command
character
b A facility value in binary notation.
d A facility value in decimal notation.
o A facility value in octal notation.
x A facility value in hexadecimal notation.
s A status value of stage/segment.
others A facility value in hexadecimal notation.
The conversion instruction character 't' outputs the current time in decimal notation.
<facility>
Designate a facility you want to obtain with the report function.
If you want to obtain a value of an address word in a memory facility,
designate '@' < address > after the facility name. Here, < address >
is an unsigned integer.
(D) Notes
If the number of the conversion instruction 't's is not equal to that of
the <facility> parameters, extra <facility> parameters are ignored and
the extra conversion instructions are replaced with null character strings.
(E) Related items
set command
memset command
memclr command
rpt_add command