Inspect Manual

High-Level Inspect Commands
Inspect Manual429164-006
6-62
Using the AS Clause
AS data-type
directs Inspect to display the item using the attributes of the given data type. The
data-type parameter is a data type identifier or a variable. If data-type refers
to a variable, Inspect uses the type attributes of that variable.
data-location
specifies the memory location starting at which data is to be formatted as data-
type.
( expression )
specifies a memory address. If the expression evaluates to a 16-bit value, this
value is interpreted as a 16-bit word address. If the expression evaluates to a
32-bit value, this value is interpreted as an extended address.
SG
specifies that the 16-bit expression is interpreted as a System Global address.
SG is not allowed with 32-bit addresses.
identifier
specifies a variable defined by the program. The form of identifier allowed is
any legal variable specification, such as i, struct.r1.r2, or a[30].
Examples
This TAL source code was used to generate the examples for the AS clause of the
DISPLAY command.
?symbols
STRUCT S^Def(*);
BEGIN
INT one_field;
INT two_field;
END;
PROC M MAIN;
BEGIN
LITERAL STRING_BLEN = 11;
STRUCT one_var(S^Def);
STRING two_var[0:STRING_BLEN-1];
INT three_var[0:7] := [12345, 5, 123, 2, 901, 89, 567, 0];
STRING .string_ptr;
INT .int_ptr;
INT(32) address_ext;
INT address_word;
INT .EXT extended_array[0:1];