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.

POP Instruction<br />

POP Instruction<br />

The POP instruction restores the PRINT, USING or ACONTROL status saved by<br />

the most recent PUSH instruction.<br />

┌─,──────────────┐<br />

►►──┬─────────────────┬──POP─── ▼ ─┬─PRINT────┬ ──<br />

(1) ─┴──┬──────────┬─────►◄<br />

└─sequence_symbol─ ┘ ├ ─USING────┤<br />

└ ─,NOPRINT─┘<br />

└─ACONTROL─┘<br />

Note:<br />

1<br />

Each keyword from this group may be selected only once.<br />

sequence_symbol<br />

is a sequence symbol.<br />

PRINT<br />

instructs the assembler to restore the PRINT status to the status saved by the<br />

most recent PUSH instruction.<br />

USING<br />

instructs the assembler to restore the USING status to the status saved by the<br />

most recent PUSH instruction.<br />

ACONTROL<br />

instructs the assembler to restore the ACONTROL status to the status saved<br />

by the most recent PUSH instruction.<br />

NOPRINT<br />

instructs the assembler to suppress the printing of the POP statement in which<br />

it is specified.<br />

The POP instruction causes the status of the current PRINT, USING or<br />

ACONTROL instruction to be overridden by the PRINT, USING or ACONTROL<br />

status saved by the last PUSH instruction. For example:<br />

PRINT GEN Printed macro generated code<br />

DCMAC X,27 Call macro to generate DC<br />

+ DC X'27' ... Generated statement<br />

PUSH PRINT Save PRINT status<br />

PRINT NOGEN Suppress macro generated code<br />

DCMAC X,33 Call macro to generate DC<br />

POP PRINT Restore PRINT status<br />

DCMAC X,42 Call macro to generate DC<br />

+ DC X'42' ... Generated statement<br />

PRINT Instruction<br />

The PRINT instruction controls the amount of detail printed in the listing of<br />

programs.<br />

┌─,───────┐<br />

►►──┬─────────────────┬──PRINT─── ▼ ─operand─┴────────────────────────►◄<br />

└─sequence_symbol─┘<br />

204 <strong>HLASM</strong> V1R5 <strong>Language</strong> <strong>Reference</strong>

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

Saved successfully!

Ooh no, something went wrong!