Programming Notes
The exeeution of LPSW,SSM, STNSM, and STOSM is on an addressing or protection excep
tion, and hence the program oldPSW provides in
formation concerning the program causing the ex
ception.
When the first halfword of an instruction can be
fetched but an access exception is recognized on
fetchingthe second or third halfword, the
instruction-length code is not necessarily related to
theoperation code. I If the new PSW introduced by an interruption
contains a format error, a series of interruptions
occurs.See the section "Priority of Interruptions" in
the chapter "Interruptions."
Control Registers
The control registers provide a means for maintain
ing and manipulating control information that re
sides outside thePSW. The addressing structure provides for sixteen 32-
bit registers for control purposes. These registers are
not part of addressable storage. The instructionLOAD CONTROL provides a means for loading
control information from main storage into control
registers, whereasSTORE CONTROL permits in
formation to be transferred from control registers to
main storage. These instructions operate in a manner
similar toLOAD MULTIPLE and STORE MULTI
PLE.One or more specific bit positions in control regis
ters areassigned to each facility such regis
ter space. When the facility and the associated reg-
36 System/370 Principles ofOperation ister positions are installed, the bit performs the indi
cated control function, andSTORE CONTROL returns the information placed in the register posi
tion byLOAD CONTROL or on reset. When STORE CONTROL is executed, the value corre
sponding to the unassigned register positions is un
predictable.
At the time the registers are loaded, the informa
tion is not checked for exceptions, such as invalid
segment-size or page-size code or an address desig
nating an unavailable or a protected location. The
validity of the information is checked and the excep
tions, if any, are indicated at the time the informa
tion is used.Only the general structure of control registers is
described here; a definition of the meaning of regis
terpOSitions appears with the description of the fa
cility with which the register position is associated. A
summary of control register allocation appears in the
table "Assignment of Control Register Fields." This
table shows the facility with which the field is associ
ated and the initial value placed in the field upon
execution of reset.
Programming Note
To ensure that presently written programs run if and
when new facilities using additional control register
positions are installed, only zeros should be loaded
in unassigned control register positions. Similarly,
although on some CPUsSTORE CONTROL may
provide zeros in the bit positions corresponding to
the unassigned register positions, the program should
not depend on such zeros being provided.
The exeeution of LPSW,
tion, and hence the program old
formation concerning the program causing the ex
ception.
When the first halfword of an instruction can be
fetched but an access exception is recognized on
fetching
instruction-length code is not necessarily related to
the
contains a format error, a series of interruptions
occurs.
the chapter "Interruptions."
Control Registers
The control registers provide a means for maintain
ing and manipulating control information that re
sides outside the
bit registers for control purposes. These registers are
not part of addressable storage. The instruction
control information from main storage into control
registers, whereas
formation to be transferred from control registers to
main storage. These instructions operate in a manner
similar to
PLE.
ters are
ter space. When the facility and the associated reg-
36 System/370 Principles of
cated control function, and
tion by
sponding to the unassigned register positions is un
predictable.
At the time the registers are loaded, the informa
tion is not checked for exceptions, such as invalid
segment-size or page-size code or an address desig
nating an unavailable or a protected location. The
validity of the information is checked and the excep
tions, if any, are indicated at the time the informa
tion is used.
described here; a definition of the meaning of regis
ter
cility with which the register position is associated. A
summary of control register allocation appears in the
table "Assignment of Control Register Fields." This
table shows the facility with which the field is associ
ated and the initial value placed in the field upon
execution of reset.
Programming Note
To ensure that presently written programs run if and
when new facilities using additional control register
positions are installed, only zeros should be loaded
in unassigned control register positions. Similarly,
although on some CPUs
provide zeros in the bit positions corresponding to
the unassigned register positions, the program should
not depend on such zeros being provided.