Program status word
{{Refimprove|date=August 2011}}
The program status word{{efn|The nomenclature varies among architectures.}} (PSW) is a register that performs the function of a status register and program counter, and sometimes more. The term is also applied to a copy of the PSW in storage. This article only discusses the PSW in the IBM System/360{{sfn|S360}} and its successors,{{sfn|S370}}{{sfn|S370-XA}}{{sfn|S370-ESA}}{{sfn|S390-ESA}}{{sfn|z}} and follows the IBM convention of numbering bits starting with 0 as the leftmost (most significant) bit.
Although certain fields within the PSW may be tested or set by using non-privileged instructions, testing or setting the remaining fields may only be accomplished by using privileged instructions.
Contained within the PSW are the two bit condition code, representing zero, positive, negative, overflow, and similar flags of other architectures' status registers. Conditional branch instructions test this encoded as a four bit value, with each bit representing a test of one of the four condition code values, 23 + 22 + 21 + 20. (Since IBM uses big-endian bit numbering, mask value 8 selects code 0, mask value 4 selects code 1, mask value 2 selects code 2, and mask value 1 selects code 3.)
The 64-bit PSW describes (among other things)
- Interrupt masks
- Privilege states
- Condition code
- Instruction address
In the early instances of the architecture (System/360 and early System/370), the instruction address was 24{{efn|However, a 360/67{{sfn|func67}} equipped with the Extended Dynamic Address Translation{{sfn|func67|loc=[http://bitsavers.org/pdf/ibm/360/funcChar/GA27-2719-2_360-67_funcChar.pdf#page=57 Glossary]|p=57}}
feature has a 32-bit mode selected by bit 4 of the PSW{{sfn|func67|loc=[http://bitsavers.org/pdf/ibm/360/funcChar/GA27-2719-2_360-67_funcChar.pdf#page=15 Instruction Fetching and Execution]|p=15}} in Extended PSW mode{{sfn|func67|loc=[http://bitsavers.org/pdf/ibm/360/funcChar/GA27-2719-2_360-67_funcChar.pdf#page=57 Glossary]|p=57}} (Control Register 6, bit 8{{sfn|func67|loc=[http://bitsavers.org/pdf/ibm/360/funcChar/GA27-2719-2_360-67_funcChar.pdf#page=16 Table 4. Control Registers]|p=16}}).}} bits; in later instances (XA/370), the instruction address was 31 bits plus a mode bit (24 bit addressing mode if zero; 31 bit addressing mode if one) for a total of 32 bits.
In the present instances of the architecture (z/Architecture), the instruction address is 64 bits and the PSW itself is 128 bits.
The PSW may be loaded by the LOAD PSW instruction (LPSW or LPSWE). Its contents may be examined with the Extract PSW instruction (EPSW).
Format
=S/360=
On all but 360/20,{{efn|Despite the name, the 350/20 does not adhere to the S/360 architecture.}} the PSW has the following formats. S/360 Extended PSW format only applies to the 360/67 with bit 8 of control register 6 set.
class="wikitable"
|+ IBM S/360 PSW formats |
style="border-style: none;" |
{| class="wikitable" style="font-size:75%" |+ S/360 Standard PSW{{sfn|S360|loc=[http://bitsavers.org/pdf/ibm/360/princOps/A22-6821-7_360PrincOpsDec67.pdf#page=16 Program Status Word]|p=15}} |
colspan=34 style="border-style: none;" | |
style="width:.5%; text-align:left; border-style: none none none none;" |
| colspan=8 | System Mask | colspan=4 | Key | A | M | W | P | colspan=16 | Interruption Code{{sfn|S360|loc=[http://bitsavers.org/pdf/ibm/360/princOps/A22-6821-7_360PrincOpsDec67.pdf#page15 Interruption]|pp=15-16}} | style="width:.5%; text-align:left; border-style: none none none none;" | |
style="width:.5%; text-align:left; border-style: none none none none;" |
| style="width:1%; text-align:left; border-style: none none none none;" | 0 | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:right; border-style: none none none none;" | 7 | style="width:1%; text-align:left; border-style: none none none none;" | 8 | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:right; border-style: none none none none;" | 11 | style="width:1%; text-align:left; border-style: none none none none;" | 12 | style="width:1%; text-align:left; border-style: none none none none;" | 13 | style="width:1%; text-align:left; border-style: none none none none;" | 14 | style="width:1%; text-align:left; border-style: none none none none;" | 15 | style="width:1%; text-align:left; border-style: none none none none;" | 16 | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:right; border-style: none none none none;" | 31 | style="width:.5%; text-align:left; border-style: none none none none;" | |
style="border-style:none;" | |
style="width:.5%; text-align:left; border-style: none none none none;" |
| colspan=2 | ILC | colspan=2 | CC | colspan=4 | Program | colspan=24 | Instruction Address |
style="width:.5%; text-align:left; border-style: none none none none;" |
| style="width:1%; text-align:left; border-style: none none none none;" | 32 | style="width:1%; text-align:right; border-style: none none none none;" | 33 | style="width:1%; text-align:left; border-style: none none none none;" | 34 | style="width:1%; text-align:right; border-style: none none none none;" | 35 | style="width:1%; text-align:left; border-style: none none none none;" | 36 | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:right; border-style: none none none none;" | 39 | style="width:1%; text-align:left; border-style: none none none none;" | 40 | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:right; border-style: none none none none;' | 63 | style="width:.5%; text-align:left; border-style: none none none none;" | |
colspan="34" style="border-style: none;"|
{| class="wikitable mw-collapsible autocollapse" |+ {{nowrap|S/360 Standard PSW abbreviations}} |
style="width:10%; text-align:left;"| Bits
! style="width:10%; text-align:left;"| Field ! style="width:80%; text-align:left;"| Meaning |
---|
0-7
| SM | {| class="wikitable mw-collapsible autocollapse" |+ style="text-align: left;" | {{nowrap|System Mask}} ! Bit ! Meaning |
0
| Channel 0 mask |
1
| Channel 1 mask |
2
| Channel 2 mask |
3
| Channel 3 mask |
4
| Channel 4 mask |
5
| Channel 5 mask |
6
| Channel 6 mask |
7
| External Mask |
|-
| 8-11
| Key
| PSW key
|-
| 12
| A
| ASCII
|-
| 13
| M
| Machine-check mask
|-
| 14
| W
| Wait state
|-
| 15
| P
| Problem state
|-
| 16-31
| IC
| Interruption Code{{sfn|S370|loc=[http://bitsavers.org/pdf/ibm/360/princOps/A22-6821-7_360PrincOpsDec67.pdf#page=16 Interruption]|pp=15-16}}
|-
| 32-33
| ILC
| Instruction-Length Code{{sfn|S370|loc=[http://bitsavers.org/pdf/ibm/360/princOps/A22-6821-7_360PrincOpsDec67.pdf#page=177 Instruction-Length Code]|p=156}}
|-
| 34-35
| CC
| Condition Code
|-
| 36-39
| PM
|
class="wikitable mw-collapsible autocollapse"
|+ style="text-align: left;" | {{nowrap|Program Mask}} ! Bit ! Meaning |
36
| Fixed-point overflow |
37
| Decimal overflow |
38
| Exponent underflow |
39
| Significance |
|-
| 40-63
| IA
| Instruction Address
|}
|}
|-
| style="border-style: none;" |
class="wikitable" style="font-size:75%"
|+ S/360 Extended PSW{{sfn|func67|loc=[http://bitsavers.org/pdf/ibm/360/funcChar/GA27-2719-2_360-67_funcChar.pdf#page=15 Instruction Fetching and Execution]|pp=15-16}} |
colspan=34 style="border-style: none;" | |
style="width:.5%; text-align:left; border-style: none none none none;" |
| colspan=4 | spare | 24/32 | Tran | I/O | Ext. | colspan=4 | Key | A | M | W | P | colspan=2 | ILC | colspan=2 | CC | colspan=4 | Program | colspan=8 | spare | style="width:.5%; text-align:left; border-style: none none none none;" | |
style="width:.5%; text-align:left; border-style: none none none none;" |
| style="width:1%; text-align:left; border-style: none none none none;" | 0 | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | 3 | style="width:1%; text-align:left; border-style: none none none none;" | 4 | style="width:1%; text-align:left; border-style: none none none none;" | 5 | style="width:1%; text-align:left; border-style: none none none none;" | 6 | style="width:1%; text-align:left; border-style: none none none none;" | 7 | style="width:1%; text-align:left; border-style: none none none none;" | 8 | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:right; border-style: none none none none;" | 11 | style="width:1%; text-align:left; border-style: none none none none;" | 12 | style="width:1%; text-align:left; border-style: none none none none;" | 13 | style="width:1%; text-align:left; border-style: none none none none;" | 14 | style="width:1%; text-align:left; border-style: none none none none;" | 15 | style="width:1%; text-align:left; border-style: none none none none;" | 16 | style="width:1%; text-align:right; border-style: none none none none;" | 17 | style="width:1%; text-align:left; border-style: none none none none;" | 18 | style="width:1%; text-align:right; border-style: none none none none;" | 19 | style="width:1%; text-align:left; border-style: none none none none;" | 20 | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:right; border-style: none none none none;" | 23 | style="width:1%; text-align:left; border-style: none none none none;" | 24 | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:right; border-style: none none none none;" | 31 | style="width:.5%; text-align:left; border-style: none none none none;" | |
style="border-style:none;" | |
style="width:.5%; text-align:left; border-style: none none none none;" |
| colspan=32 | Instruction Address |
style="width:.5%; text-align:left; border-style: none none none none;" |
| style="width:1%; text-align:left; border-style: none none none none;" | 32 | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:right; border-style: none none none none;' | 63 | style="width:.5%; text-align:left; border-style: none none none none;" | |
colspan="34" style="border-style: none;"|
{| class="wikitable mw-collapsible autocollapse" |+ {{nowrap|S/360 Extended PSW abbreviations}} |
style="width:10%; text-align:left;"| Bits
! style="width:10%; text-align:left;"| Field ! style="width:80%; text-align:left;"| Meaning |
---|
0-3
| | Spare (must be 0) |
4
| | 24/32-bit Address mode |
5
| | Translation Control |
6
| IO | I/O Mask (Summary) |
7
| EX | External Mask (Summary) |
8-11
| Key | Protection Key |
12
| A | ASCII |
13
| M | Machine-check mask |
14
| W | Wait state |
15
| P | Problem state |
16-17
| ILC | Instruction-Length Code{{sfn|S360|loc=[http://bitsavers.org/pdf/ibm/360/princOps/A22-6821-7_360PrincOpsDec67.pdf#page=177 Instruction-Length Code]|p=156}} |
18-19
| CC | Condition Code |
20-23
| PM | {| class="wikitable mw-collapsible autocollapse" |+ style="text-align: left;" | {{nowrap|Program Mask}} ! Bit ! Meaning |
20
| Fixed-point overflow |
21
| Decimal overflow |
22
| Exponent underflow |
23
| Significance |
|-
| 24-31
|
| Spare
|-
| 32-63
| IA
| Instruction Address
|}
|}
|}
=S/370=
class="wikitable"
|+ IBM S/370 PSW formats |
style="border-style: none;" |
{| class="wikitable" style="font-size:75%" |+ S/370 Basic Control mode PSW{{sfn|S370|loc=[http://bitsavers.org/pdf/ibm/370/princOps/GA22-7000-10_370_Principles_of_Operation_Sep87.pdf#page=81 Program-Status Word Format in BC Mode]|pp=4-8{{snd}}4-9}} |
colspan=34 style="border-style: none;" | |
style="width:.5%; text-align:left; border-style: none none none none;" |
| colspan=6 |Chan. | I | E | colspan=4 | Key | 0 | M | W | P | colspan=16 | Interruption Code | style="width:.5%; text-align:left; border-style: none none none none;" | |
style="width:.5%; text-align:left; border-style: none none none none;" |
| style="width:1%; text-align:left; border-style: none none none none;" | 0 | style="width:1%; text-align:left; border-style: none none none none;" | 1 | style="width:1%; text-align:left; border-style: none none none none;" | 2 | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:right; border-style: none none none none;" | 4 | style="width:1%; text-align:left; border-style: none none none none;" | 5 | style="width:1%; text-align:left; border-style: none none none none;" | 6 | style="width:1%; text-align:left; border-style: none none none none;" | 7 | style="width:1%; text-align:left; border-style: none none none none;" | 8 | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:right; border-style: none none none none;" | 11 | style="width:1%; text-align:left; border-style: none none none none;" | 12 | style="width:1%; text-align:left; border-style: none none none none;" | 13 | style="width:1%; text-align:left; border-style: none none none none;" | 14 | style="width:1%; text-align:left; border-style: none none none none;" | 15 | style="width:1%; text-align:left; border-style: none none none none;" | 16 | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:right; border-style: none none none none;" | 31 | style="width:.5%; text-align:left; border-style: none none none none;" | |
style="border-style:none;" | |
style="width:.5%; text-align:left; border-style: none none none none;" |
| colspan=2 | ILC | colspan=2 | CC | colspan=4 | Program | colspan=24 | Instruction Address |
style="width:.5%; text-align:left; border-style: none none none none;" |
| style="width:1%; text-align:left; border-style: none none none none;" | 32 | style="width:1%; text-align:right; border-style: none none none none;" | 33 | style="width:1%; text-align:left; border-style: none none none none;" | 34 | style="width:1%; text-align:right; border-style: none none none none;" | 35 | style="width:1%; text-align:left; border-style: none none none none;" | 36 | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:right; border-style: none none none none;" | 39 | style="width:1%; text-align:left; border-style: none none none none;" | 40 | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:right; border-style: none none none none;' | 63 | style="width:.5%; text-align:left; border-style: none none none none;" | |
colspan="34" style="border-style: none;"|
{| class="wikitable mw-collapsible autocollapse" |+ {{nowrap|S/370 BC mode PSW abbreviations}} |
style="width:10%; text-align:left;"| Bits
! style="width:10%; text-align:left;"| Field ! style="width:80%; text-align:left;"| Meaning |
---|
0-5
| | Channel Masks for channels 0-5 |
6
| IO | I/O Mask for channels > 5 |
7
| EX | External Mask |
8-11
| Key | PSW key |
12
| E=0 | Basic Control mode |
13
| M | Machine-check mask |
14
| W | Wait state |
15
| P | Problem state |
16-31
| IC | Interruption Code{{sfn|S370|loc=[http://bitsavers.org/pdf/ibm/370/princOps/GA22-7000-10_370_Principles_of_Operation_Sep87.pdf#page=154 Interruption Action]|pp=6-3{{snd}}6-5}} |
32-33
| ILC | Instruction-Length Code{{sfn|S370|loc=[http://bitsavers.org/pdf/ibm/370/princOps/GA22-7000-10_370_Principles_of_Operation_Sep87.pdf#page=158 Instruction-Length Code]|pp=6-7{{snd}}6-9}} |
34-35
| CC | Condition Code |
36-39
| PM | {| class="wikitable mw-collapsible autocollapse" |+ style="text-align: left;" | {{nowrap|Program Mask}} ! Bit ! Meaning |
36
| Fixed-point overflow |
37
| Decimal overflow |
38
| Exponent underflow |
39
| Significance |
|-
| 40-63
| IA
| Instruction Address
|}
|}
|-
| style="border-style: none;" |
class="wikitable" style="font-size:75%"
|+ S/370 Extended Control mode PSW{{sfn|S370|loc=[http://bitsavers.org/pdf/ibm/370/princOps/GA22-7000-10_370_Principles_of_Operation_Sep87.pdf#page=79 Program-Status Word Format in EC Mode]|pp=4-6{{snd}}4-7}} |
colspan=34 style="border-style: none;" | |
style="width:.5%; text-align:left; border-style: none none none none;" |
| 0 | R | style="border-style: solid none solid solid" | 0 | style="border-style: solid none solid" | 0 | style="border-style: solid solid solid none" | 0 | T | I | E | colspan=4 | Key | 1 | M | W | P | S | 0 | colspan=2 | CC | colspan=4 | Program | style="border-style: solid none solid solid;" | 0 | style="border-style: solid none solid;" | 0 | style="border-style: solid none solid;" | 0 | style="border-style: solid none solid;" | 0 | style="border-style: solid none solid;" | 0 | style="border-style: solid none solid;" | 0 | style="border-style: solid none solid;" | 0 | style="border-style: solid solid solid none;" | 0 | style="width:.5%; text-align:left; border-style: none none none none;" | |
style="width:.5%; text-align:left; border-style: none none none none;" |
| style="width:1%; text-align:left; border-style: none none none none;" | 0 | style="width:1%; text-align:left; border-style: none none none none;" | 1 | style="width:1%; text-align:left; border-style: none none none none;" | 2 | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:right; border-style: none none none none;" | 4 | style="width:1%; text-align:left; border-style: none none none none;" | 5 | style="width:1%; text-align:left; border-style: none none none none;" | 6 | style="width:1%; text-align:left; border-style: none none none none;" | 7 | style="width:1%; text-align:left; border-style: none none none none;" | 8 | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:right; border-style: none none none none;" | 11 | style="width:1%; text-align:left; border-style: none none none none;" | 12 | style="width:1%; text-align:left; border-style: none none none none;" | 13 | style="width:1%; text-align:left; border-style: none none none none;" | 14 | style="width:1%; text-align:left; border-style: none none none none;" | 15 | style="width:1%; text-align:left; border-style: none none none none;" | 16 | style="width:1%; text-align:right; border-style: none none none none;" | 17 | style="width:1%; text-align:left; border-style: none none none none;" | 18 | style="width:1%; text-align:right; border-style: none none none none;" | 19 | style="width:1%; text-align:left; border-style: none none none none;" | 20 | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:right; border-style: none none none none;" | 23 | style="width:1%; text-align:left; border-style: none none none none;" | 24 | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:right; border-style: none none none none;" | 31 | style="width:.5%; text-align:left; border-style: none none none none;" | |
style="border-style:none;" | |
style="width:.5%; text-align:left; border-style: none none none none;" |
| style="border-style: solid none solid solid;" | 0 | style="border-style: solid none solid;" | 0 | style="border-style: solid none solid;" | 0 | style="border-style: solid none solid;" | 0 | style="border-style: solid none solid;" | 0 | style="border-style: solid none solid;" | 0 | style="border-style: solid none solid;" | 0 | style="border-style: solid solid solid none;" | 0 | colspan=24 | Instruction Address |
style="width:.5%; text-align:left; border-style: none none none none;" |
| style="width:1%; text-align:left; border-style: none none none none;" | 32 | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:right; border-style: none none none none;" | 39 | style="width:1%; text-align:left; border-style: none none none none;" | 40 | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:right; border-style: none none none none;' | 63 | style="width:.5%; text-align:left; border-style: none none none none;" | |
colspan="34" style="border-style: none;"|
{| class="wikitable mw-collapsible autocollapse" |+ {{nowrap|S/370 EC mode PSW abbreviations}} |
style="width:10%; text-align:left;"| Bits
! style="width:10%; text-align:left;"| Field ! style="width:80%; text-align:left;"| Meaning |
---|
1
| R | PER Mask |
5
| T | DAT mode |
6
| IO | I/O Mask; subject to channel mask in CR2 |
7
| EX | External Mask; subject to external subclass mask in CR0 |
8-11
| Key | PSW key |
12
| E=1 | Extended Control mode |
13
| M | Machine-check mask |
14
| W | Wait state |
15
| P | Problem state |
16
| S | Address-Space Control |
18-19
| CC | Condition Code |
20-23
| PM | {| class="wikitable mw-collapsible autocollapse" |+ style="text-align: left;" | {{nowrap|Program Mask}} ! Bit ! Meaning |
20
| Fixed-point overflow |
21
| Decimal overflow |
22
| Exponent underflow |
23
| Significance |
|-
| 40-63
| IA
| Instruction Address
|}
|}
|}
=S/370 Extended Architecture (S/370-XA)=
class="wikitable"
|+ IBM Extended Architecture (XA) PSW format |
style="border-style: none;" |
{| class="wikitable" style="font-size:75%" |+ Extended Architecture Extended Control mode PSW{{sfn|S370-XA|loc=[http://bitsavers.org/pdf/ibm/370/princOps/SA22-7085-1_370-XA_Principles_of_Operation_Jan87.pdf#page=76 Program-Status-Word Format]|p=4-5}} |
colspan=34 style="border-style: none;" | |
style="width:.5%; text-align:left; border-style: none none none none;" |
| 0 | R | style="border-style: solid none solid solid" | 0 | style="border-style: solid none solid" | 0 | style="border-style: solid solid solid none" | 0 | T | I | E | colspan=4 | Key | 1 | M | W | P | S | 0 | colspan=2 | CC | colspan=4 | Program | style="border-style: solid none solid solid;" | 0 | style="border-style: solid none solid;" | 0 | style="border-style: solid none solid;" | 0 | style="border-style: solid none solid;" | 0 | style="border-style: solid none solid;" | 0 | style="border-style: solid none solid;" | 0 | style="border-style: solid none solid;" | 0 | style="border-style: solid solid solid none;" | 0 | style="width:.5%; text-align:left; border-style: none none none none;" | |
style="width:.5%; text-align:left; border-style: none none none none;" |
| style="width:1%; text-align:left; border-style: none none none none;" | 0 | style="width:1%; text-align:left; border-style: none none none none;" | 1 | style="width:1%; text-align:left; border-style: none none none none;" | 2 | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:right; border-style: none none none none;" | 4 | style="width:1%; text-align:left; border-style: none none none none;" | 5 | style="width:1%; text-align:left; border-style: none none none none;" | 6 | style="width:1%; text-align:left; border-style: none none none none;" | 7 | style="width:1%; text-align:left; border-style: none none none none;" | 8 | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:right; border-style: none none none none;" | 11 | style="width:1%; text-align:left; border-style: none none none none;" | 12 | style="width:1%; text-align:left; border-style: none none none none;" | 13 | style="width:1%; text-align:left; border-style: none none none none;" | 14 | style="width:1%; text-align:left; border-style: none none none none;" | 15 | style="width:1%; text-align:left; border-style: none none none none;" | 16 | style="width:1%; text-align:right; border-style: none none none none;" | 17 | style="width:1%; text-align:left; border-style: none none none none;" | 18 | style="width:1%; text-align:right; border-style: none none none none;" | 19 | style="width:1%; text-align:left; border-style: none none none none;" | 20 | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:right; border-style: none none none none;" | 23 | style="width:1%; text-align:left; border-style: none none none none;" | 24 | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:right; border-style: none none none none;" | 31 | style="width:.5%; text-align:left; border-style: none none none none;" | |
style="border-style:none;" | |
style="width:.5%; text-align:left; border-style: none none none none;" |
| A | colspan=31 | Instruction Address |
style="width:.5%; text-align:left; border-style: none none none none;" |
| style="width:1%; text-align:left; border-style: none none none none;" | 32 | style="width:1%; text-align:left; border-style: none none none none;" | 33 | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:right; border-style: none none none none;' | 63 | style="width:.5%; text-align:left; border-style: none none none none;" | |
colspan="34" style="border-style: none;"|
{| class="wikitable mw-collapsible autocollapse" |+ {{nowrap|S/370-XA EC mode PSW abbreviations}} |
style="width:10%; text-align:left;"| Bits
! style="width:10%; text-align:left;"| Field ! style="width:80%; text-align:left;"| Meaning |
---|
1
| R | PER Mask |
5
| T | DAT mode |
6
| IO | I/O Mask; subject to channel mask in CR2 |
7
| EX | External Mask; subject to external subclass mask in CR0 |
8-11
| Key | PSW key |
12
| E=1 | Extended Control mode |
13
| M | Machine-check mask |
14
| W | Wait state |
15
| P | Problem state |
16
| S | Address-Space Control |
18-19
| CC | Condition Code |
20-23
| PM | {| class="wikitable mw-collapsible autocollapse" |+ style="text-align: left;" | {{nowrap|Program Mask}} ! Bit ! Meaning |
20
| Fixed-point overflow |
21
| Decimal overflow |
22
| Exponent underflow |
23
| Significance |
|-
| 32
| A
| Addressing mode
0=24 bit; 1=31 bit
|-
| 33-63
| IA
| Instruction Address
|}
|}
|}
=Enterprise Systems Architecture (ESA)=
class="wikitable"
|+ IBM Enterprise Systems Architecture (ESA) PSW format |
style="border-style: none;" |
{| class="wikitable" style="font-size:75%" |+ Enterprise Systems Architecture Extended Control mode PSW{{sfn|S370-ESA|loc=[http://bitsavers.org/pdf/ibm/370/princOps/SA22-7200-0_370-ESA_Principles_of_Operation_Aug88.pdf#page=82 Program-Status-Word Format]|p=4-5}}{{sfn|S390-ESA|loc=[http://publibz.boulder.ibm.com/epubs/pdf/dz9ar008.pdf#page=115 Program-Status-Word Format]|p=4-5}} |
colspan=34 style="border-style: none;" | |
style="width:.5%; text-align:left; border-style: none none none none;" |
| 0 | R | style="border-style: solid none solid solid" | 0 | style="border-style: solid none solid | 0 | style="border-style: solid solid solid none" | 0 | T | I | E | colspan=4 | Key | 1 | M | W | P | colspan=2 | AS | colspan=2 | CC | colspan=4 | Program | style="border-style: solid none solid solid;" | 0 | style="border-style: solid none solid;" | 0 | style="border-style: solid none solid;" | 0 | style="border-style: solid none solid;" | 0 | style="border-style: solid none solid;" | 0 | style="border-style: solid none solid;" | 0 | style="border-style: solid none solid;" | 0 | style="border-style: solid solid solid none;" | 0 | style="width:.5%; text-align:left; border-style: none none none none;" | |
style="width:.5%; text-align:left; border-style: none none none none;" |
| style="width:1%; text-align:left; border-style: none none none none;" | 0 | style="width:1%; text-align:left; border-style: none none none none;" | 1 | style="width:1%; text-align:left; border-style: none none none none;" | 2 | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:right; border-style: none none none none;" | 4 | style="width:1%; text-align:left; border-style: none none none none;" | 5 | style="width:1%; text-align:left; border-style: none none none none;" | 6 | style="width:1%; text-align:left; border-style: none none none none;" | 7 | style="width:1%; text-align:left; border-style: none none none none;" | 8 | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:right; border-style: none none none none;" | 11 | style="width:1%; text-align:left; border-style: none none none none;" | 12 | style="width:1%; text-align:left; border-style: none none none none;" | 13 | style="width:1%; text-align:left; border-style: none none none none;" | 14 | style="width:1%; text-align:left; border-style: none none none none;" | 15 | style="width:1%; text-align:left; border-style: none none none none;" | 16 | style="width:1%; text-align:right; border-style: none none none none;" | 17 | style="width:1%; text-align:left; border-style: none none none none;" | 18 | style="width:1%; text-align:right; border-style: none none none none;" | 19 | style="width:1%; text-align:left; border-style: none none none none;" | 20 | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:right; border-style: none none none none;" | 23 | style="width:1%; text-align:left; border-style: none none none none;" | 24 | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:right; border-style: none none none none;' | 31 | style="width:.5%; text-align:left; border-style: none none none none;" | |
style="border-style:none;" | |
style="width:.5%; text-align:left; border-style: none none none none;" |
| A | colspan=31 | Instruction Address |
style="width:.5%; text-align:left; border-style: none none none none;" |
| style="width:1%; text-align:left; border-style: none none none none;" | 32 | style="width:1%; text-align:left; border-style: none none none none;" | 33 | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:right; border-style: none none none none;' | 63 | style="width:.5%; text-align:left; border-style: none none none none;" | |
colspan="34" style="border-style: none;"|
{| class="wikitable mw-collapsible autocollapse" |+ {{nowrap|ESA EC mode PSW abbreviations}} |
style="width:10%; text-align:left;"| Bits
! style="width:10%; text-align:left;"| Field ! style="width:80%; text-align:left;"| Meaning |
---|
1
| R | PER Mask |
5
| T | DAT mode |
6
| IO | I/O Mask; subject to channel mask in CR2 |
7
| EX | External Mask; subject to external subclass mask in CR0 |
8-11
| Key | PSW key |
12
| E=1 | Extended Control mode |
13
| M | Machine-check mask |
14
| W | Wait state |
15
| P | Problem state |
16-17
| AS | Address-Space Control |
18-19
| CC | Condition Code |
20-23
| PM | {| class="wikitable mw-collapsible autocollapse" |+ style="text-align: left;" | {{nowrap|Program Mask}} ! Bit ! Meaning |
20
| Fixed-point overflow |
21
| Decimal overflow |
22
| Exponent underflow{{efn|Bit 22 is renamed as HFP exponent underflow in ESA/390}} |
23
| Significance{{efn|Bit 23 is renamed as HFP significance in ESA/390}} |
|-
| 32
| A
| Addressing mode
0=24 bit; 1=31 bit
|-
| 33-63
| IA
| Instruction Address
|}
|}
|}
=z/Architecture=
class="wikitable"
|+ IBM z/Architecture PSW formats |
style="border-style: none;" |
{| class="wikitable" style="font-size:75%" |+ z/Architecture long PSW{{sfn|z|loc=[https://publibfp.dhe.ibm.com/epubs/pdf/a227832d.pdf#page=205 Program-Status-Word Format]|pp=4-5–4-8}} |
colspan=34 style="border-style: none;" | |
style="width:.5%; text-align:left; border-style: none none none none;" |
| 0 | R | style="border-style: solid none solid solid" | 0 | style="border-style: solid none solid | 0 | style="border-style: solid solid solid none" | 0 | T | I | E | colspan=4 | Key | 0 | M | W | P | colspan=2 | AS | colspan=2 | CC | colspan=4 | Program | R | style="border-style: solid none solid solid" | 0 | style="border-style: solid none solid | 0 | style="border-style: solid none solid | 0 | style="border-style: solid none solid | 0 | style="border-style: solid none solid | 0 | style="border-style: solid solid solid none" | 0 | E | style="width:.5%; text-align:left; border-style: none none none none;" | |
style="width:.5%; text-align:left; border-style: none none none none;" |
| style="width:1%; text-align:left; border-style: none none none none;" | 0 | style="width:1%; text-align:left; border-style: none none none none;" | 1 | style="width:1%; text-align:left; border-style: none none none none;" | 2 | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:right; border-style: none none none none;" | 4 | style="width:1%; text-align:keft; border-style: none none none none;" | 5 | style="width:1%; text-align:left; border-style: none none none none;" | 6 | style="width:1%; text-align:left; border-style: none none none none;" | 7 | style="width:1%; text-align:left; border-style: none none none none;" | 8 | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:right; border-style: none none none none;" | 11 | style="width:1%; text-align:left; border-style: none none none none;" | 12 | style="width:1%; text-align:left; border-style: none none none none;" | 13 | style="width:1%; text-align:left; border-style: none none none none;" | 14 | style="width:1%; text-align:left; border-style: none none none none;" | 15 | style="width:1%; text-align:left; border-style: none none none none;" | 16 | style="width:1%; text-align:right; border-style: none none none none;" | 17 | style="width:1%; text-align:left; border-style: none none none none;" | 18 | style="width:1%; text-align:right; border-style: none none none none;" | 19 | style="width:1%; text-align:left; border-style: none none none none;" | 20 | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:right; border-style: none none none none;" | 23 | style="width:1%; text-align:left; border-style: none none none none;" | 24 | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:right; border-style: none none none none;" | 30 | style="width:1%; text-align:left; border-style: none none none none;" | 31 | style="width:.5%; text-align:left; border-style: none none none none;" | |
style="border-style:none" | |
style="width:.5%; text-align:left; border-style: none none none none;" |
| B | colspan=31 | 0 | style="width:.5%; text-align:left; border-style: none none none none;" | |
style="width:.5%; text-align:left; border-style: none none none none;" |
| style="width:1%; text-align:left; border-style: none none none none;" | 32 | style="width:1%; text-align:left; border-style: none none none none;" | 33 | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:right; border-style: none none none none;" | 63 | style="width:.5%; text-align:left; border-style: none none none none;" | |
style="border-style:none" | |
style="width:.5%; text-align:left; border-style: none none none none;" |
| colspan=32 | Instruction Address | style="width:.5%; text-align:left; border-style: none none none none;" | |
style="width:.5%; text-align:left; border-style: none none none none;" |
| style="width:1%; text-align:left; border-style: none none none none;" | 64 | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:right; border-style: none none none none;" | 95 | style="width:.5%; text-align:left; border-style: none none none none;" | |
style="border-style:none" | |
style="width:.5%; text-align:left; border-style: none none none none;" |
| colspan=32 | Instruction Address (Continued) | style="width:.5%; text-align:left; border-style: none none none none;" | |
style="width:.5%; text-align:left; border-style: none none none none;" |
| style="width:1%; text-align:left; border-style: none none none none;" | 96 | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:right; border-style: none none none none;' | 127 | style="width:.5%; text-align:left; border-style: none none none none;" | |
colspan="34" style="border-style: none;"|
{| class="wikitable mw-collapsible autocollapse" |+ {{nowrap|Long PSW abbreviations}} |
style="width:10%; text-align:left;"| Bits
! style="width:10%; text-align:left;"| Field ! style="width:80%; text-align:left;"| Meaning |
---|
1
| R | PER Mask |
5
| T | DAT mode |
6
| IO | I/O mask |
7
| EX | External Mask |
8-11
| Key | PSW key |
12
| E=0 | Must be zero for LPSWE |
13
| M | Machine-check mask |
14
| W | Wait state |
15
| P | Problem state |
16-17
| AS | Address-Space Control |
18-19
| CC | Condition Code |
20-23
| PM | {| class="wikitable mw-collapsible autocollapse" |+ style="text-align: left;" | {{nowrap|Program Mask}} ! Bit ! Meaning |
20
| Fixed-point overflow |
21
| Decimal overflow |
22
| HFP Exponent underflow |
23
| HFP Significance |
|-
| 24
| RI
| Reserved for IBM
|-
| 31
| EA
| Extended Addressing mode
0=defined by BA below; 1=64-bit, BA must be zero
|-
| 32
| BA
| Basic Addressing mode
0=24 or 64; 1=31
|-
| 64-127
| IA
| Instruction Address
|}
|}
|-
| style="border-style: none;" |
|-
| style="border-style: none;" |
class="wikitable" style="font-size:75%"
|+ z/Architecture short PSW{{sfn|z|loc=[http://publibfp.boulder.ibm.com/epubs/pdf/a227832c.pdf#p=202 Short PSW Format]|p=4-8}} |
colspan=34 style="border-style: none;" | |
style="width:.5%; text-align:left; border-style: none none none none;" |
| 0 | R | style="border-style: solid none solid solid" | 0 | style="border-style: solid none solid | 0 | style="border-style: solid solid solid none" | 0 | T | I | E | colspan=4 | Key | 1 | M | W | P | colspan=2 | AS | colspan=2 | CC | colspan=4 | Program | R | style="border-style: solid none solid solid;" | 0 | style="border-style: solid none solid;" | 0 | style="border-style: solid none solid;" | 0 | style="border-style: solid none solid;" | 0 | style="border-style: solid none solid;" | 0 | style="border-style: solid solid solid none;" | 0 | E | style="width:.5%; text-align:left; border-style: none none none none;" | |
style="width:.5%; text-align:left; border-style: none none none none;" |
| style="width:1%; text-align:left; border-style: none none none none;" | 0 | style="width:1%; text-align:left; border-style: none none none none;" | 1 | style="width:1%; text-align:left; border-style: none none none none;" | 2 | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:right; border-style: none none none none;" | 4 | style="width:1%; text-align:left; border-style: none none none none;" | 5 | style="width:1%; text-align:left; border-style: none none none none;" | 6 | style="width:1%; text-align:left; border-style: none none none none;" | 7 | style="width:1%; text-align:left; border-style: none none none none;" | 8 | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:right; border-style: none none none none;" | 11 | style="width:1%; text-align:left; border-style: none none none none;" | 12 | style="width:1%; text-align:left; border-style: none none none none;" | 13 | style="width:1%; text-align:left; border-style: none none none none;" | 14 | style="width:1%; text-align:left; border-style: none none none none;" | 15 | style="width:1%; text-align:left; border-style: none none none none;" | 16 | style="width:1%; text-align:right; border-style: none none none none;" | 17 | style="width:1%; text-align:left; border-style: none none none none;" | 18 | style="width:1%; text-align:right; border-style: none none none none;" | 19 | style="width:1%; text-align:left; border-style: none none none none;" | 20 | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:right; border-style: none none none none;" | 23 | style="width:1%; text-align:left; border-style: none none none none;" | 24 | style="width:1%; text-align:left; border-style: none none none none;" | 25 | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:right; border-style: none none none none;" | 30 | style="width:1%; text-align:left; border-style: none none none none;" | 31 | style="width:.5%; text-align:left; border-style: none none none none;" | |
style="border-style:none;" | |
style="width:.5%; text-align:left; border-style: none none none none;" |
| B | colspan=31 | Instruction Address |
style="width:.5%; text-align:left; border-style: none none none none;" |
| style="width:1%; text-align:left; border-style: none none none none;" | 32 | style="width:1%; text-align:left; border-style: none none none none;" | 33 | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | | style="width:1%; text-align:left; border-style: none none none none;" | 63 | style="width:.5%; text-align:left; border-style: none none none none;" | |
colspan="34" style="border-style: none;"|
{| class="wikitable mw-collapsible autocollapse" |+ {{nowrap|Short PSW abbreviations}} |
style="width:10%; text-align:left;"| Bits
! style="width:10%; text-align:left;"| Field ! style="width:80%; text-align:left;"| Meaning |
---|
1
| R | PER Mask |
5
| T | DAT mode |
6
| IO | I/O mask |
7
| EX | External Mask |
8-11
| Key | PSW key |
12
| E=1 | Must be one for LPSW |
13
| M | Machine-check mask |
14
| W | Wait state |
15
| P | Problem state |
16-17
| AS | Address-Space Control |
18-19
| CC | Condition Code |
20-23
| PM | {| class="wikitable mw-collapsible autocollapse" |+ style="text-align: left;" | {{nowrap|Program Mask}} ! Bit ! Meaning |
20
| Fixed-point overflow |
21
| Decimal overflow |
22
| HFP Exponent underflow |
23
| HFP Significance |
|-
| 24
| RI
| Reserved for IBM
|-
| 31
| EA
| Extended Addressing mode
0=defined by BA below; 1=64-bit, BA must be zero
|-
| 32
| BA
| Basic Addressing mode
0=24 or 64; 1=31
|-
| 33-63
| IA
| Instruction Address
|}
|}
|}
Notes
{{Notelist}}
References
;S360
:{{cite manual
| title = IBM System/360 Principles of Operation
| edition = Eighth
| date = September 1968
| url = http://bitsavers.org/pdf/ibm/360/princOps/A22-6821-7_360PrincOpsDec67.pdf
| id = A22-6821-7
| ref = {{sfnref|S360}}
| publisher = IBM
}}
;func67
:{{Cite manual
| title = IBM System/360 Model 67 Functional Characteristics
| id = GA27-2719-2
| date = February 1972
| edition = Third
| ref = {{sfnref|func67}}
| url = http://bitsavers.org/pdf/ibm/360/functional_characteristics/GA27-2719-2_360-67_funcChar.pdf
| publisher = IBM
}}
;S370
:{{cite manual
| title = IBM System/370 Principles of Operation
| id = A22-7000-10
| date = September 1987
| edition = Eleventh
| url = http://bitsavers.org/pdf/ibm/370/princOps/GA22-7000-10_370_Principles_of_Operation_Sep87.pdf
| ref = {{sfnref|S370}}
| publisher = IBM
}}
;S370-XA
:{{cite manual
| title = IBM System/370 Extended Architecture Principles of Operation
| id = SA22-7085-1
| date = January 1987
| edition = Second
| url = http://bitsavers.org/pdf/ibm/370/princOps/SA22-7085-1_370-XA_Principles_of_Operation_Jan87.pdf
| ref = {{sfnref|S370-XA}}
| publisher = IBM
}}
;S370-ESA
:{{cite manual
| title = IBM Enterprise Systems Architecture/370 Principles of Operation
| id = SA22-7200-0
| date = August 1988
| edition = First
| url = http://bitsavers.org/pdf/ibm/370/princOps/SA22-7200-0_370-ESA_Principles_of_Operation_Aug88.pdf
| ref = {{sfnref|S370-ESA}}
| publisher = IBM
}}
;z
:{{cite manual
| title = z/Architecture Principles of Operation
| edition = Fourteenth
| date = May 2022
| url = https://publibfp.dhe.ibm.com/epubs/pdf/a227832d.pdf
| id = SA22-7832-13
| ref = {{sfnref|z}}
| publisher = IBM
}}
{{DEFAULTSORT:Status Register}}