operand address, provided the clock is in the: set,
stopped, or not-set state.
The value of the clock is expressed as an un
signed, 64-bit fixed-point number. Zeros are stored
for the low-order bit positions that are not provided
by the clock.
When the clock is in the error state, the value
stored is unpredictable. When the clock is in the
not-operational state, zeros are stored at the oper
andlocation. The quality of the clock value stored by the in
struction is indicated by the resultant code
setting.
A serialization function is performed before the
value of the clock is fetched and again after the val
ue isplaced in main storage. CPU operation is de
layed until all previous accesses by thisCPU to main
storage have been completed, as observed by chan
nelsand other CPUs, and then the value of the clock
is No subsequent instructions or their oper
andsare fetched by this CPU until the clock value
has been placed in main storage, as observcd by
channels andCPUs. Condition Code:
o Clock in set state
1 Clock in not-set state
2 Clock in error state
3 Clock in stopped state or not-operational state
Program Exceptions:
Access (store, operand 2)
Programming Notes
Condition code0 normally indicates that the clock
has been set by the control program. Accordingly,
the value may be used in elapsed-time measurements
and asa valid time-of -day and calendar indication.
Condition code 1 indicates that the clock's value is
the elapsed time since the power for thecloek was
turned on. In this case the value may be used in
elapsed time measurements but is not a valid time
of -day indication. Condition codes 2 and 3 mean
that the value provided bySTORE CLOCK cannot
be used for time measurement or indication.
Condition code 3 indicates that the clock is either
in the stopped state or not-operational state.. These
two states can normally be distinguished since an
all-zero value is stored when in the not-operational
state.
Bit position 31 of the clock is incremented every
1.048576 seconds; hence, for timing applicationsinvolving human responses, the high-order clock
word may provide sufficient resolution.
142 System/370 Principles ofOperation To provide compatible operation from one system
to another requires the establishment of a standard
time origin, or epoch, that is, the calendar date and
time to which a clock value of zero corresponds.
January 1,1900,0 A.M. Greenwich Mean Time is
recommended as the standard epoch for the clock,
although some early support of theTOD clock is not
based on this epoch. A program using the clock's
value as a time-of-day and calendar indication may
have to be aware of the support under which it is
running. With the standard epoch, bit0 of the TOD clock turns on May 11, 1971 at 11:56:53.685248
A.M. GMT. Therefore, in most cases, the program
can test the high-order bit to determine if theTOD clock value is the standard epoch.
Because of the inaccuracies in setting the clock
value on the basis of a synchronization signal pro
vided by the operator, the low-order bit positions of
the clock, expressing fractions of seconds, normally
are not valid as indications of time of day. However,
they permit elapsed time measurements of high reso
lution.
Store Hal/wordSTH [RX] 40 R1
o 8 12 1620 31
The contents of bit positions 16-31 of the general
register designated by the Rl field are placed un
changed at the second-operand location. The second
operand is two bytes in length.
Condition Code:
The code remains unchanged.
Program Exceptions:
Access (store, operand 2)
Store MultipleSTM [RS] 90 o 8 12 16 20 31
The set of general registers starting with the register
specified by Rl and ending with the register speci
fied by R3 is stored at the locations designated by
the second-operand address.
stopped, or not-set state.
The value of the clock is expressed as an un
signed, 64-bit fixed-point number. Zeros are stored
for the low-order bit positions that are not provided
by the clock.
When the clock is in the error state, the value
stored is unpredictable. When the clock is in the
not-operational state, zeros are stored at the oper
and
struction is indicated by the resultant
setting.
A serialization function is performed before the
value of the clock is fetched and again after the val
ue is
layed until all previous accesses by this
storage have been completed, as observed by chan
nels
is
ands
has been placed in main storage, as observcd by
channels and
o Clock in set state
1 Clock in not-set state
2 Clock in error state
3 Clock in stopped state or not-operational state
Program Exceptions:
Access (store, operand 2)
Programming Notes
Condition code
has been set by the control program. Accordingly,
the value may be used in elapsed-time measurements
and as
Condition code 1 indicates that the clock's value is
the elapsed time since the power for the
turned on. In this case the value may be used in
elapsed time measurements but is not a valid time
of -day indication. Condition codes 2 and 3 mean
that the value provided by
be used for time measurement or indication.
Condition code 3 indicates that the clock is either
in the stopped state or not-operational state
two states can normally be distinguished since an
all-zero value is stored when in the not-operational
state.
Bit position 31 of the clock is incremented every
1.048576 seconds; hence, for timing applications
word may provide sufficient resolution.
142 System/370 Principles of
to another requires the establishment of a standard
time origin, or epoch, that is, the calendar date and
time to which a clock value of zero corresponds.
January 1,
recommended as the standard epoch for the clock,
although some early support of the
based on this epoch. A program using the clock's
value as a time-of-day and calendar indication may
have to be aware of the support under which it is
running. With the standard epoch, bit
A.M. GMT. Therefore, in most cases, the program
can test the high-order bit to determine if the
Because of the inaccuracies in setting the clock
value on the basis of a synchronization signal pro
vided by the operator, the low-order bit positions of
the clock, expressing fractions of seconds, normally
are not valid as indications of time of day. However,
they permit elapsed time measurements of high reso
lution.
Store Hal/word
o 8 12 16
The contents of bit positions 16-31 of the general
register designated by the Rl field are placed un
changed at the second-operand location. The second
operand is two bytes in length.
Condition Code:
The code remains unchanged.
Program Exceptions:
Access (store, operand 2)
Store Multiple
The set of general registers starting with the register
specified by Rl and ending with the register speci
fied by R3 is stored at the locations designated by
the second-operand address.