HLASM Language Reference

HLASM Language Reference HLASM Language Reference

faculty.cs.niu.edu
from faculty.cs.niu.edu More from this publisher
22.02.2015 Views

Macro and Conditional Assembly Language Summary Figure 115. Macro Language Elements (Part 2) Attributes Type Statement Length Scale Integer Count Number Defined Operation Code MACRO Prototype Statement GBLA GBLB GBLC LCLA LCLB LCLC Model Statement SETA Operand Operand Operand Operand Operand Operand SETAF Operand Operand Operand Operand Operand SETB Operand Operand Operand Operand Operand Operand Operand Operand SETC Operand Operand SETCF Operand ACTR Operand Operand Operand Operand Operand AEJECT AGO AIF Operand Operand Operand Operand Operand Operand Operand Operand ANOP AREAD ASPACE Operand Operand Operand Operand Operand MEXIT MNOTE MEND Outer Macro Notes: 1. Variable symbols in macro instructions are replaced by their values before processing. 2. Depending upon their values, system variable symbols with global scope can be used in the same way as global SET symbols, and system variable symbols with local scope can be used in the same way as local SET symbols. 3. Only if value is self-defining term. 4. Converted to arithmetic 0 or 1. 5. Only in character relations. 6. Only in arithmetic relations. 7. Only in arithmetic or character relations. 8. Converted to an unsigned number. 9. Converted to character 0 or 1. 10. Only if one to ten decimal digits, not greater than 2147483647. 11. Only in created SET symbols if value of parenthesized expression is an alphabetic character followed by 0 to 61 alphanumeric characters. 12. Only in created SET symbols (as described above) and in subscripts (see SETA statement). 13. The first operand of a SETAF or SETCF instruction must be a character (SETC) expression containing or evaluating to an eight byte module name. 412 HLASM V1R5 Language Reference

Macro and Conditional Assembly Language Summary Figure 116 (Page 1 of 2). Conditional Assembly Expressions Expression Arithmetic Expressions Character Expressions Logical Expressions Can contain Self-defining terms Absolute, predefined ordinary symbols Length, scale, integer, count, defined, and number attributes Any combination of characters (including double-byte characters, if the DBCS assembler option is specified) enclosed in single quotation marks Any variable symbol enclosed in single quotation marks A 0 or a 1 Absolute, predefined ordinary symbols SETB symbols Arithmetic relations SETA and SETB symbols SETC symbols whose values are a self-defining term A concatenation of variable symbols and other characters enclosed in single quotation marks Built-in Functions Character relations Arithmetic value Symbolic parameters if the corresponding operand is a decimal self-defining term A type or operation code attribute reference Substrings Built-in Functions &SYSDATC &SYSLIST(n) if the corresponding operand is a decimal self-defining term &SYSLIST (n,m) if the corresponding operand is a decimal self-defining term &SYSOPT_DBCS, &SYSOPT_RENT, and &SYSOPT_XOBJECT &SYSM_HSEV and &SYSM_SEV Operations &SYSNDX, &SYSNEST, and &SYSSTMT +, − (unary and binary), *, and /; Concatenation, with a period (.), or by juxtaposition; substrings AND, OR, NOT, XOR Parentheses permitted Parentheses permitted | Range −2 to +2−1 0 through 1024 characters 0 (false) or 1 (true) of values Appendix C. Macro and Conditional Assembly Language Summary 413

Macro and Conditional Assembly <strong>Language</strong> Summary<br />

Figure 115. Macro <strong>Language</strong> Elements (Part 2)<br />

Attributes<br />

Type<br />

Statement<br />

Length<br />

Scale<br />

Integer<br />

Count<br />

Number<br />

Defined<br />

Operation Code<br />

MACRO<br />

Prototype<br />

Statement<br />

GBLA<br />

GBLB<br />

GBLC<br />

LCLA<br />

LCLB<br />

LCLC<br />

Model<br />

Statement<br />

SETA<br />

Operand<br />

Operand<br />

Operand<br />

Operand<br />

Operand<br />

Operand<br />

SETAF<br />

Operand<br />

Operand<br />

Operand<br />

Operand<br />

Operand<br />

SETB<br />

Operand<br />

Operand<br />

Operand<br />

Operand<br />

Operand<br />

Operand<br />

Operand<br />

Operand<br />

SETC<br />

Operand<br />

Operand<br />

SETCF<br />

Operand<br />

ACTR<br />

Operand<br />

Operand<br />

Operand<br />

Operand<br />

Operand<br />

AEJECT<br />

AGO<br />

AIF<br />

Operand<br />

Operand<br />

Operand<br />

Operand<br />

Operand<br />

Operand<br />

Operand<br />

Operand<br />

ANOP<br />

AREAD<br />

ASPACE<br />

Operand<br />

Operand<br />

Operand<br />

Operand<br />

Operand<br />

MEXIT<br />

MNOTE<br />

MEND<br />

Outer<br />

Macro<br />

Notes:<br />

1. Variable symbols in macro instructions are replaced by their values before processing.<br />

2. Depending upon their values, system variable symbols with global scope can be used in the same way as global SET symbols, and system variable symbols with local scope can be used in the same way as local SET symbols.<br />

3. Only if value is self-defining term.<br />

4. Converted to arithmetic 0 or 1.<br />

5. Only in character relations.<br />

6. Only in arithmetic relations.<br />

7. Only in arithmetic or character relations.<br />

8. Converted to an unsigned number.<br />

9. Converted to character 0 or 1.<br />

10. Only if one to ten decimal digits, not greater than 2147483647.<br />

11. Only in created SET symbols if value of parenthesized expression is an alphabetic character followed by 0 to 61 alphanumeric characters.<br />

12. Only in created SET symbols (as described above) and in subscripts (see SETA statement).<br />

13. The first operand of a SETAF or SETCF instruction must be a character (SETC) expression containing or evaluating to an eight byte module name.<br />

412 <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!