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


Addressing considerations

HLASM Language Reference
SC26-4940-06

If you specify literals in source modules with multiple control sections, then:
  • Write an LTORG instruction at the end of each control section, so that all the literals specified in the section are assembled into the one literal pool for that section. If a control section is divided and interspersed among other control sections, write an LTORG instruction at the end of each segment of the interspersed control section.
  • When establishing the addressability of each control section, make sure that:
    • All the literal pool for that section is also addressable, by including it within a USING range.
    • The literal specifications are within the corresponding USING domain.
    The USING range and domain are described in USING instruction.

All the literals specified after the last LTORG instruction, or, if no LTORG instruction is specified, all the literals in a source module are assembled into a literal pool at the end of the first control section. You must then make this literal pool addressable, along with the addresses in the first control section. This literal pool is printed in the program listing after the END instruction.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014