HLASM Language Reference
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Location counter setting

HLASM Language Reference
SC26-4940-06

The assembler maintains a separate location counter for each section, element, and part. The location counter setting for the first section starts at 0, except when an initial section is started with a START instruction that specifies a nonzero location counter value. The location values assigned to the instructions and other data in a section, element, or part are, therefore, relative to the location counter setting at the beginning of that section, element, or part.

For executable sections, the location values that appear in the listings depend on the THREAD option:
  • If you specify NOTHREAD, the location counter values for each section, element, or part restart at 0, except possibly those associated with a first section initiated by a START instruction with a nonzero address.
  • If you specify THREAD, location counter values do not restart at 0 for each subsequent section, element, or part. They continue, after suitable alignment, from the end of the previous section, element, or part.

For reference control sections, the location values that appear in the listings always start from 0.

You can continue a control section, element, or part that has been discontinued and thus intersperse code sequences from different control sections, elements, or parts. The location values that appear in the listings for such discontiguous sequences are divided into segments that follow from the end of one segment to the beginning of the subsequent segment.

The location values, listed for the next defined control section, element, or part, begin after the last location value assigned to the preceding such item.

On z/VSE, or when you specify the NOGOFF assembler option on z/OS and CMS, the maximum value of the location counter and the maximum length of a control section is 224-1, or X'FFFFFF' bytes. If LIST(133) is in force, then the high-order byte is shown as zero.

z/VM and z/OS
When you specify the GOFF assembler option, the maximum value of the location counter and the maximum length of an element or part is 231-1, or X'7FFFFFFF' bytes.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014