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.

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

DC CL(L'STRLEN )' ' Space not within quotes<br />

The following example shows a space enclosed in quotes, as part of a string. This<br />

space is properly accounted for:<br />

MVC<br />

AREA1,=C'This Area' Space inside quotes<br />

| In quotes, spaces and parentheses can occur in any quantity and in any order:<br />

LA<br />

R1,=C'This is OK (isn''t it)'<br />

Remarks Entries: Remarks are used to describe the current instruction. The<br />

following rules apply to remarks:<br />

Remarks are optional.<br />

They can contain any character from the EBCDIC character set, or the<br />

double-byte characters set.<br />

They can follow any operand entry.<br />

In statements in which an optional operand entry is omitted, but you want to<br />

code a comment, indicate the absence of the operand by a comma preceded<br />

and followed by one or more spaces, as shown below:<br />

END , End of Program<br />

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

This section describes the structure of the assembler language, including the<br />

statements that are allowed in the language, and the elements that make up those<br />

statements.<br />

“Statement Coding Rules” on page 19 describes the composition of an assembler<br />

language source statement.<br />

The figures in this section show the overall structure of the statements that<br />

represent the assembler language instructions, and are not specifications for these<br />

instructions. The individual instructions, their purposes, and their specifications are<br />

described in other sections of this manual.<br />

Model statements, used to generate assembler language statements, are described<br />

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

The remarks entry in a source statement is not processed by the assembler, but it<br />

is printed in the assembler listing. For this reason, it is only shown in the overview<br />

of the assembler language structure in Figure 7 on page 23, and not in the other<br />

figures.<br />

The machine instruction statements are described in Figure 8 on page 24,<br />

discussed in Chapter 4, “Machine Instruction Statements,” and summarized in the<br />

applicable Principles of Operation manual.<br />

Assembler instruction statements are described in Figure 9 on page 25, discussed<br />

in Chapter 3, “Program Structures and Addressing” and Chapter 5, “Assembler<br />

Instruction Statements,” and are summarized in Appendix A, “Assembler<br />

Instructions.”<br />

Chapter 2. Coding and Structure 21

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

Saved successfully!

Ooh no, something went wrong!