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.

CLRST. [CALLI 134]<br />

22.13 CLRST. [CALLI 134]<br />

FUNCTION<br />

Clears or sets the I/O status bits for a device. This enables your<br />

program to continue after an I/O error has occurred. The CLRST. UUO<br />

functions like SETSTS, taking the list of devices and I/O status bits<br />

for each device, with the additional ability to specify devices not<br />

explicitly OPENed on an I/O channel.<br />

You can examine the current setting of the I/O status bits by<br />

the SENSE. monitor call.<br />

using<br />

CALLING SEQUENCE<br />

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

CLRST. ac,<br />

error return<br />

skip return<br />

..<br />

/ SIXBIT/device/ \<br />

addr: I EXP channo I<br />

\ EXP udx /<br />

addr+l: XWD O,setsts-value<br />

/ SIXBIT/device/ \<br />

addr+2: I EXP channo I<br />

\ EXP udx /<br />

addr+3: XWD O,setsts-value<br />

In the calling sequence, you can supply the following information:<br />

o<br />

len is the length of the argument list.<br />

o addr is the address of the argument list, containing one or<br />

more 2-word entries. Each two-word entry contains the<br />

following information:<br />

o In the first word of the pair (.CLRSX), store<br />

specification, in the form of a SIXBIT device name,<br />

a channel number, or the device udx.<br />

a device<br />

channo as<br />

o In the second word of the pair (.CLRST), store the<br />

setsts-value, or the halfword value of the I/O status nits<br />

for the given device, channel, or udx. This word specifies<br />

the new settings for the I/O status bits.<br />

Your program can clear the I/O status bits for more than one<br />

The argument block contains a 2-word entry for each device.<br />

device.<br />

For a complete list of I/O status bits, see Chapter 11. Each type of<br />

device has a unique set of I/O status bits, which are described in the<br />

chapter about the appropriate device.<br />

SKIP RETURN<br />

The I/O status bits for each specified device are cleared or set as<br />

specified.<br />

22-27

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

Saved successfully!

Ooh no, something went wrong!