IBM System/360 .................................................................. ..
General-Purpose Design ...................................................... ..
Compatibility ......................................................................... .
System Program ..................................................................... .
System Alerts ......................................................................... .
Multisystem Operation ......................................................... .
Input/Output ......................................................................... .
Technology ............................................................................. .
System Structure .................................................................. ..
Main Storage ......................................................................... .
Information Formats ......................................................... . Central Processing Unit ......................................................... .
General Registers ............................................................... .
Floating-Point Registers ..................................................... .
Arithmetic and Logical Unit ................................................ ..
Fixed-Point Arithmetic ..................................................... .
Decimal Arithmetic ........................................................... .
Floating Point Arithmetic ................................................ ..
Logical Operations ............................................................. .
Program Execution ................................................................. .
Instruction Format ............................................................. .
Address Generation ........................................................... .
Sequential Instruction Execution ..................................... .
Branching ........................................................................... .
Program Status Word ....................................................... .
Interruption ....................................................................... .
Protection Feature ................................................................. .
Timer Feature ....................................................................... .
Direct Control Feature ......................................................... .
Multisystem Feature ............................................................. .
Input/Output ......................................................................... .
Input/Output Devices and Control Units ...................... ..
Input/Output Interface ..................................................... .
Channels ............................................................................. .
Input/Output Instructions ................................................. .
Input/Output Operation Initiation ................................... .
Input/Output Commands ................................................. .
Input/Output Termination .............................................. ..
Input/Output Interruptions .............................................. ..
System Control Panel ........................................................... .
System Control Panel Functions ............................ .......... .
Operation Control Section ............................................... .
Operation Intervention Section ......................................... .
Customer Engineering Section ......................................... .
Fixed-Point Arithmetic ......................................................... .
Data Format ........................................................................... .
Number Representation ......................................................... . Code ...................................................................... ..
Instruction Format ................................................................. .
Instructions ............................................................................. .
Load .................................................................................. ..
Load Halfword ................................................................. .
Load and Test ................................................................... .
Load Complement ............................................................. .
Load Positive ..................................................................... .
Load Negative .................................................................. ..
Load Multiple ................................................................... .
Add ..................................................................................... .
Add Halfword ................................................................... .
Add Logical ....................................................................... .
Subtract ............................................................................... .
Subtract Halfword ............................................................. .
Subtract Logical ................................................................. . Multiply ............................................................................. .
Multiply Halfword ............................................................. .
Divide ................................................................................. .
Convert to Binary ............................................................... .
Convert to Decimal .................... " ........ , .......................... .
Store .............................................................................. .
Store Halfword .............................................................. .
Store Multiple ...................................................... .
Shift Left Single .......................................................... .
Shift Right Single ............................................................. .
Shift Left Double ............................................................. . Shift Right Double ........................................................... . Fixed-Point Arithmetic Exceptions ......... , .. , ...... , ................ ..
5
5
5
5
6
6
6
6
7
7
7
8
8
8
9
9
9 10 10 11
11
12
12
13
15
15
15
16
18
18
18
18
19
19
19
19
19 20 20 21
21
21
21
22
22
22
23
23
23
24
24
25
25
25
25
26
26
26
26
27
27
27
28
28
28
29
29
29 30 30 30 31
31
31
31
32
32
32
33
33
Contents
Decimal Arithmetic ................................................................ 34
Data Format . ' ........................... '.... ............ ................... ....... 34
Number Representation ................................... 34
Condition Code ..... , ................ ,............................................... 35
Instruction Format .... ......................................................... 35
Instructions ....................... , ........ '............................................. 35
Add Decimal .............................................•........................ 35
Subtract Decimal .......................... ..................................... 36
Zero and Add ...................................................................... 36
Compare Decimal .................... '.............................. ........... 37
Multiply Decimal ..................... '.......................................... 37
Divide Decimal ..... ,............................................................ 37 Pack ....... '.............................................................................. 38 Unpack ............................................................................... 38
Move with Offset ... .............................................. 38
Decimal Arithmetic Exceptions ........................................... 39
Floating-Point Arithmetic ............................... .............. ....... 40 Data Format ............................................................................ 40 Number Representation ...................................................... 40 Normalization .......................................................................... 41
Condition Code ................................................................... 41
Instruction Format ............................................................... 41
Instructions .......... ,.................................................................. 42
Load ..... ,............................................................................. 43
Load and Test .................................................................... 43
Load Complement .............................................................. 43
Load Positive ...................................................................... 43
Load Negative .................................................................... 44
Add Normalized .................... ............................................. 44
Add U nnormalized ....... ... ................................................. 45
Subtract Normalized ................................................. 45
Subtract Unnormalized ................................................. 46
Compare .............................................................................. 46
IIalve ........ ........................................................................... 47
Multiply .............................................................................. 47
Divide .... ............................................................................. 48
Store ......................... .......................................................... 49
Floating-Point Arithmetic Exceptions .................................. 49
Logical Operations ... ...................................................... 50 Data Format ............... ....................................................... 50 Condition Code ....... ...................................................... 51
Instruction Format .................................................................. 51
Instructions ....... " ........................................... '" .. . ....... .. . . . ... .. . .. 52
Move ............... , .................................................................... 52
Move Numerics .................................................................. 53
Move Zones ........................................................................ 53
Compare Logical ................................................................ 53
AND .................................................................................... 54 OR ........................................................................................ 54
Exclusive OR ...................................................................... 55
Test Under Mask. ....................................................... 55
Insert Character .... . ............................................. '" ... .. . 55
Store Character .... . ..... ................................................ .. 55
Load Address .............. ....................................................... 56
Translate .. ...... ....... ..... ...................................... .............. 56
Translate and Test ...... ....................................................... 56
Edit ... .............................................................................. 57
Edit and Mark .............. .................................................... 58
Shift Left Single . . . .. . . ........ " .................................... , .. , .. , .. 59
Shift Right Single ........ ....................................................... 59
Shift Left Double ............................................................. 59
Shift Right Double ......... ................. ............................ 60 Logical Operation Exceptions ................................................ 60 Branching ..... , ............................... ,......................................... 61
Normal Sequential Operation .................................. 61
Sequential Operation Exceptions ........... ......... ............... 62
Decision-Making ............ ....................................................... 62
Instruction Formats ........ ....................................... .............. 62
Branching Instructions .... ..................................... 63
Branch On Condition ......................................... 63
Branch and Link ......... ........... ............................ 64
Branch On Count ........ .. ..................... .................. 64
Branch On Index High ' ... .... .......................... 64
Branch On Index Low or Equal ...................................... 65
Execute .................... ................................................ 65
Branching Exceptions ... .................................................... 65
Status-Switching ................................................................... .
Program States ....................................................................... .
Problem State .............................. , ..................... , ................ .
Wait State ......................................................................... .
Masked States ....................................... .. Stopped State ...... .. ................................................. . Storage Protection ................................................................ .
Area Identification ................................................ .
Protection Action . . . . . . . . . . . . ... . . . . . . . . . . . .. '" .................. .
Locations Protected ...................... .
Program Status Word ............. .. ................ .
Multisystem Operation ....................................................... ..
Direct Address Relocation .............................. .
Malfunction Indication .................................................. .. System Initialization ........................................................ .
Instruction Format ...................... , .......................................... .
Instructions .......... , . ... . .................................................... .
Load PS"V ............................ " , ................. . Set Program Mask .... .. .......................................... .. Set System Mask . .. .......................................... ..
Supervisor Call ........................................... _ ...................... . Set Storage Key ................................................................ .
Insert Storage Key ............................................. .
Write Direct ........................... , ............ .
Read Direct . .. ................ . ................................................. .
Diagnose ............................................................................ . Status-Switching Exceptions ...................... . Interruptions ................................. .
Interruption Action ...................... .
Instruction Execution .............. " ..................................... . Source Identification ........................................ .
Location Determination ........................ .
Input/Output Interruption .
Program Interruption ...... ............ .. .................. .. Operation Exception ...... _........... .. .................. ..
Privileged-Operation Exception ... _ .......... _ Execute Exception . .. .............................. .
Protection Exception ......................... ..
Addressing Exception ...................... _ ...... _ ................ . Specifica tion Exception ............................................. .
Data Exception .............................................................. .
Fixed-Point-Overflow Exception . _ ..................... .
Fixed-Po:int-Divide Exception ..................... .
Decimal-Overflow Exception ...................... .
Decimal-Divide Exception
Exponent-Overflow Exception
Exponent-Underflow Exception ...................... .. Significance Exception . ....... ..... .. ............ ..
Floating-Point-Divide Exception ............... .
Supervisor-Call Interruption .... . ............................... .
External Interruption ......................... . ............................... .
Timer ...................................................................... .
Interrupt Key .................... .. .................... ..
External Signal ...................................................... .
Priority of Interruptions
Interruption Exceptions ...................................................... . Input/Output Operations .............. ..
Attachment of Input/Output Devices
Input/Output Devices .... .. .............. . Control Units ........................................................ . Channels ... . ......................................................... . System Operation ....... .. ............ .
Compatibility of Operation ............. .. ....................... .. Control of Input/Output Devices .... .
Input/Output Device Addressing ................... .
Instruction Exception Handling ..... . States of the Input/Output System Resetting of the Input/Output System Condition Code ...................................... .
Instruction Format. .. ............ .
Instructions .. .. .. .. .. .. .. .. . .. ............ .. .............. .
Test VO .................. ..
Halt VO ..... .................. .. ......................... ..
Test Channel ..................................... .
Execution of Input/Output Operations ................ .
67
67
67
67
68
68
69
69
69
69
69 70 70 71
71
71
71
72
72
72
72
73
73
73
74
74
74
76
76
77
77
77
78
78
78
78
78
78
78
79
79
79
79
79
79
79
79
79
79
79 80 80 80 81
81
82
83
83
83
83
84
85
86
87
87
88
88 90 90 92
92
92
93
94
95
96 w Channel Command Word ................................................. . Command Code ................................................................. . Definition of Storage Area ................................................. . Chaining .. .. .......................................................... . Skipping ........................................................................... .
Program-Controlled Interruption ..................................... . Commands ................................................................... .
Termination of Input/Output Operations ................ .
Types of Termination ..................................................... .
Input/Output Interruptions ............................................. . Channel Status Word ....................................................... . Unit Status Conditions .................................................... .. Channel Status Conditions .............................................. . Content of Channel Status Word .................................... ..
System Control Panel ............................ ....................... .
System Control Functions .................................................. . System Reset ..................................................................... . Store and Display ............................................................... .
Initial Program Loading ................................................. .
Operator Control Section ........ .. .................... .
Emergency Pull Switch ................................................... . Power-On Key ............................................................ . Power-Off Key ........ . ........................................ .
Interrupt Key ............................................................. .
Wait Light ................................................. .
Manual Light .............................................................. . System Light .................................................................... .
Test Light ............................................................. .
Load Light .......................................................... .
Load-Unit Switches ............................................ .
Load Key ....................................... .
Prefix-Select Key Switch .................... .
Operator Intervention Section ...................... .
System-Reset Key ................................................. .. Stop Key ........................................................ .
Rate Switch .................. . ....................................... . Start Key............... .. ....................................... . Storage-Select Switch ................................................... .
Address Switches ..................................................... .
Data Switches ............................................................ . Store Key .............................................................. .
Display Key .................................................................... . Set IC Key .................................................................... .
Address-Compare Switches .................................. .
Alternate-Prefix Light .......................................... .. Customer Engineering Section ............................................. .
96
96
96
97
97
98 100 100 101 104 104 105 108 109 112
114
117
117
117
117
118
118
119
119
119
119
119
119
119
119
119
119 120 120 120 120 120 120 120 121
121
121
121
121
121
121
121
121
Appendix ..... ...................... ............................................... 122
A. Instruction Use Examples .. ............................................ 122
Assembly Language Examples ... .................................... 128
B. Fixed-Point and Two's Complement Notation ........... 132 C. Floating-Point Arithmetic ................................................. 133
D. Powers of Two Table ......... .. .............................. 135
E. Hexadecimal-Decimal Conversion Table ...... 136
F. EBCDIC and ASCII (Extended) Charts ...................... 141
C. Instructions . .................. .. .. ...................... .......... 142
Data Formats 142
Hexadecimal Representation ........ ........................ 142
Instructions by Format Type ................ 142 Control Word Formats .................................... 144 Operation Codes ........ .... ........... .. ............................. 145
Permanent Storage Assignment .. ........................... 147
Condition Code Setting .... ....................... 147
Interruption Action ... ... ...................... 148
Instruction Length Recording .................. 148
Program Interruptions ... . ..................... 148
Editing ..... . ....... ................. ........ . 153 System Control Panel ......... ................................ 153
Input/Output Operations ... ........... ............. .................. 153
Time and Method of Creating and Storing Status Indications .. '" ........ . ..................................................... 155
Functions That May Differ Among Models ........... ........ 156
Alphabetic List of Instructions .. .............. ....... 159
List of Instructions by Set and Feature ...... 160 Index of Instruction Formats by Mnemonic 162
Previous Page Next Page