etry only for hardware errors that would otherwise resultin a basic processor trap to location X I 4C. Automatic instructionretry is inhibited if:1 • <strong>The</strong> current instruction is being executed as a trap orinterrupt instruction;2. <strong>The</strong> Register Altered bit (bit position 60) of the currentPSWs is set to 1 at the time of detection of thehardware error; or3. <strong>The</strong> Retry Inhibit bit (bit position 0) in the basic processorcontrol register is set to <strong>1.</strong>INSTRUCTION EXCEPTION TRAP<strong>The</strong> instruction exception trap occurs whenever the basicprocessor detects a set of operations that are called for inan instruction but cannot be executed because of either ahardware restriction or a previous event.<strong>The</strong> different conditions that cause the instruction exceptiontrap are:<strong>1.</strong> A processor-detected fau It that occurs during the executionof an interrupt or trap entry sequence. Aninterrupt or trap entry sequence is defined as the sequenceof events that consists of: (a) initiating aninterrupt or trap; (b) accessing the instruction in theinterrupt or trap location; and (c) executing that instruction,including the exchange of the programstatus words, if required. Note that instructions executedas a result of the interrupt or trap location arenot considered part of the entry sequence.2. An illegal instruction is found in the trap (not XPSD orPSS) or interrupt (not XPSD, PSS, MTB, MTH, MTW) locationwhen executing a trap or interrupt sequence.3. Bit positions 12-14 of the MOVE TO MEMORY CONTROL (MMC) instruction are interpreted as an illegalconfiguration. This is, any configuration other than100, 010, 101, 001, or 011 •4. <strong>The</strong> set of operations, primarily doubleword and bytestringinstructions, that yield an unpredictable resultwhen an incorrect register is specified; this type offault is called "invalid register designation II and includesthe following instructions ll • tRegister 0 SpecifiedEdit Byte String (EBS)Floating Add Long (FAL)Floating Subtract Long (FSL)Floating Multiply Long (FML)Floating Divide Long (FDL)Translate Byte String (TBS)Translate and Test Byte String (TTBS)Edit Byte String (EBS)Move to Memory Control (MMC)TRAP CONDITION CODE<strong>The</strong> Trap Condition Code (TCC) differentiates between thedifferent fault types. Table 4 shows the settings of the TCCfor the various faults that may be detected during a trap orinterrupt entry sequence.Table 4. TCC Setting for Instruction ExceptionTrap X I 4D 1Fault TypeTCCTrap or interrupt sequence and 1 1 1pro~essor-detected fault.Trap or interrupt sequence with 1 1 0invalid instruction.MMC configuration invalid. 0 0 1Invalid register designation. 0 0 0POWER ON TRAPPower On causes the basic processor to reset and then traptolocationX I 50 I • This will occur only following restorationof power after an interruption of less than 500 milliseconds.POWER OFF TRAPPower Off occurs at interruptible point. As source power isgoing off, the basic processor traps to location X 1511 andallows sufficient time for storage of information before the<strong>system</strong> becomes inoperable.1001Odd Register SpecifiedAdd Doub I ewo rd (A D)Subtract Doubleword (SD)tliInvalid register designation II faults do not set the PDFflag.PROCESSOR DETECTED fAULT fL~G<strong>The</strong> Processor Detected Fault (PDF) flag aids in solving amultiple error problem. Most traps occur because of a dynamicprogramming consideration (i.e., overflow, attempteddivision by zero, incorrect use of an instruction or address,etc.) and recovery is easi Iy handled by another software44 Trap System
subroutine. However, with certain classes of errors, if asecond error occurs while the basic processor is attemptingto recover from the first error, unpredictable results occur.Inc I uded in th is c lass of traps are the hardware error trap,some cases of the instruction exception trap, and the watchdogtimer runout trap. Upon the first occurrence of thistype of trap, the PDF flag is set.When the PDF flag is set, the processor fault interrupt, thememory fault interrupt, and count pulse interrupts are automaticallyinhibited. <strong>The</strong> other interrupts mayor may notbe inhibited as specified by the program status words, whichare loaded when the trap entry XPSD or PSS is executed.<strong>The</strong> PDF flag is normally reset by the last instruction of atrap routine, which is an LPSD or PLS instruction havingbit 10 equal to 0 and bit 11 equal to <strong>1.</strong>If a second PDF is detected before the PDF flag is reset, thebasic processor "hangs Up" unti I the PDF flag is reset eitherby the operator entering the command for RESET BASICPROCESSOR or RESET SYSTEM on the operator1s console.This reset wi II cause the following actions:<strong>1.</strong> <strong>The</strong> processor fault status register is cleared.2. <strong>The</strong> PDF flag is cleared and the processor fault interruptgenerated flag is cleared.3. <strong>The</strong> PSWs are cleared to zero except that the instructionaddress is set to location X 126 1 •4. <strong>The</strong> basic processor will begin execution with the instructioncontained in location X126 1 .REGISTER ALTERED BITComplete recoverability after a trap may require that nomain memory location, no fast memory register, and nopart (or flags) of the PSWs be changed when the trap occurs.If any of these registers or flags are changed, the RegisterAltered bit (60) of the old PSWs is set to 1 and is saved bythe trap XPSD.Changes to CC1-CC4 cause the Register Altered bit to beset only if the instruction requires these condition code bitsas subsequent inputs.Traps caused by conditions detected during operand fetchand store memory cycles, such as nonexistent memory, accessprotection violation, and memory parity error mayormay not leave registers, memory, and PSWs unchanged, dependingon when they occur during instruction execution.Generally, these traps are recoverable. This is done bychecking for protection violations and nonexistent memoryat the beginning of execution in case of a multiple operandaccess instruction, restoring the original register contentsif execution cannot be completed because of a trap, andnot loading the first word of the PSWs until a possible trapcondition due to access of the second word could have beendetected. Table 5 contains a list of instructions and indicatesfor these instructions what registers, memory locations,and bits of the PSWs, if any, have been changed when atrap due to an operand access memory cycle occurs.Tabie 5. RegiSTers Changed aT Time or a Trap Due TO an Operand AccessInstructi onsAI, CI, LCFI, LI, MICALl-CAL4, SF,S, WAIT, RD, WD, RIO,POLR, POLP, DSALRALB, LCF, LRP, CBLH, LAH, LCH, AH, SH, MH, DH, CHLW, LAW, LCW, AW, SW, MW, OW, CWLD, LAD, LCD, AD, SO, CD, CLM, CLREaR, OR, AND, LS, INT, CSFAS, FSS, FMS, FDS, FAL, FSL, FML, FDLAWM, XW, STS, MTB, MTH, MTWSTB, STCF, 5TH, STW, LASEXU, BCR, BCSBAL, BDR, BIRChangesImmediate type, no operand access.No operand access.Has operand access but traps are suppressed; register bits andcondition codes are set instead.No operand store, registers and PSWs unchanged when trapdue to operand fetch. CCl-4 may be changed but are notused as input to any of these instructions.Registers and memory are preserved, condition codes may bechanged but are not used as input to these instructions.Memory will be altered and the Register Altered bit set.If the branch condition is true (always for EXU and BAL) anda trap occurs due to access of the indirect address or of thenext (branched to or executed) instruction, the register usedis left unchanged and the program address saved in the PSWsis the address of the branch or execute instruction.Trap System 45
- 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 and 48: PUSH-DOWN STACK LIMIT TRAPPush-down
- Page 49: Instruction Name Mnemonic FaultDeci
- 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