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

Assembler Language Structure Conditional assembly instruction statements and the macro processing statements (MACRO, MEND, MEXIT, MNOTE, AREAD, ASPACE, and AEJECT) are described in Figure 10 on page 26. The conditional assembly instructions are discussed in Chapter 9, “How to Write Conditional Assembly Instructions,” and macro processing instructions in Chapter 7, “How to Specify Macro Definitions.” Both types are summarized in Appendix A, “Assembler Instructions.” Macro instruction statements are described in Figure 11 on page 27, and discussed in Chapter 8, “How to Write Macro Instructions” on page 297. 22 HLASM V1R5 Language Reference

Assembler Language Structure Overview of Assembler Language Structure ┌─────────────────────────┐ │ │ │ Source module │ │ made up of │ │ source statements │ │ │ └────────────┬────────────┘ │ ▼ Which can be │ EITHER │ OR ┌──────────────────────────◄─┴─►──────────────────────────┐ ▼ ▼ ┌────────────┴────────────┐ ┌────────────┴────────────┐ │ │ │ │ │ INSTRUCTION │ │ COMMENT │ │ STATEMENTS │ │ STATEMENTS │ │ │ │ │ └────────────┬────────────┘ └────────────┬────────────┘ │ │ ▼ Which are of │ │ three main types │ ┌─────────────────────┼─────────────────────┐ │ ▼ ▼ ▼ │ ┌───────┴───────┐ ┌───────┴───────┐ ┌───────┴───────┐ │ │ MACHINE │ │ ASSEMBLER │ │ MACRO │ │ │ Instructions │ │ Instructions │ │ Instructions │ │ └───────┬───────┘ └───────┬───────┘ └───────┬───────┘ │ ▼ ▼ ▼ │ └─────────────────────┼─────────────────────┘ │ │ │ ▼ Which are composed of │ │ from one to four fields │ ┌─────────────────────┼─────────────────────┬─────────────────────┐ │ ▼ ▼ ▼ ▼ │ ┌───────┴───────┐ ┌───────┴───────┐ ┌───────┴───────┐ ┌───────┴───────┐ │ │ NAME │ │ OPERATION │ │ OPERAND │ │ REMARKS │ │ └───────┬───────┘ └───────┬───────┘ └───────┬───────┘ └───────┬───────┘ ▼ ▼ ▼ │ ▼ │ | ┌───────┴───────┐ ┌───────┴───────┐ │ └───────────►─┤ | │ No DBCS │ │ No DBCS │ ▼ Which, for machine │ | └───────────────┘ └───────────────┘ │ instructions, is │ │ composed of │ ┌───────┴───────┐ │ │ EXPRESSIONS │ │ └───────┬───────┘ │ │ │ ▼ Which are │ │ composed of │ ┌──────────┴──────────┐ ▼ Which are ▼ ▼ │ composed of ┌───────┴───────┐ ┌───────┴───────┐ ┌───────┴───────┐ │ TERMS │ │ Combination │ │ Any │ │ │ │ of terms │ │ Characters │ └───────┬───────┘ └───────┬───────┘ └───────┬───────┘ ▼ ▼ ▼ └─────────────────────┼────────────────────────┘ │ ▼ Which are │ composed of ┌─────────┴─────────┐ │ EBCDIC and DBCS │ │ CHARACTERS │ └───────────────────┘ Figure 7. Overview of Assembler Language Structure Chapter 2. Coding and Structure 23

Assembler <strong>Language</strong> Structure<br />

Conditional assembly instruction statements and the macro processing statements<br />

(MACRO, MEND, MEXIT, MNOTE, AREAD, ASPACE, and AEJECT) are described<br />

in Figure 10 on page 26. The conditional assembly instructions are discussed in<br />

Chapter 9, “How to Write Conditional Assembly Instructions,” and macro<br />

processing instructions in Chapter 7, “How to Specify Macro Definitions.” Both<br />

types are summarized in Appendix A, “Assembler Instructions.”<br />

Macro instruction statements are described in Figure 11 on page 27, and<br />

discussed in Chapter 8, “How to Write Macro Instructions” on page 297.<br />

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