22.02.2015 Views

HLASM Language Reference

HLASM Language Reference

HLASM Language Reference

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

AMODE Instruction<br />

name<br />

is the name field that associates the residence mode with a control<br />

section. If there is a symbol in the name field, it must also appear in the<br />

name field of a START, CSECT, RSECT, or COM instruction in this<br />

assembly. If the name field is space-filled, there must be an unnamed<br />

control section in this assembly. If the name field contains a sequence<br />

symbol (see “Symbols” on page 29 for details), it is treated as a blank<br />

name field.<br />

If the extended object format is being generated (GOFF<br />

assembler option), name is a relocatable symbol that names an entry point<br />

specified on an ENTRY instruction.<br />

24 Specifies that 24-bit addressing mode is to be associated with a control<br />

section, or entry point.<br />

31 Specifies that 31-bit addressing mode is to be associated with a control<br />

section, or entry point.<br />

64 Specifies that 64-bit addressing mode is to be associated with a control<br />

section, or entry point (see “64-bit Addressing Mode” on page 101).<br />

ANY<br />

ANY31<br />

The same as ANY31.<br />

The control section or entry point is not sensitive to whether it is entered in<br />

AMODE 24 or AMODE 31.<br />

| ANY64 The control section or entry point is not sensitive to whether it is entered in<br />

| AMODE 24, AMODE 31, or AMODE 64.<br />

Any field of this instruction may be generated by a macro, or by substitution in open<br />

code.<br />

If symbol denotes an ordinary symbol, the ordinary symbol associates the<br />

addressing mode with a control section. The ordinary symbol must also appear in<br />

the name field of a START, CSECT, RSECT, or COM instruction in this assembly.<br />

If symbol is not specified, or if name is a sequence symbol, there must be an<br />

unnamed control section in this assembly.<br />

Notes:<br />

1. AMODE can be specified anywhere in the assembly. It does not initiate an<br />

unnamed control section.<br />

| 2. AMODE is permitted on external labels (EXTRNs) and Entry labels for both<br />

| GOFF and OBJ formats and Parts for GOFF formats.<br />

3. An assembly can have multiple AMODE instructions; however, two AMODE<br />

instructions cannot have the same name field.<br />

4. The valid and invalid combinations of AMODE and RMODE are shown in the<br />

following table. Note that combinations involving AMODE 64 and RMODE 64<br />

are subject to the support outlined in “64-bit Addressing Mode” on page 101.<br />

Chapter 5. Assembler Instruction Statements 111

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!