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.

TMPCOR [CALLI 44]<br />

22.170 TMPCOR [CALLI 44]<br />

FUNCTION<br />

Creates, reads, writes, or manipulates temporary files left in core<br />

from the running of one program to another. Those files are<br />

referenced by a three-character file name. All files are deleted when<br />

the job is logged out. If the monitor call fails, your program should<br />

write DSK:nnnNAM.TMP, where nnn is the job number. This arrangement<br />

improves response time and minimizes the number of disk reads.<br />

CALLING SEQUENCE<br />

MOVE ac, [XWD fcncode,addr]<br />

TMPCOR ac,<br />

error return<br />

skip return<br />

addr:<br />

XWD<br />

IOWD<br />

'nam',O<br />

buflength,buffer<br />

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

o<br />

o<br />

o<br />

o<br />

o<br />

fcncode is one of the function codes described below.<br />

addr gives the address of the argument list.<br />

nam is a 3-character SIXBIT string that is the file name.<br />

buflength is the length of the buffer for the call.<br />

buffer gives the address of the buffer for the call.<br />

The function codes and their meanings are:<br />

Code<br />

°<br />

1<br />

2<br />

Symbol<br />

. TCRFS<br />

.TCRRF<br />

. TCRDF<br />

Function<br />

Obtains free space. For this function, set the ac<br />

to 0 before the call; no argument list IS<br />

required. On a skip return, the ac contains the<br />

number of free words available-to your program<br />

(5<strong>10</strong> decimal) .<br />

Reads a file. The length of the file is returned<br />

in the ac, and as much of the file as possible is<br />

copied into the buffer for the call. You can<br />

check for truncation by comparing the ac to<br />

buflength.<br />

The error return occurs if the specified file is<br />

not found; in this case, the number of free words<br />

available to your program is returned in the ac.<br />

Reads and deletes a file. Performs all the same<br />

functions as .TCRRF and in addition deletes the<br />

file. Note that the file is deleted even if it is<br />

too long to fit in the buffer for the call.<br />

22-436

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

Saved successfully!

Ooh no, something went wrong!