22.02.2015 Views

HLASM Language Reference

HLASM Language Reference

HLASM Language Reference

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Sequence Symbols<br />

Redefined Operation Codes: If an operation code is redefined using the OPSYN<br />

instruction then the value returned by a subsequent operation code attribute<br />

reference represents the new operation code. If the operation code is deleted using<br />

the OPSYN instruction then the value returned is U.<br />

Sequence Symbols<br />

You can use a sequence symbol in the name field of a statement to branch to that<br />

statement during conditional assembly processing, thus altering the sequence in<br />

which the assembler processes your conditional assembly and macro instructions.<br />

You can select the model statements from which the assembler generates<br />

assembler language statements for processing at assembly time.<br />

A sequence symbol consists of a period (.) followed by an alphabetic character,<br />

followed by 0 to 61 alphanumeric characters.<br />

Examples:<br />

.BRANCHING_LABEL#1<br />

.A<br />

Sequence symbols can be specified in the name field of assembler language<br />

statements and model statements; however, sequence symbols must not be used<br />

as name entries in the following assembler instructions:<br />

| ALIAS EQU OPSYN SETC<br />

| AREAD ICTL SETA SETAF<br />

| CATTR LOCTR SETB SETCF<br />

| DXD<br />

Also, sequence symbols cannot be used as name entries in macro prototype<br />

instructions, or in any instruction that already contains an ordinary or a variable<br />

symbol in the name field.<br />

Sequence symbols can be specified in the operand field of an AIF or AGO<br />

instruction to branch to a statement with the same sequence symbol as a label.<br />

Scope: A sequence symbol has a local scope. Thus, if a sequence symbol is<br />

used in an AIF or an AGO instruction, the sequence symbol must be defined as a<br />

label in the same part of the program in which the AIF or AGO instruction appears;<br />

that is, in the same macro definition or in open code.<br />

Symbolic Parameters: If a sequence symbol appears in the name field of a<br />

macro instruction, and the corresponding prototype statement contains a symbolic<br />

parameter in the name field, the sequence symbol does not replace the symbolic<br />

parameter wherever it is used in the macro definition. The value of the symbolic<br />

parameter is a null character string.<br />

Example:<br />

Chapter 9. How to Write Conditional Assembly Instructions 339

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

Saved successfully!

Ooh no, something went wrong!