AMODESW RETURN (Return from Subroutine) Macro
The macro makes a return to the caller of a subroutine.
Format
Requirements for the caller
- AMODE:
- 24 or 31
- RMODE:
- 24 or ANY
- ASC Mode:
- Primary
Parameters
- RETURN
- Indicates that a subroutine is to return to its caller.
- AMODE=24 | 31 | (reg)
- Specifies that the subroutine is to return either in 24-bit or 31-bit
addressing mode or in the addressing mode corresponding to the value
of bit 0 of the specified register. The register must not be the
same as the one used as return register (14 or the register that is
specified in the REG operand).
If you do not specify AMODE, z/VSE sets the addressing mode according to the value of bit 0 of the return register specified in the REG operand.
- REG=(return_reg|14)
- Specifies the register that contains the address (and, optionally, the addressing mode) where control is to be returned. If you do not specify REG, z/VSE uses register 14 as the return register.