2.CC1 toCC2 CC3 CC4 MeaningNo carry out of bit 0 of theadder (add and subtract instructionsonly).Carry out of bit 0 of theadder (add and subtract instructionsonly).If the instructi on trapped was a DW or DH, the storedcondition code is interpreted as follows:CC1ttCC2 CC3 CC4 MeaningOverflowLoad the new PSWs. <strong>The</strong> condition code and instructionaddress portions of the PSWs remain at the valueloaded from memory.If none of the above conditions occurred but characteristicunderflow occurs with floating zero modebit (FZ) = 1, the stored condition code is interpretedas follows:CClCC2 CC3 CC4 MeaningooCharacteristic underflow,negative result.Characteristic underflow,positive result.If none of the above conditions occurred but an additionor subtraction results in either a zero result (withFS = 1 and FN = 0), or a postnormal ization shift ofmore than two hexadecimal places (with FS = 1 andFN = 0), the stored condition code is interpreted asfollows:CC1CC2 CC3 CC4 MeaningFLOATING-POINT ARITHMETIC FAULT TRAPFloating-point fault detection is performed after the operationcalled for by the instruction code is performed, butbefore any results are loaded into the general registers.Thus, a floating-point operation that causes an arithmeticfault is not carried to completion in that the original contentsof the genera I reg isters are unchanged.Instead, the basic processor traps to location X'44 1 with thecurrent condition code indicating the reason for the trap.A characteristic overflow or an attempt to divide by zeroalways results in a trap condition. A significance check ora characteristic underflow results in a trap condition onlyif the floating-point mode controls (FS, FZ, and FN) in thecurrent program status words are set to the appropriate state.If a floating-point instruction traps, the execution of XPSDor PSS in trap location X'44 1is as follows:<strong>1.</strong> Store the current PSWs. (Store general registers ifP~~.) If division is attempted with a zero divisor orif characteristic overflow occurs, the stored conditioncode is interpreted as follows:CCloooCC2 CC3 CC4 MeaningooooZero divisor.Characteristic overflow,nega t i ve resu I t.Characteristic overflow,positive result.tCCl remains unchanged for instructions LCW, LAW, LCD,and LAD.ttA hyphen indicates that the condition code bits are not affectedby the condition given under the "Meaning ll heading.0 0 0 Zero result of addition orsubtraction.0 0 More than two postnormalizingshifts, negative result.0 0 More than two postnormalizingshifts, positive result.2. Load the new PSWs. <strong>The</strong> condition code aild instructionaddress portions of the PSWs remain at the valuesloaded from memory.DECIMAL ARITHMETIC FAULT TRAPWhen either of two decimal fault conditions occurs (seeChapter 3, IIDecimal Instructions ll ), the normal sequencingof instruction is halted, CCl and CC2 are set according tothe reason for the fault condition, and CC3, CC4, memory,and the decimal acclJrnulator remain unchanged by the instruction.If the decimal arithmetic trap mask (bit position10 of PSW1) is a 0, the instruction execution sequencecontinues with the next instruction in sequence at the timeof fault detection; however, if the decimal arithmetic trapmask contains a 1, the basic processortrapstolocationX'45 1at the time of fault detection. <strong>The</strong> following are the faultconditions for decimal instructions:Instruction Name Mnemonic FaultDec i rna I Load DL I II ega I dig i tDecimal Store DS Illegal digitDecimal Add DA Overflow, i lIega IdigitDecimal Subtract DS Overflow, illegaldigitDecimal Multiply DM Illegal digit42 Trap System
Instruction Name Mnemonic FaultDecimal Divide DD Overflow, i lIega IdigitDecimal Compare DC Illegal digitDecimal Shift DSA Illegal digitArithmeticPack Decimal Digits PACK Illegal digitUnpack Decimal Digits UNPK Illegal digitEdit Byte String EBS Illegal digit<strong>The</strong> execution of XPSD or PSS in trap location X'45 1 is asfollows:1 • Store the current PSWs. (Store genera I registers ifPSS.) <strong>The</strong> stored condition code is interpreted asfollows:CC 1 CC2 CC3 CC4 MeaningooAll digits legal and overflow.Illegal digit detected.2. Load the new PSWs. <strong>The</strong> condition code and instructionaddress portions of the PSWs remain at the valuesloaded from memory.CALL INSTRUCTION TRAP<strong>The</strong> four CALL instructions (CAll, CAL2, CAL3, and CAL4)cause the basic processor to trap to location X'48 1 (forCAll), X'49 1 (for CAL2), X'4A' (for CAL3), or X'4B ' (forCAL4). Execution of the XPSD or PSS instruction in thetrap location is as follows:<strong>1.</strong> Store the current PSWs. <strong>The</strong> stored condition code bitsare those that existed prior to the CA LL instruction.2. Store the general registers in PSS.3. Load the new PSWs.4. Modify the new PSWs.a. <strong>The</strong> R Field of the CALL instruction is logicallyORed with the condition code register as loadedfrom memory.b. If bit 9 (AI) of X PSD or PSS contains a 1, the Rfield of the CALL instruction is added to the programcounter. If AI contains a 0, the programcounter remains unchanged from the value loadedfrom memory.Note: Return from a CALL trap wi" be to the trappinginstruction + 1 •HARDWARE ERROR TRAPWATCHDOG TIMER RUNOUT TRAP<strong>The</strong> watchdog timer monitors and controls the maximumamount of basic processor time each instruction can take.<strong>The</strong> timer is normally in operation at all times and is initializedat the beginning of each instruction. If the instructionis not completed by the time the watchdog timer has completedits count, the instruction is aborted, TCC 1 is set to 0,and a trap occurs immediately to location X'46 I • Additionalinformation as to probable cause of delay is provided:TCC2 is set if the basic processor was using the processorbus, TCC3 is set if the basic processor was using the memorybus, TCC4 is set if the basic processor was using the DIObus. <strong>The</strong> register altered flag of the PSWs is also set if anyregister or main memory location has been changed whenthe trap occurred.A watchdog timer runout is considered a basic processorfault and the PDF is set. (See "Processor Detected FaultFlag", later in this chapter.)PROGRAMMED TRAP<strong>The</strong> programmed trap occurs at instruction interruptiblepoint. It is set by a WRITE DIRECT (WD). See Chapter 3.<strong>The</strong> basic processor traps to location X 147'.A hardware error trap occurs when either a parity or a sequencecheck fault error is detected by a memory unit, basicprocessor, or any processor communicating with the basicprocessor, resulting in a basic processor trap to locationX'4C. <strong>The</strong> Trap Condition Code bits (TCCs) are set toX'0001 ' for all hardware fault conditions except generalregister and control register parity errors, where the TCCsare set to X 10000 1 .To determine which of the possible detectable errors is responsiblefor the hardware error trap, the fault status registersof the various processors in the <strong>system</strong> must be polledwith either the POLP or POLR instruction; the memory'sstatus register must be read with the LMS instruction. <strong>The</strong>fault status register bit settings for processors and interfacesare given in Appendix C, Table C-<strong>1.</strong> <strong>The</strong> fault status registerbit settings for the memory unit are given in AppendixC, Table C-2.If the basic processor detects or receives a report of a hardwareerror, it attempts automatic retry of the current instruction.If retry is unsuccessful, the basic processor trapsto location X '4C. If retry is successful, the basic processorresumes execution of the next instruction in the program,the Processor Fault Interrupt (PFI) and the "successful instructionretryll bit (bit position 11) in the Basic Processor FaultStatus Register are set to <strong>1.</strong> <strong>The</strong>re is automatic instructionTrap System 43
- Page 1 and 2: Xerox 560 ComputerReference Manual9
- Page 5 and 6: 4. INPUT/OUTPUT OPERA TIO NS 142 AG
- Page 7 and 8: 1. XEROX 560 COMPUTER SYSTEMINTRODU
- Page 10 and 11: Many operations are performed in fl
- Page 12 and 13: Rapid Context Switching. When respo
- Page 14 and 15: 2. SYSTEM ORGANIZATIONThe elements
- Page 16: FAST MEMORYARITHMETIC AND CONTROL U
- Page 19 and 20: INFORMATION BOUNDARIESBasic process
- Page 21 and 22: (Maximumof eight)Core Core Core Cor
- Page 23 and 24: 3. Diagnostic logic. Each memory dr
- Page 25 and 26: eference address field of the instr
- Page 27 and 28: Instruction in memory:Instruction i
- Page 29 and 30: Real-extended addressing is specifi
- Page 31: Table 1. Basic Processor Operating
- Page 35 and 36: DesignationFunctionDesignationFunct
- Page 37 and 38: InterruptStateDisarmedArmed[$Waitin
- Page 39 and 40: AddressTable 2. Interrupt Locations
- Page 41 and 42: is assumed to contain an XPSD or a
- Page 43 and 44: Table 3. Summary of Trap LocationsL
- Page 45 and 46: TRAP MASKSThe programmer may mask t
- Page 47: PUSH-DOWN STACK LIMIT TRAPPush-down
- Page 51 and 52: subroutine. However, with certain c
- Page 53 and 54: 3. INSTRUCTION REPERTOIREThis chapt
- Page 55 and 56: CC1 is unchanged by the instruction
- Page 57 and 58: Condition code settings:2 3 4 Resul
- Page 59 and 60: Example 2, odd R field value:Before
- Page 61 and 62: significance (FS), floating zero (F
- Page 63 and 64: next sequential register after regi
- Page 65 and 66: R 1 R2 R3 MeaningoThe effective vir
- Page 67 and 68: Condition code settings:2 3 4 Resul
- Page 69 and 70: MIMULTIPLY IMMEDIATE(Immediate oper
- Page 71 and 72: original contents of register R, re
- Page 73 and 74: Instruction NameCompare HalfwordMne
- Page 75 and 76: Condition code settings:2 3 4 Resul
- Page 77 and 78: 2 3 4 Result of ShiftCircular Shift
- Page 79 and 80: 4. At the completion of the left sh
- Page 81 and 82: Instruction NameFloating Subtract L
- Page 83 and 84: The following table shows the possi
- Page 85 and 86: Table 8.Condition Code Settings for
- Page 87 and 88: PACKED DECIMAL NUMBERSAll decimal a
- Page 89 and 90: DSTDECIMAL STORE(Byte index alignme
- Page 91 and 92: If no indirect addressing or indexi
- Page 93 and 94: Instruction NameMnemonicDesignation
- Page 95 and 96: Both byte strings are C bytes in le
- Page 97 and 98: of the destination byte that caused
- Page 99 and 100:
again present, unti I a positive or
- Page 101 and 102:
The new contents of register 7 are:
- Page 103 and 104:
traps to location X'42 1 as a resul
- Page 105 and 106:
If there is sufficient space in the
- Page 107 and 108:
If CC1, or CC3, or both CC1 and CC3
- Page 109 and 110:
appropriate memory stack locations
- Page 111 and 112:
II, EI) are generated by II ORing"
- Page 113 and 114:
In the real extended addressing mod
- Page 115 and 116:
CAll INSTRUCTIONSEach ofthe four CA
- Page 117 and 118:
The XPSD instruction' is used for t
- Page 119 and 120:
If (I)1O = 0, trap or interrupt ins
- Page 121 and 122:
For either memory map format and ei
- Page 123 and 124:
initial value plus the initial valu
- Page 125 and 126:
Table 9. Status Word 0Field Bits Co
- Page 127 and 128:
READ INTERRUPT INHIBITSThe followin
- Page 129 and 130:
Table 11.Read Direct Mode 9 Status
- Page 131 and 132:
SET ALARM INDICATORThe following co
- Page 133 and 134:
INPUT jOUTPUT INSTRUCTIONSThe I/o i
- Page 135 and 136:
Table 13.Description of I/o Instruc
- Page 137 and 138:
Table 15.Device Status Byte (Regist
- Page 139 and 140:
Table 16. Operational Status Byte (
- Page 141 and 142:
Table 19.Status Response Bits for A
- Page 143 and 144:
If CC4 = 0, the MIOP is in a normal
- Page 145 and 146:
2 3 4 Meaningo 0 I/o address not re
- Page 147 and 148:
The functions of bits within the DC
- Page 149 and 150:
4. Each unit-record controller (int
- Page 151 and 152:
Interrupt at Channel End (Bit Posit
- Page 153 and 154:
Transfer in Channel. A control lOCO
- Page 155 and 156:
Otherwise, the first word of the ne
- Page 157 and 158:
Depending upon the characteristics
- Page 159 and 160:
change the rate on the primary cons
- Page 161 and 162:
Location(hex) (dec)20 3221 3322 342
- Page 163 and 164:
Table 22.Diagnostic Control (P-Mode
- Page 165 and 166:
at its normal rate (e. g., fixed du
- Page 167 and 168:
SET LOW CLOCK MARGINSThis command c
- Page 169 and 170:
BP STATUS AND NO.Th i s group of i
- Page 171 and 172:
Input5MPri ntout5MFunctionStore X 1
- Page 173 and 174:
6. SYSTEM CONFIGURATION CONTROLPool
- Page 175 and 176:
Table 25. Functions of Processor Cl
- Page 177:
Table 26. Functions of Memory Unit
- Page 180 and 181:
STANDARD 8-BIT COMPUTER CODES (EBCD
- Page 182 and 183:
STANDARD SYMBOL-CODE CORRESPONDENCE
- Page 184 and 185:
STANDARD SYMBOL-CODE CORRESPONDENCE
- Page 186 and 187:
TABLE OF POWERS OF SIXTEEN II162564
- Page 188 and 189:
HEXADECIMAL-DECIMAL INTEGER CONVERS
- Page 190 and 191:
HEXADECIMAL-DECIMAL INTEGER CONVERS
- Page 192 and 193:
HEXADECIMAL-DECIMAL INTEGER CONVERS
- Page 194 and 195:
HEXADECIMAL-DECIMAL FRACTION CONVER
- Page 196 and 197:
HEXADECIMAL-DECIMAL FRACTION CONVER
- Page 198 and 199:
APPENDIX B.GLOSSARY OF SYMBOLIC TER
- Page 200 and 201:
TermMeaningTermMeaningWKxWrite key
- Page 202 and 203:
Table C-2. Memory Unit Status Regis
- Page 204 and 205:
Y OYf'lV r'f'lrnf'lrtil"\n'''' ....
- Page 206:
701 South Aviation BoulevardEI Segu