Previous topic |
Next topic |
Contents |
Contact z/OS |
Library |
PDF
Labeled USING instruction HLASM Language Reference SC26-4940-06 |
|
The labeled USING instruction specifies a base address, one or
more base registers, and a USING label which can be used as a symbol
qualifier.
Labeled USING .----------------. V | >>-label--USING--+-base-------------+----,base_register-+------>< '-(base-+------+-)-' '-,end-'
The default range is 4096 per base register. The essential difference between a labeled USING instruction and an ordinary USING instruction is the label placed on the USING statement. To indicate to the assembler that the USING established with the label is to provide resolution of base and displacement for a symbol, the label must be used to qualify the symbol. Qualifying a symbol consists of preceding the symbol with the label on the USING followed by a period. The only symbols resolved by the labeled USING are those symbols qualified with the label. This label cannot be used for any other purpose in the program, except possibly as a label on other USING instructions. The following examples show how labeled USINGs are used:
The same code without labeled USINGs can be written like this:
In the following example, a new element, NEW, is inserted
into a doubly linked list between two existing elements LEFT and RIGHT, where the links are stored as pointers LPTR and RPTR:
|
Copyright IBM Corporation 1990, 2014
|