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> Coding Conventions<br />

DBCS2: The DBCS2 constant contains an EBCDIC string which is followed by a<br />

double-byte string. Because there is no space for any double-byte data on the first<br />

line, the end column is extended three columns to the left and the double-byte data<br />

started on the next line. The assembled value of DBCS2 is:<br />

abcdefghijklmnopqrstuvwxyz123456789<br />

DBCS3: The DBCS3 constant contains 22 EBCDIC characters followed by 9<br />

double-byte characters. Alignment of the double-byte data requires that the end<br />

column be extended one column to the left. The SI and SO at the continuation<br />

point are not assembled into the operand. The assembled value of DBCS3 is:<br />

abcdefghijklmnopqrstuv<br />

Source Listing Considerations<br />

For source that does not contain substituted variable symbols, the listing<br />

exactly reflects the source input.<br />

Double-byte data input from code-generation programs, that contain no<br />

substituted variables, are not readable in the listing if the source input was not<br />

displayable on a device capable of presenting DBCS characters.<br />

Refer to “Listing of Generated Fields Containing Double-Byte Data” on<br />

page 249 for details of extended continuation and macro-generated<br />

statements.<br />

Blank Lines<br />

Blank lines are accepted in source programs. In open code, each blank line is<br />

treated as equivalent to a SPACE 1 statement. In the body of a macro definition,<br />

each blank line is treated as equivalent to an ASPACE 1 statement.<br />

Comment Statement Format<br />

Comment statements are not assembled as part of the object module, but are only<br />

printed in the assembly listing. You can write as many comment statements as you<br />

need, provided you follow these rules:<br />

Comment statements require an asterisk in the begin column. Internal macro<br />

definition comment statements require a period in the begin column, followed<br />

by an asterisk. Internal macro comments are accepted as comment statements<br />

in open code.<br />

Any characters of the EBCDIC character set, or double-byte character set can<br />

be used (see “Character Set” on page 11).<br />

Comment statements must lie within the statement field. If the comment<br />

extends into the continuation-indicator field, the statement following the<br />

comment statement is considered a continuation line of that comment<br />

statement.<br />

Comment statements must not appear between an instruction statement and its<br />

continuation lines.<br />

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