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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

GETSEG [CALLI 40]<br />

The right half of .JBHRL is set to the new<br />

legal user address in the high segment .<br />

highest<br />

. JBSA and .JBREN are cleared if they contain addresses<br />

in the new high segment. This removes the program's<br />

start address, so that an error will occur on a START<br />

or REENTER command.<br />

Channel 0 is released by<br />

channels are not released.<br />

the GETSEG call. Other<br />

Refer to the RELEAS UUO.<br />

A GETSEG call made from the current program's high segment can succeed<br />

only if the start of the new high segment coincides with the skip<br />

return for the call. Program execution returns to the user program at<br />

the PC corresponding to the skip return from the GETSEG UUO in the<br />

previous segment. It is the user's responsibility to ensure that this<br />

PC contains instructions he wishes to be executed.<br />

ERROR RETURN<br />

See Section 11.14 for a list of GETSEG errors.<br />

If the segment already exists in the user's address space, error code<br />

70 is returned in the ac.<br />

RELATED CALLS<br />

o<br />

o<br />

o<br />

o<br />

MERGE.<br />

RELEAS<br />

RUN<br />

SEGOP.<br />

COMMON PROGRAMMING ERRORS<br />

o<br />

o<br />

o<br />

Forgetting to save the acs over the GETSEG.<br />

Forgetting that channel 0 is destroyed.<br />

Forgetting that a GETSEG from a high .segment returns control<br />

to the PC in the new high segment.<br />

22-162

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

Saved successfully!

Ooh no, something went wrong!