Special variables -- $DEVICE


Introduced in the 1995 ANSI M[UMPS] language standard.

This variable provides information about the status of the current device.

The value of $DEVICE depends on the active mnemonicspace.

For the mnemonicspace "X3.64", the possible values are:

1 mnemonicspace not found
2 invalid controlmnemonic
3 parameter out of range
4 hardware error
5 controlmnemonic not available for this device
6 parameter not available for this device
7 attempt to move outside of boundary - not moved
8 attempt to move outside of boundary - moved to boundary
9 auxiliary device not ready

Approved for addition in a future ANSI M[UMPS] Language Standard.

The initial value of $DEVICE is implementation-dependent. However, if the initial value of $IO is the empty string, then the initial value of $DEVICE is also the empty string.

This document is © Ed de Moel, 1995-2005.
It is part of a book by Ed de Moel that is published under the title "M[UMPS] by Example" (ISBN 0-918118-42-5).
Printed copies of the book are no longer available.

This document describes the various special variables that are defined in the M[UMPS] language standard (ANSI X11.1, ISO 11756).

The information in this document is NOT authoritative and subject to be modified at any moment.
Please consult the appropriate (draft) language standard for an authoritative definition.

In this document, information is included that will appear in future standards.
The MDC cannot guarantee that these 'next' standards will indeed appear.