Inspect Manual
High-Level Inspect Commands
Inspect Manual—429164-006
6-72
Using the IN Clause
3. This example illustrates using the IN clause with the FOR clause.
4. This TAL source code was used to generate this example.
5. This example illustrates using the FOR clause with the IN clause to display a code-
location in both ASCII and ICODE.
6. This TAL declarations apply to this example.
7. This example illustrates displaying an element of an array in HEX.
8. This example illustrates displaying a structure member in DECIMAL.
-PROGRAM-DISPLAY string_ptr IN a FOR 5
STRING_PTR = "Hello"
PROC CODELOC;
BEGIN
INT VARONE = 'P' := "LOCAL P RELATIVE ARRAY"; ! 11 WORDS
INT VARTWO,I;
END;
-PROGRAM-DISPLAY #CODELOC FOR 4 IN ASCII
CODELOC = "LOCAL P "
-PROGRAM-DISPLAY #CODELOC FOR 4 IN ICODE
CODELOC = STOR G+117,6 LOAD L+101,5 STOR G+040,6 LDB G+040
INT INTARRAY[0:1] := [%H0,%H1234];
STRUCT .STRUCTARRAY[-1:1];
BEGIN
STRING S[0:1];
INT IR = S;
END;
-PROGRAM-DISPLAY INTARRAY[1] IN HEX
INTARRAY[1] = %H1234
-PROGRAM-MODIFY STRUCTARRAY[1].S[0] := 4
-PROGRAM-MODIFY STRUCTARRAY[1].S[0] := 5
-PROGRAM-DISPLAY STRUCTARRAY[1].IR WHOLE IN DECIMAL
STRUCTARRAY[1].IR = 1029