may be necessary that a program, which is not aware
of the present status, disable program-event record­
ing for a few instructions.
Store Then OR System Mask STOSM [SI] _1 2 ------,----S, ""::-::--1 _D 1 . :=J o 8 16 20 31
Bits 0-7 of the current PSW are stored at the first­
operand location. Then the contents of bit positions 0- 7 of the current PSW are replaced by the logical
sum (OR) of their original contents and the second
operand.
The value to be loaded into the PSW is not
checked for validity before loading. However, im­
mediately after loading, a specification exception is
recognized, and a program interruption occurs, if the CPU is in the EC mode and the contents of bit posi­
tions 0 and 2-4 of the PSW are not all zeros. In this
case, the instruction is completed, and the
instruction-length code is set to 2.
The operation is suppressed on prote9tion and
addressing exceptions.
Condition Code: The code remains unchangcd.
Program Exceptions:
Operation (if the translation feature is not in-
stalled) Privileged operation
Access (store, operand 1)
Specification
Programming Note
The STORE THEN OR SYSTEM MASK instruc­
tion permits the program to turn on selected bits in
the system mask while retaining the original contents
for later restoration. For example, in EC mode the
program may desire to enable the CPU for I/O in­
terruptions and yet may not know the current status
of the external-mask bit.
114 System/370 Principles of Operation
Write Direct
WRD Dt (Bt),I2 [SI]
84 I2 I B, I D, 0 8 16 20 31
The byte at the location designated by the operand
address is made available as a set of direct-out static
signals. Eight instruction bits are made available as
signal-out timing signals.
The eight data bits of the bytc fetched from stor­
age are presented on a set of eight direct-out lines as
static signals. These signals remain until the next
WRITE DIRECT is executed. No checking bits are
presented with the eight data bits.
The contents of the h field are made available
simultaneously on a set of eight signal-out lines as
0.5-microsecond to 1.0-microsecond timing signals. On a ninth line (write out), a 0.5-microsecond to
1.0-microsecond timing signal is made available con­
currently with these timing signals. The eight signal­
out lines are also used in READ DIRECT. No
checking bits are made available with the eight in­
struction bits.
A serialization function is performed before the
operand is fetched and again after the signals have
been presented. CPU operation is delayed until all I previous accesses by this CPU to main storage have
been completed, as observed by channels and other CPUs, and then the first operand byte is fetched and
the signals made available. No subsequent instruc- I tions or their operands are fetched by this CPU until
the signals have been made available.
Condition Code: The code remains unchanged. Program Exceptions:
Operation (if the direct-control feature is not
installed)
Privileged operation
Access (fetch, operand 1) I
Data Format.
Number Representation. Instructions .
ADD.
ADD HALFWORD ADD LOGICAL. AND.
BRANCH AND LINI< BRANCH ON CONDITION BRANCH ON COUNT .
BRANCH ON INDEX HIGH Contents
BRANCH ON INDEX LOW OR EQUAL. COMPARE . COMPARE AND SWAP COMPARE DOUBLE AND SWAP COMPARE HALFWORD . COMPARE LOGICAL . COMPARE LOGICAL CHARACTERS UNDER MASK COMPARE LOGICAL LONG. CONVERT TO BINARY . CONVERT TO DECIMAL. DIVIDE . EXCLUSIVE OR EXECUTE INSERT CHARACTER INSERT CHARACTERS UNDER MASK LOAD LOAD ADDRESS . LOAD AND TEST . LOAD COMPLEMENT. LOAD HALFWORD LOAD MULTIPLE . LOAD NEGATIVE. LOAD POSITIVE MONITOR CALL MOVE MOVE LONG MOVE NUMERICS. MOVE WITH OFFSET. MOVE ZONES . MULTIPLY. MULTIPLY HALFWORD OR PACK. SET PROGRAM MASK SHIFT LEFT DOUBLE SHIFT LEFT DOUBLE LOGICAL SHIFT LEFT SINGLE. SHIFT LEFT SINGLE LOGICAL SHIFT RIGHT DOUBLE . SHIFT RIGHT DOUBLE LOGICAL SHIFT RIGHT SINGLE SHIFT RIGHT SINGLE LOGICAL STORE . STORE CHARACTER. STORE CHARACTERS UNDER MASK. STORE CLOCK. STORE HALFWORD .
General Instructions · 116 · 116 · 117 · 117 · 117 · 120 · 120 · 121 · 121 · 122 · 122 · 123 · 123 · 123 · 124 · 125 · 125 · 126 · 126 · 127 · 128 · 128 · 128 · 129 · 130 · 130 · 130 · 131 · 131 · 131 · 131 · 132 · 132 · 132 · 132 · 133 · 133 · 135 · 135 · 136 · 136 · 136 · 137 · 137 · 138 · 138 · 139 · 139 139 · 140 · 140 · 140 141
141
141
141
141
142
General Instructions 115
Previous Page Next Page