Previous Topic Next topic Print topic


SVC 5, FREEMAIN (all E and L options, VU and VC)

INPUT
  • Register 1

    Address of parameter list.

OUTPUT
  • Register 15
    Return code:
    • 0=Successful
    • 4=4=Status of memory unchanged

Parameter list, 10 bytes in length.

Bytes Description
0-3

Element request: length requested

List request: address of a list of lengths requested (one word per request, the last word contains X'80' in byte 0.)

4 -7

Single area request: address of a word containing the address of the area to be freed.

List-request: address of a list of addresses of areas to be freed.

Variable request: address of a double-word containing the address to be freed in the first word and the length to be freed in the second word.

8 Flag byte:

10 Request is for storage aligned on a page boundary.

00 Unconditional element request.

20 Conditional element request.

80 Unconditional list request.

A0 Conditional list request.

C0 Unconditional variable request.

E0 Conditional variable request.

9 Subpool that the memory belongs to
Note: A conditional request with a failure should result in an abend without returning to the calling program.
Previous Topic Next topic Print topic