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.

SETSTS [OPCODE 060]<br />

22.153 SETSTS [OPCODE 060]<br />

FUNCTION<br />

Sets bits in the file status word for a device.<br />

a SETSTS for an extended I/O channel.<br />

Use FILOP. to perform<br />

CALLING SEQUENCE<br />

SETSTS<br />

return<br />

channo,bits<br />

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

o<br />

channo is the number of an initialized channel.<br />

o bits are I/O status bits. For a complete list of I/O status<br />

bits, see the appropriate device chapter in <strong>Volume</strong> 1.<br />

RETURN<br />

The I/O status bits are set.<br />

EXAMPLE<br />

RELATED CALLS<br />

GETSTS<br />

TRZ<br />

SETSTS<br />

CHN,Tl<br />

Tl,IO.ERR<br />

CHN, (Tl)<br />

;get status in Tl<br />

;keep mode and device-status<br />

;clear errors<br />

o<br />

o<br />

o<br />

o<br />

o<br />

CLRST.<br />

ERLST.<br />

FILOP.<br />

GETSTS<br />

SENSE.<br />

COMMON PROGRAMMING ERRORS<br />

1. If the SETSTS monitor call is done for a channel that has not<br />

been initialized, the monitor stops the job and prints:<br />

?IO to unassigned channel at user PC nnnnnn<br />

2. If the data mode is illegal for the device, the monitor<br />

prints:<br />

?Illegal data mode for device xxxnnn; UUO at user PC<br />

nnnnnn<br />

3. Forgetting that bits is an immediate argument, not an address<br />

as in GETSTS.<br />

22-385

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

Saved successfully!

Ooh no, something went wrong!