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


$STORE – Store registers in the current processor save area

z/OS JES2 Macros
SA32-0996-00

Use $STORE to store one or more registers in the current processor save area (that is, the one associated with the most recently issued $SAVE macro instruction). The stored registers are returned to a calling routine on execution of a $RESTORE macro instruction.

Format description

Read syntax diagramSkip visual syntax diagram
>>-+--------+--$STORE--list--REGS=--AREGS=--QREGS=-------------><
   '-symbol-'                                        

list
Specifies a list of one or more registers, and/or groups of registers to be stored. If more than one register is to be stored, the entire list must be enclosed in parentheses.

A register group is indicated by a pair of registers enclosed in parentheses. All registers, beginning with the first register specified and ending with the second register, are stored. The order of storing a group of registers is: R14, R15, R0-R12. If the list consists of a single group, the outer (list) parentheses are not required.

Note: All registers must be specified symbolically. The accepted register symbols are: R0, R1, R2,. . ., R15.

Examples:

Store register 2
  $STORE (R2) or
  $STORE R2
Store registers 15 through 8
  $STORE ((R15,R8)) or
  $STORE (R15,R8)
Store register 3 and register 10
  $STORE ((R3), (R10)) or
  $STORE ((R3),R10) or
  $STORE (R3,(R10))
Store registers 0, 3 through 5, and 8
  $STORE (R8, R0,(R3, R5))
Note: The sublist order is unimportant.
REGS=
A list of general purpose registers to be stored.
AREGS=
A list of access registers to be stored. This parameter is not valid in the USER, FSS, or SUBTASK environment.
QREGS=
A list of registers for which both the access register and the general purpose register are to be stored. Access registers are never stored in the USER, SUBTASK, or FSS environments.

Environment

  • All environments.
  • $WAIT cannot occur.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014