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.

MTAPE [OPCODE 072]<br />

22.91 MTAPE [OPCODE 072]<br />

FUNCTION<br />

Passes the monitor a code for an extended set of calls; these calls<br />

perform functions for magnetic tapes and are usually called MTAPEs.<br />

Use FILOP. or TAPOP. to perform magnetic tape functions on extended<br />

I/O channels.<br />

Each defined MTAPE code also has a symbolic name; in this chapter the<br />

MTAPEs are discussed ln alphabetical order by their names. For<br />

example, MTAPE 3 has the name MTEOF.; its function is discussed under<br />

the name MTEOF.<br />

Magtape I/O is described in Chapter 14.<br />

The MTAPEs are:<br />

MTWAT.<br />

MTREW.<br />

MTEOF.<br />

MTSKR.<br />

MTBSR.<br />

MTEOT.<br />

MTUNL.<br />

MTBLK.<br />

MTSKF.<br />

MTBSF.<br />

MTDEC.<br />

MTIND.<br />

MTLTH.<br />

[MTAPE 0]<br />

[MTAPE 1]<br />

[MTAPE 3]<br />

[MTAPE 6]<br />

[MTAPE 7]<br />

[MTAPE <strong>10</strong>]<br />

[MTAPE 11]<br />

[MTAPE 13]<br />

[MTAPE 16]<br />

[MTAPE 17]<br />

[MTAPE <strong>10</strong>0]<br />

[MTAPE <strong>10</strong>1]<br />

[MTAPE 200]<br />

After your program issues the MTAPE monitor call, the monitor waits<br />

for the magnetic tape to complete any action in progress. The monitor<br />

then clears bits 18-25 of the file status word, initiates the<br />

indicated MTAPE function, and returns control immediately to your<br />

program.<br />

The I/O service routine may be reading several blocks ahead of your<br />

program when performing I/O in buffered mode. The execution of the<br />

MTAPE monitor call affects only the physical position of the magnetic<br />

tape and does not change the data that has already been read into the<br />

buffer. Therefore, when your program issues either an IN, INPUT, OUT,<br />

or OUTPUT call after the MTAPE monitor call, the monitor may not<br />

retrieve the buffer containing the block requested. To guarantee that<br />

the requested block will be in the buffer, your program can set up a<br />

single buffer ring. with a single buffer ring the monitor is<br />

prohibited from reading ahead, and it stops the device after every IN,<br />

INPUT, OUT, or OUTPUT monitor call. Alternatively, your program can<br />

set bit 30 (IO.SYN) in the I/O status word. Setting this bit causes<br />

the monitor to stop the device after each buffer is filled on an IN,<br />

INPUT, OUT, OUTPUT, or FILOP. monitor call. Note that the<br />

FILOP. monitor call provides the functions of the MTAPE calls.<br />

22-240

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

Saved successfully!

Ooh no, something went wrong!