The AMODE and RMODE instructions specify the addressing mode (AMODE) and the residence mode (RMODE) to be associated with control sections in the object deck. You may specify AMODE for ENTRY and EXTRN instruction operands if the GOFF option is specified. If OBJ format is used, then AMODE is not valide for ENTRY or EXTRN instruction operands, but AMODE and RMODE can be specified for any CSECT or START operand with either OBJ or GOFF and without restriction on the xMODE operands. These modes may be specified for the following types of control sections:
The assembler sets the AMODE and RMODE indicators in the ESD record for each applicable external symbol in an assembly. The linker stores the AMODE and RMODE values in the bound program. They are subsequently used by the loader program that brings the load module into storage. The loader program uses the RMODE value to determine where it loads the load module, and passes the AMODE value of the executable program's main entry point to the operating system to establish the addressing mode.
When you specify the GOFF option, the RMODE value specified for a section is by default assigned to the B_TEXT class, and the AMODE specified for the section is assigned to an entry point having the section name and the location of the first byte of class B_TEXT. If the source program defines additional classes, each class may be assigned its own RMODE, and an entry point in any class may be assigned its own AMODE.
For more information about the AMODE and RMODE instructions, see AMODE instruction and RMODE instruction.
[ Top of Page | Previous Page | Next Page | Contents | Index ]