The SAVE macro stores the contents of the specified general purpose registers in the save area at the address contained in register 13. If you wish, you may specify an entry point identifier. Write the SAVE macro only at the entry point of a program because the code resulting from the macro expansion requires that register 15 contain the address of the SAVE macro prior to its execution. Do not use the SAVE macro in a program interruption exit routine.
The SAVE macro is written as follows:
Syntax | Description |
---|---|
name | name: Symbol. Begin name in column 1. |
␢ | One or more blanks must precede SAVE. |
SAVE | |
␢ | One or more blanks must follow SAVE. |
(reg1) |
reg1 and reg2: Decimal digits, and in the order 14, 15, 0 through 12. |
, |
|
,id name | id name: Character string of up to 70 characters or as an *. |
The parameters are explained as follows:
If you specify both T and reg2, and reg1 is any of registers 14, 15, 0, 1, or 2, all of registers 14 through the reg2 value are saved.
SAVE (14,12),,*