TAL Reference Manual

Privileged Procedures
TAL Reference Manual526371-001
15-13
$SWITCHES Function
$SWITCHES Function
The $SWITCHES function returns the current content of the switch register.
Usage Considerations
For NonStop and TXP processors, the switch register stores the current setting of the
physical switches on the processor.
$SWITCHES is not portable to future software platforms.
Example of $SWITCHES Function
The following example stores the current content of the switch register into N:
INT n;
n := $SWITCHES;
TARGET Directive
The TARGET directive lets you specify the target system for conditional code. TARGET
works in conjunction with the IF and ENDIF directives. TARGET is a D20 or later
feature.
target-system
is the system for which conditional code is written. target-system can be one of:
ANY This value causes IF ANY conditional code to be compiled.
ANY specifies that the conditional code as written is not
system-dependent.
TNS_ARCH This value causes IF TNS_ARCH conditional code to be
compiled.
TNS_R_ARCH This value causes IF TNS_R_ARCH conditional code to be
compiled.
VST1509.vsd
$SWITCHES
VST1510.vsd
target-system
TARGET