24.12.2013 Views

TOPS-10 Monitor Calls Manual Volume 2 AA-K039D ... - Trailing-Edge

TOPS-10 Monitor Calls Manual Volume 2 AA-K039D ... - Trailing-Edge

TOPS-10 Monitor Calls Manual Volume 2 AA-K039D ... - Trailing-Edge

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

SEGOP. [CALLI 230]<br />

o To obtain information about a segment specified by name,<br />

clear ST.STP and do not specify the segment number in .SGSGN.<br />

Include the segment name in addr+3 (.SGSNM).<br />

o To obtain information about the segments owned by a specific<br />

job or job context, include the job/context handle in SG.CTX<br />

and SG.JOB.<br />

On a skip return from this function, the monitor fills in the contents<br />

of the argument list.<br />

This function will take the error return and error code ERSII% will be<br />

returned if the segment number and segment name specified in the<br />

argument list do not match.<br />

22.148.2 FUNCTION 1 (.SGGET)<br />

Obtains a new high segment without affecting current high<br />

The argument list for this function is:<br />

segments.<br />

addr:<br />

length" .SGGET<br />

flags-word<br />

BLOCK 4<br />

filespec-pointer<br />

In the flags-word, you can specify the following flags for this<br />

function:<br />

Bits<br />

1<br />

2<br />

12-17<br />

Symbol<br />

SG.USN<br />

SG.FFS<br />

SG.SEC<br />

Meaning<br />

When set, indicates that a section number is<br />

stored in SG.SEC.<br />

If non-zero, the new high segment is placed into<br />

the first free section.<br />

If SG.USN is set, contains the section number<br />

where the new segment should be created.<br />

On a skip return from this function, one of the following<br />

has been accomplished:<br />

functions<br />

o<br />

If SG.USN is set and SG.FFS is clear, the contents of SG.SEC<br />

indicate the section number to store the new high segment in.<br />

o If both SG.USN and SG.FFS are clear, the same section from<br />

which the argument list is given (usually the PC section) .<br />

o<br />

If SG.FFS is set, the section number that is actually used<br />

will be returned in the SG.SEC field of the Flags-word. In<br />

addition, the SG.USN flag is set and the SG.FFS flag is<br />

cleared after the return.<br />

The monitor fills in the argument list with information about the new<br />

high segment on a successful return from this call.<br />

22-376

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!