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.

Conditional Assembly Instructions<br />

Figure 95 (Page 2 of 2). Restrictions on Coding Expressions in Open Code<br />

Expression<br />

Character<br />

(SETC)<br />

Logical<br />

(SETB)<br />

Must not contain<br />

System variables with local scope<br />

Attribute references to system variables with local scope<br />

Symbolic parameters<br />

Predefined absolute symbols<br />

Arithmetic expressions with the items listed above<br />

Character expressions with the items listed above<br />

Conditional Assembly Instructions<br />

The remainder of this chapter describes, in detail, the syntax and rules for use of<br />

each conditional assembler instruction. The following table lists the conditional<br />

assembler instructions by type, and provides the page number where the instruction<br />

is described in detail.<br />

Figure 96. Assembler Instructions<br />

Type of Instruction Instruction Page No.<br />

Establishing SET symbols GBLA 344<br />

GBLB 344<br />

GBLC 344<br />

LCLA 345<br />

LCLB 345<br />

LCLC 345<br />

SETA 347<br />

SETB 362<br />

SETC 369<br />

Branching ACTR 394<br />

AGO 392<br />

AIF 390<br />

ANOP 395<br />

External Function Calling SETAF 388<br />

SETCF 389<br />

Declaring SET Symbols<br />

You must declare a global SET symbol before you can use it. The assembler<br />

assigns an initial value to a global SET symbol at its first point of declaration.<br />

Local SET symbols need not be declared explicitly with LCLA, LCLB, or LCLC<br />

statements. The assembler considers any undeclared variable symbol found in the<br />

name field of a SETA, SETB, SETC, SETAF, or SETCF statement to be a local<br />

SET symbol. It is given the initial value specified in the operand field. If the<br />

symbol in the name field is subscripted, it is declared as a subscripted SET symbol.<br />

Chapter 9. How to Write Conditional Assembly Instructions 343

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

Saved successfully!

Ooh no, something went wrong!