The AMODE instruction specifies the addressing mode
for a control section, ENTRY symbol, or EXTRN symbol. See also Establishing residence and addressing mode and RMODE instruction.
>>-+------+--AMODE--+-24----+----------------------------------><
'-name-' +-31----+
+-64----+
+-ANY---+
+-ANY31-+
'-ANY64-'
- name
- Name of the control section or, if the GOFF assembler
option is specified, the ENTRY symbol or EXTRN symbol. If name is
omitted or is a sequence symbol (see Symbols),
the addressing mode applies to the unnamed control section.
- z/VM and z/OS
- If the extended object format is being generated (GOFF assembler
option), name is a relocatable symbol that
names an entry point specified on an ENTRY instruction, or on an external
symbol specified on an EXTRN instruction.
- 24
- Specifies
that 24 bit addressing mode is to be associated with a control section,
or entry point.
- 31
- Specifies
that 31 bit addressing mode is to be associated with a control section,
or entry point.
- 64
- Specifies
that 64 bit addressing mode is to be associated with a control section,
or entry point (see 64 bit addressing mode).
- ANY
- The
same as ANY31.
- ANY31
- The
control section or entry point is not sensitive to whether it is entered
in AMODE 24 or AMODE 31.
- ANY64
- The
control section or entry point is not sensitive to whether it is entered
in AMODE 24, AMODE 31, or AMODE 64.
Any field of this instruction can be generated by a macro, or by
substitution in open code.
Notes: - AMODE can be specified anywhere in the assembly. It does not
initiate an unnamed control section.
- AMODE is permitted on external labels (EXTRNs) and Entry labels
for both GOFF formats and Parts for GOFF formats.
- An assembly can have multiple AMODE instructions; however, two
AMODE instructions cannot have the same name field.
- The valid and invalid combinations of AMODE and RMODE are shown
in the following table. Combinations involving AMODE 64 and RMODE
64 are subject to the support outlined in 64 bit addressing mode.
Table 1. AMODE/RMODE combinations |
RMODE 24 |
RMODE 31 |
RMODE 64 |
AMODE 24 |
OK |
invalid |
invalid |
AMODE 31 |
OK |
OK |
invalid |
AMODE ANY|ANY31 |
OK |
OK |
invalid |
AMODE 64|ANY64 |
OK |
OK |
OK |
- The defaults used when there is no mode or one MODE is specified
are shown in the following table. Combinations involving AMODE 64
and RMODE 64 are subject to the support outlined in 64 bit addressing mode.
Table 2. AMODE/RMODE defaultsSpecified |
Default |
Neither |
AMODE 24, RMODE 24 |
AMODE 24 |
RMODE 24 |
AMODE 31 |
RMODE 24 |
AMODE ANY|ANY31 |
RMODE 24 |
RMODE 24 |
AMODE 24 |
RMODE 31 |
AMODE 31 |
AMODE 64 |
RMODE 31 |
AMODE ANY64 |
RMODE 31 |
RMODE 64 |
AMODE 64 |