Rxl Op Code
I
R 1I
X2I
B2 D2REGISTER REGISTER ADDRESS OF 1
0 71B 1112 15 116 1920 OPERAND 1 OPERAND 3 OPERAND 2
I I
RS I Op Code
I
RlI
R3I
B2I
02IMMEDIATE ADDRESS OF
1
0 718 1112 15116 1920
OPERAND OPERAND 1
SI I Op Code
I
12I
BlI
Dl[
0 78 15[16 1920
ADDRESS OF OPERAND 1
lop
CodeI
Bl Dl1
0
I
15 116 1920LENGTH LENGTH ADDRESS OF OPERfND 1 OPER~ND 2 OPERAND 1 SS I Op Code
I
LlI
L2/13I
B I O I1
0 718 11 12 15 116 1920 ADDRESS OF
LENGTH OPERAND 1
SS I Op Code
I I
B 1I
Dlo
7 B 15 16 19201-12
THIRD HALFWORD 3
ADDRESS OF OPERAND 2
I
B2I
D2 31132 35 36ADDRESS OF OPERAND 2
I
B2I
D2 31 32 3536I
47
)
)
)
CONTROL REGISTER ALLOCATION
0 1 2 3
SYSTEM CONTR
I
TRANSL CONTR LEXTERNAL INTERRUPTION MASKS SEGM TBL LENGTHI
SEGMENT TABLE ORIGIN ADDRESSI
CHANNEL MASKS
I
MONITOR MASKSASSIGNMENT OF CONTROL REGISTER FIELDS
CR Bits Name of Field 0 0 Block-Multiplexing Control 0 1 SSM-Suppression Control
9 0 Successful-Branching-Event Mask 9 1 Instruction-Fetching-Event Mask 9 2 Storage-Alternation-Event Mask 9 3 GR-Alternation-Event Mask 9 16-31 PER* General-Register Masks 14 5 Degradation-Report Mask 14 6 External-Damage-Report Mask 14 7 Warning Mask
Associated with Block·Multiplexing Channels SET System Mask Dynamic Addr. Translation Dynamic Addr. Translation Dynamic Addr. Translation Clock Comparator CPU Timer Interval Timer I nterrupt Key External Signal Channels Monitor Call Program-Event Recording Program-Event Recording Program-Event Recording Program-Event-Recording Program-Event-Recording Program-Event Recording Program-Event Recording Machine Check Handling Machine Check Handling Machine Check Handling Machine-Check Handling Machine-Cheek Handling Machine-Check Handling Machine-Cheek Handling Machine-Cheek-Handling
PERMANENT MAIN STORAGE ASSIGNMENT Storage Lac
Byte Byte
I
ByteI
ByteHex Dec
0 0 Restart New PSW (lPL PSW)
4 4
8 8 Restart Old PSW (lPL CCWll
C 12
10 16 IIPL CCW21
14 20
18 24 External Old PSW lC 28
20 32 Supervisor Call Old PSW 24 36
28 40 Program Old PSW 2C 44
30 48 Machine Check Old PSW 34 52
38 56 Input/Output Old PSW 3C 60
40 64 Channel Status Word 44 68
48 72 Channel Address Word 4C 76
50 80 Interval Timer 54 84
58 88 External New PSW 5C 92
60 96 Supervisor Call New PSW 64 100
68 104 Program New PSW 6C 108
70 112 Machine Check New PSW 74 116
78 120 Input/Output New PSW 7C 124
80 128
84 132
o
0 0 0 0 0 0 0 0 0 0 0 0 0 001
External Interruption Code 88 136 00 0 0a
0 0 0 0 0 0 0o]ILclolsvc
Interruption Code 8C 140a a
0 0 0 0 0a
0 0 0 0 alllelO/Program Interruption Code 90 144 0 0 0 0 0 0 0 0 ACCESS Exception Address94 148 0 0 0 0 0 0 0 0 Monitor Class # [PER Code [ 0 0 0 0 0 0 0 0 0 0 0 0 98 152 0 0 0 0 0 0 0 0 PER Address
9C 156 0 0 0 0 0 0 0 0 Monitor Code AO 160
A4 164 A8 168 Channel ID AC 172 Reserved
1-14
PERMANENT MAIN STORAGE ASSIGNMENT I ••• Cont'd) Storage.Lac
Byte
I
ByteI
.ByteI
Byte.Hex Dec
BO 176 Limited Chan~el Logout B4 180
B8 184 100 00 0 OOOlliDAddress
Bf
1ye
Zero if an 1/0 Address is stored here I1
I
I .
212
D4
08 216 CPU-Timer Save Area DC 220
EO 224 Clack-Comparator Save Area E4 228
E8 232 Machine Check Interruption Code EC 236
FO 240 F4 244
F8 248
o
0 0 0 0 0 0 0I
Failing Storage Address F9 292 AeservedHie
348160 352 Floating Point Register Save Area
1 I
I I I I 17C 360
180 364 General Register Save Area
I I
I I
I I
lBC 444
lCO 448 Control Register Save Area
1 I
I I
1 I
lFC 508
)
1·15
PROGRAM STATUS WORD (EC·model I/O interrupt mask External interrupt mask KEY
Always one in EC mode Machine check mask Wait state
Fixed-point overflow mask Decimal overflow mask Exponent underflow mask Significance mask
*Alwayszero
*Alwayszera Instruction address.
*If not zero a Specification Exeption is recognized
**Only used in /370 mode PROGRAM STATUS WORD (BC-mode)
32 34 36 40 Channell mask Channel 2 mask Channel 3 mask Channel 4 mask Channel 5 mask Mask for channel 6 and up External interrupt mask Protection key Always
a
in BC mode Machine check maskINTERRUPTION CODE
INSTRUCTION ADDRESS
Bit Description
14 Wait state
15 Problem state
16-31 Interruption code 32·33 I nstruction length code 34-35 Condition code 36}
{F;Xed.po;nt o",flow mask 37 Prog. Decimal overflow mask 38 mask Exponent underflow mask 39 Significance mask 40·63 I nstruction address
1·16
63
31
63
CHANNEL ADDRESS WORD ICAW} IX'48'}
3 4 7 B 15 16 23 24
K,y
I
0 0 0 0!
Command AddressCHANNEL COMMAND WORD ICCW}
7 B 15 16 23 24
Command Code Data Address
32 37 38 40 47 4B 55 56
Flags Ignored Byte Count
Flags Bit Description
32 CD-bit (80) : causes use of address portion of next CCW 33 CC-bit (40)
34 SLI-bit (20) 35 Skip bit (10) 36 PCIM lOB}
37 IDA-bit (04)
: cuases use of command code and data address of next CCW : causes suppression of possible incorrect length indication : suppresses transfer of information to main storage : causes a channel Program Controlled Interruption : specifies indirect data addressing (only /370 mode) CHANNEL STATUS WORD ICSW} IX'40'}
o
3 4 5 6 7 8 1516 2324!
K,yH+c!
Command Address32 39 40 47 48 55 56
Byte Count
Status
Bit Description Bit Description
31
31
63
31
63
5 Logout pending 40 10080) Program controlled interruption 6,7 Deferred condo code 41 10040} Incorrect length
32 IBOOO} Attention 42 10020) Program check 33 (4000) Status Modifier 43 10010} Protection check 34 12000} Control unit end 44 10008) Channel data check 35 11000) Busy 45 10004) Channe~ control check 36 10BOO) Channel end 46 10002) I nterface control check 37 10400} Device end 47 10001) Chaining check 38 10200) Unit check
39 10100) Unit exception
Byte count: Bits 4B-63 form the residual count for the last CCW used.
1-17
I
LIMITED CHANNEL LOGOUT IX'BO')
Detect Bit Description
CPU Channel Storage control Storage
Field Validity Flags Bit Description 19 Sequence code 20 Unit status 21 CCW address and key 22 Channel address 23 Device address
Source Bit Description 8 CPU 9 Channel 10 Storage control 11 Storage 12 Control unit TT (Type of termination) Bit Description 24-25
Interface disconnect Stop, stack or normal Selective reset Reserved A (bit 28): I/O error alert Seq (bits 29·31): Sequence code MACHINE CHECK INTERRUPTION CODE IX'ES')
8 9 1516 181920
32 3940
0 0 0 0 0 0 0 0 0 0 0 0 0 0 Me Conditions
Bit Description System damage Instr. proc'g damage System recovery Bit Description 20 PSW bits 12·15 21 PSW masks and key 22 Program mask and condo code 23 Instruction address 24 Failing storage address 25 Region code
Bit Description 15 Delayed Stg error Bit Description 16 Storage error uncorrected 18 Storage-key error uncorrected
Bit Description 27 Floating·point registers 28 General registers 29 Control registers 30 CPU exten~ed logout 31 Storage logical 46 CPU Timer 47 Clock comparator
1-18
31
63
CODES FOR PROGRAM INTERRUPTION IX'BE')
Interruption Program Interruption Interruption Program Interruption
Code Cause Code Cause
Dec Hex Dec Hex
1 0001 Operation 12 OOOC Exponent overflow
2 0002 Privileged operation 13 0000 Exponent underflow
3 0003 Execute 14 OOOE Significance
4 0004 Protection 15 OOOF Floating point divide
5 0005 Addressing 16 0010 Segment translation*
6 0006 Specification 17 0011 Page translation*
7 0007 Data 18 0012 Translation specification*
8 0008 Fixed-point overflow 19 0013 Special operation 9 0009 Fixed-point divide 24 0018 Page access
CODES FOR EXTERNAL INTERRUPTlONS IX'86') Interruption Code External Interruption
(Hex) Cause
Indication of Concurrent Condition by Bit Positions 0080 Interval timer
0040 Interrupt key 0020 External signal 2 1004 Clock comparator
1005 CPU timer
CODES FOR INPUT/OUTPUT INTERRUPTIONS IX'BA') Interruption Code I nput/Output Interruption
(Hex) Cause
CODES FOR SUPERVISOR CALL INTERRUPTIONS IX'SA') Supervisor Call Interruption
Cause
Instruction (OA) Note: r = R 1 and R2 field of SUPERVISOR CALL