SETPSW - set switch word by bitwise OR.
Alternate Entry Name: SETSWH
Usage:
B:
newval = setpsw( bits1 [, bits2] );
C:
int setpsw(int bits1 [, int bits2] );
Where:
- bits1
- is a word containing the bits to be ORed into the first
switch word. The bits that are on in "bits1"
will be turned on in the first switch word.
- bits2
- is a word containing the bits to be ORed into the second
switch word. The bits that are on in "bits2"
will be turned on in the second switch word. If
"bits2" is not specified, the default is zero
and no bits are turned on in the second switch word.
- newval
- is the new value of the switch word. If only
"bits1" is supplied, "newval"
receives the value of the first switch word; otherwise,
"newval" receives the new value of the second
switch word.
Description:
SETPSW turns on specified bits in the Program Switch Words
(PSWs). Numbering left to right, bits 0 through 17 of the first
switch word should normally be left alone, since they are used by
supplied GCOS-8 software.
See Also:
expl b lib rstpsw
Copyright © 1996, Thinkage Ltd.