Previous topic |
Next topic |
Contents |
Contact z/OS |
Library |
PDF
Dependent USING instruction HLASM Language Reference SC26-4940-06 |
|
The dependent USING instruction format specifies a base address
and a relocatable expression instead of one or more base registers.
If a USING label is also specified, this format USING instruction
is called a labeled dependent USING instruction.
Dependent USING >>-+-----------------+-USING-+-base-------------+-,address----->< +-label-----------+ '-(base-+------+-)-' '-sequence_symbol-' '-,end-'
The implicit address denoted by address specifies the address where base is to be based, and is known as the supporting base address. As address is a relocatable expression, it distinguishes a dependent USING from an ordinary USING. The assembler converts the implicit address denoted by address into its explicit base-displacement form. It then assigns the base register from this explicit address as the base register for base. The assembler assumes that the base register contains the base address base minus the displacement determined in the explicit address. The assembler also assumes that address is appropriately aligned for the code based on base. Warnings are not issued for potential alignment problems in the dependent USING address. A dependent USING depends on the presence of one or more corresponding labeled or ordinary USINGs being in effect to resolve the symbolic expressions in the range of the dependent USING. The following example shows the use of an unlabeled dependent USING:
The following example shows the use of two labeled dependent USINGs:
|
Copyright IBM Corporation 1990, 2014
|