22.02.2015 Views

HLASM Language Reference

HLASM Language Reference

HLASM Language Reference

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Addressing<br />

Literal Pools<br />

ALPHA LR 3,4<br />

CR 4,6<br />

BCR 1,14<br />

BETA AR 2,3<br />

Literals, collected into pools by the assembler, are assembled as part of the<br />

executable control section to which the pools belong. If a LTORG instruction is<br />

specified at the end of each control section or element, the literals specified for that<br />

section or element are assembled into the pool starting at the LTORG instruction.<br />

If no LTORG instruction is specified, a literal pool containing all the literals used in<br />

| the whole source module is assembled at the end of the first control section or at<br />

| the end of the B_TEXT class belonging to the first section. This literal pool appears<br />

in the listings after the END instruction. For more information about the LTORG<br />

instruction, see “LTORG Instruction” on page 193.<br />

Independently Addressed Segments: If any control section is divided into<br />

independently addressed segments, a LTORG instruction should be specified at the<br />

end of each segment to create a separate literal pool for that segment.<br />

Establishing Residence and Addressing Mode<br />

The AMODE and RMODE instructions specify the addressing mode (AMODE) and<br />

the residence mode (RMODE) to be associated with control sections in the object<br />

deck. These modes may be specified for the following types of control sections:<br />

Control section (for example START, CSECT)<br />

Unnamed control section<br />

Common control section (COM instruction)<br />

The assembler sets the AMODE and RMODE indicators in the ESD record for each<br />

applicable control section in an assembly. The linker stores the AMODE and<br />

RMODE values in the load module. They are subsequently used by the loader<br />

program that brings the load module into storage. The loader program uses the<br />

RMODE value to determine where it loads the load module, and passes the<br />

AMODE value to the operating system to establish the addressing mode.<br />

| When you specify the GOFF option, the RMODE value specified for a<br />

| section is by default assigned to the B_TEXT class, and the AMODE specified for the<br />

| section is assigned to an entry point having the section name and the location of<br />

| the first byte of class B_TEXT. If the source program defines additional classes,<br />

| each class may be assigned its own RMODE, and an entry point in any class may<br />

| be assigned its own AMODE.<br />

For more information about the AMODE and RMODE instructions, see “AMODE<br />

Instruction” on page 110 and “RMODE Instruction” on page 211.<br />

Symbolic Linkages<br />

Symbols can be defined in one module and referred to in another, which results in<br />

symbolic linkages between independently assembled program sections. These<br />

linkages can be made only if the assembler can provide information about the<br />

linkage symbols to the linker, which resolves the linkage references at link-edit<br />

time.<br />

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