SVC 13 (0A0D)

ABEND macro - is type 4, gets LOCAL lock.

Calls module IEAVTRT2, entry point IGC0101C.

GTF data is:
R15
Contains a 4 byte reason code if the REASON parameter is specified. If the REASON parameter is not specified, then R15 contains no applicable data.
R0
If the DUMPOPT or DUMPOPTX parameter is specified, R0 contains the address of a parameter list valid for the SNAP or SNAPX macro.
R1
Applicable if SVC 13 was not called by the ABTERM routines; format is:
Bytes
Contents
0
Flag byte
Bits    
1... .... DUMP option.
.1.. .... STEP option.
..1. .... DUMPOPT specified.
...1 .... Entry to RTM for memory purge.
.... 1... Exit to RTM (normal end of task).
.... .1.. REASON parameter specified.
.... ..xx Reserved.
1-3
ABEND Completion code.
CMP CODE
The ABEND completion code if SVC 13 was called by ABTERM routines. It is the content of the TCBRCMP field of the current TCB at the time the SVC interruption occurred. If ABEND recursion has occurred, this field contains the recursive completion code.