User:Chatul/sandbox/Registers

IBM documentation numbers the bits from high order to low order; the most significant (leftmost) bit is designated as bit number 0.

{| class="infobox" style="font-size:88%"
 * align="center" | IBM S/370 registers
 * style="border-style: none;" |
 * style="border-style: none;" |
 * style="border-style: none;" |
 * style="border-style: none;" |
 * style="border-style: none;" |
 * style="border-style: none;" |
 * style="border-style: none;" |
 * style="border-style: none;" |
 * style="border-style: none;" |
 * style="border-style: none;" |
 * style="border-style: none;" |

{| class="wikitable" style="font-size:75%" {| class="wikitable mw-collapsible autocollapse" ! style="width:10%; text-align:left;"| Bits ! style="width:10%; text-align:left;"| Field ! style="width:80%; text-align:left;"| Meaning 0=primary-space mode 1=Secondary-space mode
 * style="border-style: none;" |
 * style="border-style: none;" |
 * + Extended Architecture Extended Control mode PSW
 * 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 O
 * E X
 * colspan=4 | Key
 * 1
 * M
 * W
 * P
 * S
 * 0
 * colspan=2 | CC
 * colspan=4 | Program Mask
 * 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;"|
 * style="width:1%; text-align:left;  border-style: none  none  none  none;" |
 * style="width:1%; text-align: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;"|
 * colspan="34" style="border-style: none;"|
 * + S/370-XA EC mode PSW abbreviations
 * 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
 * W
 * Wait state
 * 15
 * P
 * Problem state
 * 16
 * S
 * Address-Space Control
 * S
 * Address-Space Control
 * 18-19
 * CC
 * Condition Code
 * 20-23
 * PM
 * 20-23
 * PM


 * 32
 * A
 * Addressing mode 0=24 bit; 1=31 bit
 * 33-63
 * IA
 * Instruction Address
 * }
 * }
 * style="border-style: none;" |
 * }
 * style="border-style: none;" |
 * }
 * }