The operation is suppressed on all
addressing and protection exceptions.Condition Code: unchanged.
The code remains
Program Exceptions:
Access (fetch, operand 2)
Addressing (new prefix area)
Operation (if the multiprocessing
facility is not installed)
Privileged operation
Specification
SETPSW KEY FROM ADDRESS
SPKA [S]'B20A' o 16 20 31
The four-bitPSW key, bits 8-11 of the
currentPSW, is replaced by bits 24-27
of the second-operand address.
The second-operand address is not used
to address data; instead, bits of
the address form the newPSW key. Bits
8-23 and 28-31 of the second-operand
address are ignored.
Special Conditions
In the problem state, when DAS is
installed, the execution of the instruc
tion is subject to control by the PSW
key mask in control register 3. When
the bit in the PSW-key mask correspond
ing to the PSW-key value to be set is
one, the instruction is executed
successfully. When the selected bitin the PSW-key mask is zero, a privileged
operation exception ;s recognized. When
DAS is not installed, execution of the
instruction in the problem state results
in a privileged-operation exception
regardless of the contents of control
register 3. In the supervisor state,
any value for thePSW key is valid. Condition Code: The
unchanged.
Program Exceptions:
code remains
Operation (if the PSW-key-handling
facility is not installed)
Privileged operation (executed in
the problem state, and either
DAS is not installed or
selected PSW-key-mask bit is
zero)
Programming 1. The format of SET PSW KEY FROM ADDRESS permits the program to set
thePSW key either from the general
register designated by the B2 field
or from theD2 field in the
instruction itself.
2. When one program requests another
program to access a location desig
nated by the requesting program,SET PSW KEY FROM ADDRESS can be
used by the called program to veri
fy that the requesting program is
authorized to make this access,
provided the storage location of
the called program is not protected
against fetching. The called
program can perform the verifica
tion by replacing the PSW key with
the requesting-program PSW key
before making the access and subse
quently restoring the called
program PSW key to its original
value.Caution must be exercised,
however, in handling any resulting
protection exceptions since such
exceptions may cause the operation
to be terminated. See TESTPROTECTION and the associated
programming notes for an alterna
tive approach to the testing of
addresses passed by a calling
program.
SETSECONDARY ASN SSAR Rt [RRE]
'B225'
o 16 24 28 31
TheASH specified in bit positions 16-31
of general register Rt replaces the
secondary ASN in control register 3, and
the segment-table designation corre
sponding to that ASN replaces the SSTD
in control register 7.
Bits 16-23 and 28-31 of the instruction
are ignored.
The contents of bit positions 16-31 of
general register Rt are called the newASN. The contents of bit positions 0-15 of the register are ignored.
First the new ASN is compared with the
current PASN. If the new ASN is equal
to the PASN, the operation is called SETSECONDARY ASN to current primary
(SSAR-cp). If the new ASN is not equal
to the current PASN, the operation is
called SETSECONDARY ASN with space
switching (SSAR-ss). The SSAR-cp and
SSAR-ss operations are depicted in the
figure "Execution ofSET SECONDARY ASN." Chapter 10. Control Instructions 10-41
addressing and protection exceptions.
The code remains
Program Exceptions:
Access (fetch, operand 2)
Addressing (new prefix area)
Operation (if the multiprocessing
facility is not installed)
Privileged operation
Specification
SET
SPKA [S]
The four-bit
current
of the second-operand address.
The second-operand address is not used
to address data; instead, bits
the address form the new
8-23 and 28-31 of the second-operand
address are ignored.
Special Conditions
In the problem state, when DAS is
installed, the execution of the instruc
tion is subject to control by the PSW
key mask in control register 3. When
the bit in the PSW-key mask correspond
ing to the PSW-key value to be set is
one, the instruction is executed
successfully. When the selected bit
operation exception ;s recognized. When
DAS is not installed, execution of the
instruction in the problem state results
in a privileged-operation exception
regardless of the contents of control
register 3. In the supervisor state,
any value for the
unchanged.
Program Exceptions:
code remains
Operation (if the PSW-key-handling
facility is not installed)
Privileged operation (executed in
the problem state, and either
DAS is not installed or
selected PSW-key-mask bit is
zero)
Programming
the
register designated by the B2 field
or from the
instruction itself.
2. When one program requests another
program to access a location desig
nated by the requesting program,
used by the called program to veri
fy that the requesting program is
authorized to make this access,
provided the storage location of
the called program is not protected
against fetching. The called
program can perform the verifica
tion by replacing the PSW key with
the requesting-program PSW key
before making the access and subse
quently restoring the called
program PSW key to its original
value.
however, in handling any resulting
protection exceptions since such
exceptions may cause the operation
to be terminated. See TEST
programming notes for an alterna
tive approach to the testing of
addresses passed by a calling
program.
SET
'B225'
o 16 24 28 31
The
of general register Rt replaces the
secondary ASN in control register 3, and
the segment-table designation corre
sponding to that ASN replaces the SSTD
in control register 7.
Bits 16-23 and 28-31 of the instruction
are ignored.
The contents of bit positions 16-31 of
general register Rt are called the new
First the new ASN is compared with the
current PASN. If the new ASN is equal
to the PASN, the operation is called SET
(SSAR-cp). If the new ASN is not equal
to the current PASN, the operation is
called SET
switching (SSAR-ss). The SSAR-cp and
SSAR-ss operations are depicted in the
figure "Execution of