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.

DEVSTS [CALLI 54]<br />

22.30 DEVSTS [CALLI 54]<br />

FUNCTION<br />

Returns the device status word from the device data block (DDB). This<br />

call returns the last CONI performed for the device, which is<br />

different for each device type and model. To interpret the device<br />

status word, refer to the hardware manual for the specific device.<br />

CALLING SEQUENCE<br />

/ MOVE ac, [SIXBIT/device/] \<br />

I MOVE I ac,channo I<br />

\ MOVEI ac,udx /<br />

DEVSTS ac,<br />

error return<br />

skip return<br />

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

o<br />

o<br />

o<br />

device is the SIXBIT physical or logical name of a device.<br />

channo is the number of a channel.<br />

udx is the Universal Device Index for a deviceJ<br />

You can specify any device on an I/O bus. Where multiple units are on<br />

a single controller, the status of the controller is returned.<br />

SKIP RETURN<br />

The device status word is returned in the ac. If the service routine<br />

for the device does not store a CON~ the returned word may be<br />

useless. Devices having both a controller and data interrupt store<br />

the controller CONI.<br />

ERROR RETURN<br />

If the device does not exist or is not initialized, the ac is cleared.<br />

RELATED CALLS<br />

o<br />

o<br />

o<br />

o<br />

o<br />

o<br />

o<br />

DEVCHR<br />

DEVLNM<br />

DEVNAM<br />

DEVOP.<br />

DEVPPN<br />

DEVSIZ<br />

DEVTYP<br />

The device status block is also returned by the .SNSDS function of the<br />

SENSE. UUO.<br />

22-68

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

Saved successfully!

Ooh no, something went wrong!