Inspect Manual

High-Level Inspect Commands
Inspect Manual429164-006
6-64
Using the FOR Clause
5. This example uses the AS clause when the data address is already known.
6. This example uses the AS clause in conjunction with the IN clause to display the
data in ASCII and in an alternate base.
7. Since a 16-bit expression is interpreted as a 16-bit word address, you must divide
by 2 when the address is a 16-bit byte address.
Using the FOR Clause
The FOR clause directs Inspect to display multiple items of program data or program
code. When used to display an SPI token, the FOR clause directs Inspect to display a
given number of occurrences of the token within its containing SPI buffer.
-PROGRAM-DISPLAY address_word
ADDRESS_WORD = 1
-PROGRAM-DISPLAY address_ext
ADDRESS_EXT = 2
-PROGRAM-DISPLAY (@extended_array)
524294
-PROGRAM-DISPLAY (1) AS s^def
S^DEF =
ONE_FIELD = 53
TWO_FIELD = 102
-PROGRAM-DISPLAY (2D) AS s^def
S^DEF =
ONE_FIELD = 53
TWO_FIELD = 102
-PROGRAM-DISPLAY (524294) AS s^def
S^DEF =
ONE_FIELD = 17
TWO_FIELD = 18
-PROGRAM-DISPLAY (address_word) AS s^def IN ASCII
S^DEF =
ONE_FIELD = ?0 "5"
TWO_FIELD = ?0 "f"
-PROGRAM-DISPLAY (address_word) AS s^def IN OCTAL
S^DEF =
ONE_FIELD = %65
TWO_FIELD = %146
-PROGRAM-DISPLAY (@string_ptr[6]/2) AS s^def IN ASCII
S^DEF =
ONE_FIELD = "Wo"
TWO_FIELD = "rl"
Note. The FOR clause is invalid for PATHWAY requester programs.