z/OS TSO/E Programming Guide
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Address Expression

z/OS TSO/E Programming Guide
SA32-0981-00

An address followed by any number of expression values. You can specify the address as:
  • An absolute address
  • A relative address (unqualified, partially or fully-qualified)
  • A symbolic address (unqualified, partially or fully-qualified)
  • An indirect address

An expression value consists of a plus or minus displacement value expressed as either 1 to 8 hexadecimal digits or 1 to 10 decimal digits from an address in virtual storage. Following are two examples of address expressions:

Decimal Example: address+14n specifies the location that is 14 bytes past that designated by ‘‘address.’’

Hexadecimal Example: address+14 specifies the location that is 20 decimal bytes past that designated by ‘‘address.’’

Decimal displacement (either plus or minus) is indicated by the n following the numeric offset. You can indicate up to 256 levels of indirect addressing by following the initial indirect address with a corresponding number indirection symbols (% or ?). An address expression is specified in the following format:
             {-}       [ ?    ] [{-}        [ ?     ] ]
     address {+} value [ % .. ] [{+} value  [ %  .. ] ]...
You can use any combination of percent signs and question marks after the value.

Example: Address expression with hexadecimal displacement using a combination of indirection symbols.

Address expression: 7R?%+C%?%

REQTEXT

When processing an address expression, TEST and TESTAUTH check the high-order bit of the result of each addition or subtraction. If the bit is on, indicating a negative value or overflow condition, the address is rejected.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014