22.02.2015 Views

HLASM Language Reference

HLASM Language Reference

HLASM Language Reference

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

DROP Instruction<br />

DROP 7,11<br />

DROP<br />

FIRST<br />

Labeled USING: You cannot end the domain of a labeled USING instruction by<br />

coding a DROP instruction that specifies the same registers as were specified in<br />

the labeled USING instruction. If you want to end the domain of a labeled USING<br />

instruction, you must code a DROP instruction with an operand that specifies the<br />

label of the labeled USING instruction.<br />

Dependent USING: To end the domain of a dependent USING instruction, you<br />

must end the domain of the corresponding ordinary USING instruction. In the<br />

following example, the DROP instruction prevents the assembler from using register<br />

12 as a base register. The DROP instruction causes the assembler to end the<br />

domain of the ordinary USING instruction and the domains of the two dependent<br />

USING instructions. The storage areas represented by INREC and OUTREC are both<br />

within the range of the ordinary USING instruction (register 12).<br />

USING ,12<br />

USING<br />

RECMAP,INREC<br />

USING<br />

RECMAP,OUTREC<br />

.<br />

.<br />

DROP 12<br />

.<br />

.<br />

INREC DS CL156<br />

OUTREC DS CL156<br />

To end the domain of a labeled dependent USING instruction, you can code a<br />

DROP instruction with the USING label in the operand. The following example<br />

shows this:<br />

USING ,12<br />

PRIOR USING RECMAP,INREC<br />

POST USING RECMAP,OUTREC<br />

.<br />

.<br />

DROP<br />

PRIOR,POST<br />

.<br />

.<br />

INREC DS CL156<br />

OUTREC DS CL156<br />

In the above example, the DROP instruction makes the labels PRIOR and POST<br />

unavailable as symbol qualifiers.<br />

When a labeled dependent USING domain is dropped, none of any subordinate<br />

USING domains are dropped. In the following example the labeled dependent<br />

USING BLBL1 is not dropped, even though it is dependent on the USING ALBL2 that<br />

is dropped:<br />

Chapter 5. Assembler Instruction Statements 173

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!