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.

LOOKUP [OPCODE 076]<br />

22.86 LOOKUP [OPCODE 076]<br />

FUNCTION<br />

Selects a file for input. Use FILOP. to pe~form a LOOKUP for an<br />

extended I/O channel. The LOOKUP call 1S meaningful only for<br />

directory devices (disk, DECtape, labelled magnetic tape), and for TSK<br />

devices (initiated for task-to-task communication). It is a no-op for<br />

other devices, always taking the skip return for these.<br />

CALLING SEQUENCE<br />

The LOOKUP monitor call, like the ENTER call, has two calling<br />

sequences: one using a 4-word argument list and one using an extended<br />

argument list. The argument lists for LOOKUP, ENTER, and RENAME UUOs<br />

are identical. These are described in Section 11.13. The four-word<br />

argument list is detailed in section 11.13.1. The extended argument<br />

list is described in Section 11.13.2.<br />

The calling sequence for the LOOKUP UUO is:<br />

LOOKUP channo,addr<br />

error return<br />

skip return<br />

In the call sequence, the program s'upplies the addr, which is the<br />

address of the argument list. R~fer to <strong>Volume</strong>--l-,-Section 11.13 for<br />

more information about the argument,list.<br />

SKIP RETURN<br />

For DECtape, the monitor returns a 4-word block at addr in the<br />

following form:<br />

Word<br />

o<br />

1<br />

Contents<br />

The SIXBIT file name.<br />

The extension, creation date, and first block number:<br />

Bits<br />

0-17<br />

18-20<br />

21-25<br />

26-35<br />

Contents<br />

The SIXBIT file extension.<br />

The high-order three bits of the file creation<br />

date.<br />

Reserved.<br />

The first physical (data) block number.<br />

2<br />

Remainder of creation date:<br />

Bits<br />

0-23<br />

24-35<br />

Contents<br />

Reserved.<br />

The low-order 12 bits of the file creation date.<br />

3<br />

Length and address of file:<br />

Bits<br />

0-17<br />

18-35<br />

Contents<br />

Negative of number of words in zero-compressed<br />

file.<br />

Address of word preceding the first word of the<br />

file.<br />

22-233

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

Saved successfully!

Ooh no, something went wrong!