AMODESW SET (Set Addressing Mode) Macro

The macro can be used to change a program's addressing mode without branching to a subroutine.

If used as a supervisor generation macro, the macro can be used to switch dynamic address translation either on or off.

Format

Read syntax diagramSkip visual syntax diagramnameAMODESW SET,AMODE=2431( r1),SAVE=( r2),WR=(15),WR=( r3),ENV=ESA

Requirements for the caller

AMODE:
24 or 31
RMODE:
24 or ANY
ASC Mode:
Primary

Parameters

SET
Indicates that the program 's addressing mode is to be changed.
AMODE=24 | 31 | (r1)
Switches either to 24-bit or 31-bit addressing mode or sets the addressing mode according to the value of bit 0 of the specified register.
SAVE=(r2)
Saves the current (unknown) addressing mode in bit 0 of the specified register (1-14). If you do not specify SAVE, the current mode is not saved.
WR=(r3|15)
Specifies a work register. The contents of this register are changed. If the operand is omitted, register 15 is taken as default.
ENV=ESA
Causes the system not to check the current environment (and assume ESA).