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

RSECT Instruction 4. AMODE or RMODE cannot be specified for an unnamed common control section. 5. The defaults used when zero or one MODE is specified are shown in the following table. Note that combinations involving AMODE 64 and RMODE 64 are subject to the support outlined in “64-bit Addressing Mode” on page 101. Figure 59. AMODE/RMODE Defaults Specified Default Neither AMODE 24,RMODE 24 AMODE 24 RMODE 24 AMODE 31 RMODE 24 AMODE ANY|ANY31 RMODE 24 RMODE 24 AMODE 24 RMODE 31 (was ANY) AMODE 31 AMODE 64 RMODE 31 RMODE 64 AMODE 64 RSECT Instruction The RSECT instruction initiates a read-only executable control section or indicates the continuation of a read-only executable control section. ►►──┬────────┬──RSECT──────────────────────────────────────────────►◄ └─symbol─┘ symbol is one of the following: An ordinary symbol A variable symbol that has been assigned a character string with a value that is valid for an ordinary symbol A sequence symbol When an executable control section is initiated by the RSECT instruction, the assembler automatically checks the control section for possible coding violations of program reenterability, regardless of the setting of the RENT assembler option. As the assembler cannot check program logic, the checking is not exhaustive. Non-reentrant code is diagnosed by a warning message. The RSECT instruction can be used anywhere in a source module after the ICTL instruction. If it is used to initiate the first executable control section, it must not be preceded by any instruction that affects the location counter and thereby causes the first control section to be initiated. If symbol denotes an ordinary symbol, the ordinary symbol identifies the control section. If several RSECT instructions within a source module have the same symbol in the name field, the first occurrence initiates the control section and the 212 HLASM V1R5 Language Reference

SPACE Instruction rest indicate the continuation of the control section. The ordinary symbol denoted by symbol represents the address of the first byte in the control section, and has a length attribute value of 1. If symbol is not specified, or if name is a sequence symbol, the RSECT instruction initiates or indicates the continuation of the unnamed control section. See “CSECT Instruction” on page 123 for a discussion on the interaction between RSECT and the GOFF assembler option. | The beginning of a control section is aligned on a boundary determined by the | SECTALGN option. However, when an interrupted control section is continued using the RSECT instruction, the location counter last specified in that control section is continued. The source statements following a RSECT instruction that either initiate or indicate the continuation of a control section are assembled into the object code of the control section identified by that RSECT instruction. Notes: 1. The assembler indicates that a control section is read-only by setting the read-only attribute in the object module. 2. The end of a control section or portion of a control section is marked by (a) any instruction that defines a new or continued control section, or (b) the END instruction. SPACE Instruction The SPACE instruction inserts one or more blank lines in the listing of a source module. This separates sections of code on the listing page. ►►──┬─────────────────┬──SPACE──┬─────────────────┬────────────────►◄ └─sequence_symbol─┘ └─number_of_lines─┘ sequence_symbol is a sequence symbol. number_of_lines is an absolute expression that specifies the number of lines to be left blank. You may use any absolute expression to specify number_of_lines. If number_of_lines is omitted, one line is left blank. If number_of_lines has a value greater than the number of lines remaining on the listing page, the instruction has the same effect as an EJECT statement. The SPACE statement itself is not printed in the listing unless a variable symbol is specified as a point of substitution in the statement, in which case the statement is printed before substitution occurs. Chapter 5. Assembler Instruction Statements 213

SPACE Instruction<br />

rest indicate the continuation of the control section. The ordinary symbol denoted<br />

by symbol represents the address of the first byte in the control section, and has a<br />

length attribute value of 1.<br />

If symbol is not specified, or if name is a sequence symbol, the RSECT instruction<br />

initiates or indicates the continuation of the unnamed control section.<br />

See “CSECT Instruction” on page 123 for a discussion on the interaction between<br />

RSECT and the GOFF assembler option.<br />

| The beginning of a control section is aligned on a boundary determined by the<br />

| SECTALGN option. However, when an interrupted control section is continued<br />

using the RSECT instruction, the location counter last specified in that control<br />

section is continued.<br />

The source statements following a RSECT instruction that either initiate or indicate<br />

the continuation of a control section are assembled into the object code of the<br />

control section identified by that RSECT instruction.<br />

Notes:<br />

1. The assembler indicates that a control section is read-only by setting the<br />

read-only attribute in the object module.<br />

2. The end of a control section or portion of a control section is marked by (a) any<br />

instruction that defines a new or continued control section, or (b) the END<br />

instruction.<br />

SPACE Instruction<br />

The SPACE instruction inserts one or more blank lines in the listing of a source<br />

module. This separates sections of code on the listing page.<br />

►►──┬─────────────────┬──SPACE──┬─────────────────┬────────────────►◄<br />

└─sequence_symbol─┘<br />

└─number_of_lines─┘<br />

sequence_symbol<br />

is a sequence symbol.<br />

number_of_lines<br />

is an absolute expression that specifies the number of lines to be left blank.<br />

You may use any absolute expression to specify number_of_lines. If<br />

number_of_lines is omitted, one line is left blank. If number_of_lines has a<br />

value greater than the number of lines remaining on the listing page, the<br />

instruction has the same effect as an EJECT statement.<br />

The SPACE statement itself is not printed in the listing unless a variable symbol is<br />

specified as a point of substitution in the statement, in which case the statement is<br />

printed before substitution occurs.<br />

Chapter 5. Assembler Instruction Statements 213

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

Saved successfully!

Ooh no, something went wrong!