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.

SAVE. [CALLI 2<strong>10</strong>]<br />

22 . 144 SA"\i~ • [CALLI 2<strong>10</strong>]<br />

FUNCTION<br />

Saves the program in memory as an executable (.EXE)<br />

This call i.s similar to the SAVE monitor command.<br />

CALLING SEC!UENCE<br />

file on<br />

disk.<br />

addr:<br />

~[OVE ac, [flag"addr]<br />

SAVE. ac,<br />

error return<br />

skip return<br />

..<br />

SIXBIT/device/<br />

SIXBIT/filename/<br />

SIXBIT/extension/<br />

E:XP °<br />

/ XWO proj,prog \<br />

I XWO 0"addr1 I<br />

\ XWO 0,0 /<br />

BLOCK °<br />

;or zero<br />

;PPN argument<br />

In the calling sequence, the program supplies the following variables:<br />

o fl~ is bit ° of the ac. When set, this bit (SS%SSH)<br />

indicates that the program should be saved with a sharable<br />

hi.gh segment (similar to SSAVE monitor command) .<br />

o<br />

addr is the address of the argument block, which is formatted<br />

lIke the ENTER argument block. See <strong>Volume</strong> 1, Chapter 11 for<br />

a description of ENTER/LOOKUP argument blocks.<br />

When the monitor returns control to<br />

monitor call, the accumulators are<br />

cleared.<br />

your program after a SAVE.<br />

overwritten and Channel 0 is<br />

Remember to leave addr+5 clear.<br />

SKIP RETURN<br />

The program in memory is written to disk in executable format. The<br />

contents of all accumulators may be changed; the new contents are not<br />

reliable and are subject to change from~one monitor release to the<br />

next. The SAVE. call releases channel ° implicitly.<br />

On any return from this call, if the left half of the return location<br />

contains H1~LT, the job is stopped and the appropriate error message is<br />

issued to the job.<br />

ERROR RETUHN<br />

If an error occurs in the process of executing the SAVE. call, the<br />

non-skip return is taken and an error code is returned in the ac.<br />

Refer to Section 11.14 for the list of error codes.<br />

The error return is taken if any errors are detected; the monitor<br />

returns an error code in the ac. Your program can attempt to recover<br />

from an error and continue theprogram's execution. If you set the<br />

left half of the error return location to a HALT, the monitor will not<br />

return to t:he program but will print an error message. Your terminal<br />

will be at monitor level.<br />

22-359

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

Saved successfully!

Ooh no, something went wrong!