z/OS JES2 Macros
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


$AMODE – Set the addressing mode

z/OS JES2 Macros
SA32-0996-00

Use the $AMODE macro instruction to set 24-bit and 31-bit addressing modes.

Format description

Read syntax diagramSkip visual syntax diagram
>>-+--------+--$AMODE--+----------------+--+----------------+--->
   '-symbol-'          +-mode-----------+  '-,POPR--=--R--n-'   
                       '-PUSHR--=--R--n-'                       

          .-R15--.                                 
>--,R--=--+-R--n-+--+--------------------------+---------------><
                    '-,RELATED--=--char-string-'   

mode
Specifies the addressing mode to be used by the code that follows this macro until it is again specified. This is a positional parameter and must be specified if PUSHR= is also specified. Do not use this operand if POPR= is specified.
24
Specifies 24-bit addressing mode.
31
Specifies 31-bit addressing mode.
PUSHR=
Specifies a register to be used to store the current addressing mode. If mode is specified, this keyword is also required.
Note: Do not enclose the specified register in parenthesis.
POPR=
Specifies a register to be used to restore the previous addressing mode. The register specified here must have been previously loaded by a $AMODE mode PUSHR= instruction. Do not specify this keyword if mode and PUSHR= are specified.
Note: Do not enclose the specified register in parenthesis.
R=
Specifies a work register to be used by this macro instruction. Register 15 is the default.
Note: Do not enclose the specified register in parenthesis.
RELATED=
Specifies a character string used to self-document this macro instruction call. Any specification type value for macro keywords can be used here. This field is useful for documenting the inline pairing of $AMODE macros.

Environment

  • JES2 main task, JES2 subtask, FSS, and user environment.
  • Waits cannot occur.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014