Inspect Manual
High-Level Inspect Commands
Inspect Manual—429164-006
6-65
Usage Considerations
for-spec
defines the format of the groups as a specific number of units. To specify the
number, you can use an integer or a data location that contains an integer value.
When specifying the units, you must use one of these:
BYTE[S] WORD[S] DOUBLE[S] QUAD[S]
If you do not specify a unit, Inspect uses the default unit attributes of the item being
displayed.
for-count
specifies how many units or occurrences of an SPI token to display. To specify the
count, you can use an expression or a data location that contains an integer value.
Usage Considerations
Using a Data Location as the count Parameter
The data location you use to specify the count parameter must evaluate to a
nonnegative integer value; otherwise, Inspect displays this error message:
This example shows how the FOR clause with a variable used for the count affects
the DISPLAY command output.
{ display-data FOR for-spec }
DISPLAY { display-code FOR for-spec }
{ spi-token FOR for-count }
for-spec:
for-count [ BYTE[S] | WORD[S] | DOUBLE[S] | QUAD[S] ]
for-count: one of
expression
data-location
** Inspect error 183 ** Invalid length specified for DISPLAY
-OTEST1-DISPLAY string_ptr
STRING_PTR = "H"
-OTEST1-DISPLAY string_ptr FOR string_blen
STRING_PTR = "Hello World"