Previous Topic: How the NEWS Exit Is Called

Next Topic: Exit Function Codes


NEWS Exit Coding Requirements

This section describes the coding requirements for NEWS exits.

Maintain Registers on Entry to an Exit

You must observe standard linkage conventions when coding an exit.

On entry, the registers must be saved in the caller’s save area, and on exit, restored (except R15, which must contain a return code).

On entry, register contents are as follows:

R0

Unpredictable

R1

Address of a parameter list

R2-R12

Unpredictable

R13

Address of the caller’s standard save area

R14

Caller’s return address

R15

Address of the entry point of the user exit

On exit, the same registers should be restored except for R15, the exit return code.

Parameter List Format

The parameter list addressed by Register 1 on entry consists of one or two contiguous fullwords. If there are two fullwords, the first contains the address of another fullword that holds a function code indicating the reason that the exit is being called.

The second fullword of the parameter list is present for function codes 0 and 4 only. The high-order bit of this last (or solitary) fullword is not set; therefore, the length of the parameter list must be determined by examination of the function code as follows:

The following illustration shows the structure of the NEWS user exit parameter list pointers.

This illustration shows the structure of the NEWS and NTS user exit parameter list pointers.