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

START Instruction START Instruction The START instruction can be used to initiate the first or only control section of a source module, and optionally to set an initial location counter value. ►►──┬────────┬──START──┬────────────┬──────────────────────────────►◄ └─symbol─┘ └─expression─┘ 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 expression is an absolute expression, the value of which the assembler uses to set the location counter to an initial value for the source module. Any symbols referenced in expression must have been previously defined. The START instruction must be the first instruction of the first executable control section of a source module. It must not be preceded by any instruction that affects the location counter, and thereby causes the first control section to be initiated. Use the START instruction to initiate the first or only control section of a source module, because it: Determines exactly where the first control section is to begin, thus avoiding the accidental initiation of the first control section by some other instruction. Gives a symbolic name to the first control section, which can then be distinguished from the other control sections listed in the external symbol dictionary. Specifies the initial setting of the location counter for the first or only control section. If symbol denotes an ordinary symbol, the ordinary symbol identifies the first control section. It must be used in the name field of any CSECT instruction that indicates the continuation of the first 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 START instruction initiates an unnamed control section. The assembler uses the value expression in the operand field, if specified, to set the location counter to an initial value for the source module. All control sections | are aligned on the boundary specified by the SECTALGN option. Therefore, if the | value specified in expression is not divisible by the SECTALGN value, the | assembler sets the initial value of the location counter to the next higher required boundary. If expression is omitted, the assembler sets the initial value to 0. 214 HLASM V1R5 Language Reference

TITLE Instruction The source statements that follow the START instruction are assembled into the first control section. If a CSECT instruction indicates the continuation of the first control section, the source statements that follow this CSECT instruction are also assembled into the first control section. Any instruction that defines a new or continued control section marks the end of the preceding control section. The END instruction marks the end of the control section in effect. TITLE Instruction The TITLE instruction: Provides headings for each page of the source and object section of the assembler listing. If the first statement in your source program is an ICTL instruction or a *PROCESS statement then the title is not printed on the first page of the Source and Object section, because each of these instructions must precede all other instructions. Identifies the assembly output records of your object modules. You can specify up to 8 identification characters that the assembler includes as a deck ID in all object records, beginning at byte 73. If the deck ID is less than 8 characters, the assembler puts sequence numbers in the remaining bytes up to byte 80. ►►──┬──────┬──TITLE──title_string──────────────────────────────────►◄ └─name─┘ name You can specify name only once in the source module. It is one of the following: A string of printable characters A variable symbol that has been assigned a string of printable characters A combination of the above A sequence symbol Except when the name is a sequence symbol, the assembler uses the first 8 characters you specify, and discards the remaining characters without warning. title_string is a string of 1 to 100 characters enclosed in single quotation marks If two or more TITLE instructions are together, the title provided by the last instruction is printed as the heading. Deck ID in Object Records When you specify the name, and it is not a sequence symbol, it has a special significance. The assembler uses the name value to generate the deck ID in object records. The deck ID is placed in the object records starting at byte 73. It is not generated for records produced by the PUNCH and REPRO instructions. The name value does not need to be on the first TITLE instruction. Chapter 5. Assembler Instruction Statements 215

START Instruction<br />

START Instruction<br />

The START instruction can be used to initiate the first or only control section of a<br />

source module, and optionally to set an initial location counter value.<br />

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

└─symbol─┘<br />

└─expression─┘<br />

symbol<br />

is one of the following:<br />

An ordinary symbol<br />

A variable symbol that has been assigned a character string with a value<br />

that is valid for an ordinary symbol<br />

A sequence symbol<br />

expression<br />

is an absolute expression, the value of which the assembler uses to set the<br />

location counter to an initial value for the source module.<br />

Any symbols referenced in expression must have been previously defined.<br />

The START instruction must be the first instruction of the first executable control<br />

section of a source module. It must not be preceded by any instruction that affects<br />

the location counter, and thereby causes the first control section to be initiated.<br />

Use the START instruction to initiate the first or only control section of a source<br />

module, because it:<br />

Determines exactly where the first control section is to begin, thus avoiding the<br />

accidental initiation of the first control section by some other instruction.<br />

Gives a symbolic name to the first control section, which can then be<br />

distinguished from the other control sections listed in the external symbol<br />

dictionary.<br />

Specifies the initial setting of the location counter for the first or only control<br />

section.<br />

If symbol denotes an ordinary symbol, the ordinary symbol identifies the first control<br />

section. It must be used in the name field of any CSECT instruction that indicates<br />

the continuation of the first control section. The ordinary symbol denoted by<br />

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 START instruction<br />

initiates an unnamed control section.<br />

The assembler uses the value expression in the operand field, if specified, to set<br />

the location counter to an initial value for the source module. All control sections<br />

| are aligned on the boundary specified by the SECTALGN option. Therefore, if the<br />

| value specified in expression is not divisible by the SECTALGN value, the<br />

| assembler sets the initial value of the location counter to the next higher required<br />

boundary. If expression is omitted, the assembler sets the initial value to 0.<br />

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