Source Code

These source-code files were obtained by digitally photographing an Artemis 72 (Apollo 15-17 Command Module) program listing from a private collection and then modifying pre-existing Comanche 55 (Apollo 11) source files to incorporate changes. Photography was by Ron Burkey, and transcription was performed by a team of volunteers. Note that the page images presented online are of reduced quality, and that additional images may be available. Report any conversion errors or legibility problems in page images to info@sandroid.org. Notations on the program listing read, in part:

	GAP: ASSEMBLE REVISION 072 OF AGC PROGRAM ARTEMIS 
	BY NASA 2021114-011 11:40 FEB. 26, 1971
Note that the date is the date of the printout, not the date of the program revision.

006188,000002:                                                                                                  ## Copyright:   Public domain.
006189,000003:                                                                                                  ## Filename:    T4RUPT_PROGRAM.agc
006190,000004:                                                                                                  ## Purpose:     Part of the source code for Artemis (i.e., Colossus 3),
006191,000005:                                                                                                  ##              build 072.  This is for the Command Module's (CM)
006192,000006:                                                                                                  ##              Apollo Guidance Computer (AGC), for
006193,000007:                                                                                                  ##              Apollo 15-17.
006194,000008:                                                                                                  ## Assembler:   yaYUL
006195,000009:                                                                                                  ## Contact:     Jim Lawton <jim DOT lawton AT gmail DOT com>
006196,000010:                                                                                                  ## Website:     www.ibiblio.org/apollo/index.html
006197,000011:                                                                                                  ## Page Scans:  www.ibiblio.org/apollo/ScansForConversion/Artemis072/
006198,000012:                                                                                                  ## Mod history: 2009-08-03 JL   Adapted from corresponding Comanche 055 file.
006199,000013:                                                                                                  ##              2009-09-04 JL   OC40010 should be an EQUALS declaration.
006200,000014:                                                                                                  ##              2009-09-05 JL   Fixed typos.
006201,000015:                                                                                                  ##              2010-01-31 JL   Fixed build errors.
006202,000016:                                                                                                  ##              2010-02-02 JL   Fixed page numbers.
006203,000017:                                                                                                  ##              2010-02-11 JL   Fixed error on p157.
006204,000018:                                                                                                  ##              2010-02-20 RSB  Un-##'d this header.
006205,000019:                                                                                                  ##              2010-07-15 JL   Fixed indentation.
006206,000020:                                                                                                  ##              2010-12-29 JL   Fixed indentation.
006207,000021:                                                                                                  ##              2017-01-26 RSB  Back-ported comment-text fixes found while
006208,000022:                                                                                                  ##                              proofing corresponding Luminary 69 file.        
006209,000023:                                                                                                  ##              2017-01-28 RSB  WTIH -> WITH.
006210,000024:                                                                                                  ##              2017-02-08 RSB  Proofed comment text by diff'ing vs Comanche 55
006211,000025:                                                                                                  ##                              and/or octopus/ProoferComments as most-appropriate.
006212,000026:                                                                                                  ##              2017-03-03 RSB  Fixed comment-text errors identified while proofing
006213,000027:                                                                                                  ##                              Luminary 116.
006214,000028: 

Page 141

006216,000030: 
006217,000031: 06,2000                                           SETLOC   T4RUP                                 
006218,000032: 06,2000                                           BANK                                           
006219,000033: 
006220,000034: 06,2000                                           COUNT*   $$/T4RPT                              
006221,000035: 06,2000           54016        T4RUPT             TS       BANKRUPT                              
006222,000036: 06,2001           00006                           EXTEND                                         
006223,000037: 06,2002           22012                           QXCH     QRUPT                                 
006224,000038: 
006225,000039: 06,2003           11322                           CCS      DSRUPTSW                              #  GOES 3(-1)0 AROUND AND AROUND
006226,000040: 06,2004           12010                           TCF      NORMT4     +1                         
006227,000041: 06,2005           12007                           TCF      NORMT4                                
006228,000042: 
006229,000043: 06,2006           12132                           TCF      QUIKDSP                               
006230,000044: 
006231,000045: 06,2007           36214        NORMT4             CAF      THREE                                 
006232,000046: 06,2010           54070                           TS       RUPTREG1                              
006233,000047: 06,2011           55322                           TS       DSRUPTSW                              
006234,000048: 
006235,000049: 06,2012     7675               74K                =        HIGH4                                 
006236,000050: 
006237,000051:                                                                                                  #  RELTAB IS A PACKED TABLE. RELAYWORD CODE IN UPPER 4 BITS, RELAY CODE
006238,000052:                                                                                                  #  IN LOWER 5 BITS.
006239,000053: 
006240,000054:    4000                                           SETLOC   FFTAG12                               
006241,000055:    4000                                           BANK                                           
006242,000056:    4063                                           COUNT*   $$/PIN                                
006243,000057:    4063           04025        RELTAB             OCT      04025                                 
006244,000058:    4064           10003                           OCT      10003                                 
006245,000059:    4065           14031                           OCT      14031                                 
006246,000060:    4066           20033                           OCT      20033                                 
006247,000061:    4067           24017                           OCT      24017                                 
006248,000062:    4070           30036                           OCT      30036                                 
006249,000063:    4071           34034                           OCT      34034                                 
006250,000064:    4072           40023                           OCT      40023                                 
006251,000065:    4073           44035                           OCT      44035                                 
006252,000066:    4074           50037                           OCT      50037                                 
006253,000067:    4075           54000                           OCT      54000                                 
006254,000068:    4076           60000        RELTAB11           OCT      60000                                 
006255,000069: 

Page 142

006257,000071: 
006258,000072:                                                                                                  #  SWITCHED-BANK PORTION.
006259,000073: 
006260,000074: 06,2000                                           SETLOC   T4RUP                                 
006261,000075: 06,2000                                           BANK                                           
006262,000076: 
006263,000077: 06,2012                                           COUNT*   $$/T4RPT                              
006264,000078: 06,2012           11241        CDRVE              CCS      DSPTAB     +11D                       
006265,000079: 06,2013           02063                           TC       DSPOUT                                
006266,000080: 06,2014           02063                           TC       DSPOUT                                
006267,000081: 
006268,000082: 06,2015           57241                           XCH      DSPTAB     +11D                       
006269,000083: 06,2016           74347                           MASK     LOW11                                 
006270,000084: 06,2017           55241                           TS       DSPTAB     +11D                       
006271,000085: 06,2020           64076                           AD       RELTAB11                              
006272,000086: 06,2021           00006                           EXTEND                                         
006273,000087: 06,2022           01010                           WRITE    OUT0                                  
006274,000088: 06,2023           02072                           TC       HANG20                                
006275,000089: 

Page 143

006277,000091: 
006278,000092:                                                                                                  #  DSPOUT PROGRAM. PUTS OUT DISPLAYS.
006279,000093: 
006280,000094: 06,2024           55221        DSPOUTSB           TS       NOUT                                  
006281,000095: 06,2025           44772                           CS       ZERO                                  
006282,000096: 06,2026           54073                           TS       DSRUPTEM                              #  SET TO -0 FOR 1ST PASS THRU DSPTAB
006283,000097: 06,2027           57201                           XCH      DSPCNT                                
006284,000098: 06,2030           64771                           AD       NEG0                                  #  TO PREVENT +0
006285,000099: 06,2031           55201                           TS       DSPCNT                                
006286,000100: 06,2032           51201        DSPSCAN            INDEX    DSPCNT                                
006287,000101: 06,2033           11226                           CCS      DSPTAB                                
006288,000102: 06,2034           11201                           CCS      DSPCNT                                #  IF DSPTAB ENTRY +, SKIP
006289,000103: 06,2035           12030                           TCF      DSPSCAN    -2                         #  IF DSPCNT +, AGAIN
006290,000104: 06,2036           12047                           TCF      DSPLAY                                #  IF DSPTAB ENTRY -, DISPLAY
006291,000105: 06,2037           22400        11,14,9            OCT      22400                                 #  CANNOT GET HERE
006292,000106: 06,2040           10073                           CCS      DSRUPTEM                              #  IF DSRUPTEM=+0, 2ND PASS THRU DSPTAB
006293,000107: 06,2041           37764        120MRUPT           DEC      16372      B-14                       #  (DSPCNT = 0). +0 INTO NOUT.
006294,000108: 06,2042           55221                           TS       NOUT                                  
006295,000109: 06,2043           00002                           TC       Q                                     
006296,000110: 06,2044           54073                           TS       DSRUPTEM                              #  IF DSRUPTEM=-0, 1ST PASS THRU DSPTAB
006297,000111: 06,2045           34355                           CAF      TABLNTH                               #  (DSPCNT=0). +0 INTO DSRUPTEM. PASS AGAIN
006298,000112: 06,2046           12031                           TCF      DSPSCAN    -1                         
006299,000113: 
006300,000114: 06,2047           64770        DSPLAY             AD       ONE                                   
006301,000115: 06,2050           51201                           INDEX    DSPCNT                                
006302,000116: 06,2051           55226                           TS       DSPTAB                                #  REPLACE POSITIVELY
006303,000117: 06,2052           74347                           MASK     LOW11                                 #  REMOVE BITS 12 TO 15
006304,000118: 06,2053           54073                           TS       DSRUPTEM                              
006305,000119: 06,2054           34344                           CAF      HI5                                   
006306,000120: 06,2055           51201                           INDEX    DSPCNT                                
006307,000121: 06,2056           74063                           MASK     RELTAB                                #  PICK UP BITS 12 TO 15 OF RELTAB ENTRY
006308,000122: 06,2057           60073                           AD       DSRUPTEM                              
006309,000123: 06,2060           00006                           EXTEND                                         
006310,000124: 06,2061           01010                           WRITE    OUT0                                  #  WRITE CHANNEL 10
006311,000125: 06,2062           16706                           TCF      Q+1                                   #  *** NORMAL RETURN SKIPS ONE
006312,000126: 
006313,000127: 06,2063     5005               OCT54              EQUALS   LTHVACA                               
006314,000128: 06,2063     4355               TABLNTH            EQUALS   BINCON                                #  DEC 10 LENGTH OF DSPTAB
006315,000129: 06,2063           30101        DSPOUT             CA       FLAGWRD5                              
006316,000130: 06,2064           74752                           MASK     DSKYBIT                               
006317,000131: 06,2065           00006                           EXTEND                                         
006318,000132: 06,2066           12126                           BZF      NODSPOUT                              
006319,000133: 06,2067           11221                           CCS      NOUT                                  
006320,000134: 06,2070           02024                           TC       DSPOUTSB                              
006321,000135: 06,2071           12126                           TCF      NODSPOUT                              #  NO DISPLAY REQUESTS
006322,000136: 06,2072           42037        HANG20             CS       11,14,9                               
006323,000137: 06,2073           27322                           ADS      DSRUPTSW                              
006324,000138: 
006325,000139: 06,2074           37663                           CAF      20MRUPT                               
006326,000140: 06,2075           54027        SETTIME4           TS       TIME4                                 
006327,000141: 

Page 144

006329,000143:                                                                                                  #  THE STATUS OF THE PROCEED PUSHBUTTON IS MONITORED EVERY 120 MILLISECONDS VIA THE CHANNEL 32 BIT 14 INBIT.
006330,000144:                                                                                                  #  THE STATE OF THIS INBIT IS COMPARED WITH ITS STATE DURING THE PREVIOUS T4RUPT AND IS PROCESSED AS FOLLOWS.
006331,000145:                                                                                                  #        IF PREV ON AND NOW ON    -   BYPASS
006332,000146:                                                                                                  #        IF PREV ON AND NOW OFF   -   UPDATE IMODES33
006333,000147:                                                                                                  #        IF PREV OFF AND NOW ON   -   UPDATE IMODES33 AND PROCESS VIA PINBALL
006334,000148:                                                                                                  #        IF PREV OFF AND NOW OFF  -   BYPASS
006335,000149:                                                                                                  #  THE LOGIC EMPLOYED REQUIRES ONLY 9 MCT (APPROX. 108 MICROSECONDS) OF COMPUTER TIME WHEN NO CHANGES OCCUR.
006336,000150: 
006337,000151: 06,2076           31334        PROCEEDE           CA       IMODES33                              #  MONITIOR FOR PROCEED BUTTON
006338,000152: 06,2077           00006                           EXTEND                                         
006339,000153: 06,2100           06032                           RXOR     CHAN32                                #  CHECK IF BIT 14 DIFFERENT
006340,000154: 06,2101           74753                           MASK     PROCDBIT                              
006341,000155: 06,2102           00006                           EXTEND                                         
006342,000156: 06,2103           12116                           BZF      T4JUMP                                #  NO CHANGE
006343,000157: 
006344,000158: 06,2104           23334                           LXCH     IMODES33                              
006345,000159: 06,2105           00006                           EXTEND                                         
006346,000160: 06,2106           06001                           RXOR     LCHAN                                 
006347,000161: 06,2107           55334                           TS       IMODES33                              #  UPDATE IMODES33
006348,000162: 06,2110           74753                           MASK     PROCDBIT                              
006349,000163: 06,2111           10000                           CCS      A                                     
006350,000164: 06,2112           12116                           TCF      T4JUMP                                #  WAS ON - NOW OFF
006351,000165: 
006352,000166: 06,2113           05120                           TC       NOVAC30                               #  WAS OFF - NOW ON
006353,000167: 06,2114     1202                                  EBANK=   DSPCOUNT                              
006354,000168: 06,2114           03311 60102                     2CADR    PROCKEY                               
006355,000169: 

Page 145

006357,000171:                                                                                                  #  JUMP TO APPROPRIATE ONCE-PER SECOND (.96 SEC ACTUALLY) ACTIVITY
006358,000172: 
006359,000173: 06,2116           50070        T4JUMP             INDEX    RUPTREG1                              
006360,000174: 06,2117           12120                           TCF      +1                                    
006361,000175: 
006362,000176: 06,2120           12124                           TCF      OPTTEST                               
006363,000177: 06,2121           13001                           TCF      OPTMON                                
006364,000178: 06,2122           12124                           TCF      OPTTEST                               
006365,000179: 06,2123           12167                           TCF      IMUMON                                
006366,000180: 06,2124           04714        OPTTEST            TC       IBNKCALL                              
006367,000181: 06,2125           20000                           CADR     OPTDRIVE                              
006368,000182: 
006369,000183: 06,2126     7663               20MRUPT            =        OCT37776                              #  (DEC 16382)
006370,000184: 06,2126           00006        NODSPOUT           EXTEND                                         #  TURN OFF RELAYS
006371,000185: 06,2127           01010                           WRITE    OUT0                                  
006372,000186: 
006373,000187: 06,2130           32041                           CAF      120MRUPT                              #  SET FOR NEXT CDRVE
006374,000188: 06,2131           12075                           TCF      SETTIME4                              
006375,000189: 
006376,000190: 06,2132           34753        QUIKDSP            CAF      BIT14                                 
006377,000191: 06,2133           71322                           MASK     DSRUPTSW                              
006378,000192: 06,2134           00006                           EXTEND                                         
006379,000193: 06,2135           12163                           BZF      QUIKOFF                               #  WROTE LAST TIME, NOW TURN OFF RELAYS.
006380,000194: 
006381,000195: 06,2136           11221                           CCS      NOUT                                  
006382,000196: 06,2137           02024                           TC       DSPOUTSB                              
006383,000197: 06,2140           12150                           TCF      NODSPY                                #  NOUT=0 OR BAD RETURN FROM DSPOUTSB
006384,000198: 06,2141           44753                           CS       BIT14                                 #  GOOD RETURN (WE DISPLAYED SOMETHING)
006385,000199: 06,2142           27322        QUIKRUPT           ADS      DSRUPTSW                              
006386,000200: 
006387,000201: 06,2143           37663                           CAF      20MRUPT                               
006388,000202: 06,2144           54027                           TS       TIME4                                 
006389,000203: 
006390,000204: 06,2145           34760                           CAF      BIT9                                  
006391,000205: 06,2146           27322                           ADS      DSRUPTSW                              
006392,000206: 
006393,000207: 06,2147           05323                           TC       RESUME                                
006394,000208: 
006395,000209: 06,2150           00006        NODSPY             EXTEND                                         
006396,000210: 06,2151           01010                           WRITE    OUT0                                  
006397,000211: 
006398,000212: 06,2152           37663        SYNCT4             CAF      20MRUPT                               
006399,000213: 06,2153           26027                           ADS      TIME4                                 
006400,000214: 
006401,000215: 06,2154           34760                           CAF      BIT9                                  
006402,000216: 06,2155           27322                           ADS      DSRUPTSW                              
006403,000217: 06,2156           11322                           CCS      DSRUPTSW                              
006404,000218: 06,2157           05323                           TC       RESUME                                
006405,000219: 06,2160           37737        OCT37737           OCT      37737                                 
006406,000220: 06,2161           02152                           TC       SYNCT4                                

Page 146

006408,000222: 06,2162           05323                           TC       RESUME                                
006409,000223: 
006410,000224: 06,2163           00006        QUIKOFF            EXTEND                                         
006411,000225: 06,2164           01010                           WRITE    OUT0                                  
006412,000226: 06,2165           34753                           CAF      BIT14                                 #  RESET DSRUPTSW TO SEND DISPLAY NEXT PASS
006413,000227: 06,2166           12142                           TCF      QUIKRUPT                              
006414,000228: 

Page 147

006416,000230:                                                                                                  #  PROGRAM NAME:  IMUMON
006417,000231: 
006418,000232:                                                                                                  #  FUNCTIONAL DESCRIPTION:  THIS PROGRAM IS ENTERED EVERY 480 MS.  IT DETECTS CHANGES OF THE IMU STATUS BITS IN
006419,000233:                                                                                                  #  CHANNEL 30 AND CALLS THE APPROPRIATE SUBROUTINES.  THE BITS PROCESSED AND THEIR RELEVANT SUBROUTINES ARE:
006420,000234: 
006421,000235:                                                                                                  #        FUNCTION                BIT     SUBROUTINE CALLED
006422,000236:                                                                                                  #        --------                ---     -----------------
006423,000237:                                                                                                  #        TEMP IN LIMITS           15     TLIM
006424,000238:                                                                                                  #        ISS TURN-ON REQUEST      14     ITURNON
006425,000239:                                                                                                  #        IMU FAIL                 13     IMUFAIL (SETISSW)
006426,000240:                                                                                                  #        IMU CDU FAIL             12     ICDUFAIL (SETISSW)
006427,000241:                                                                                                  #        IMU CAGE                 11     IMUCAGE
006428,000242:                                                                                                  #        IMU OPERATE               9     IMUOP
006429,000243: 
006430,000244:                                                                                                  #           THE LAST SAMPLED STATE OF THESE BITS IS LEFT IN IMODES30.  ALSO, EACH SUBROUTINE CALLED FINDS THE NEW
006431,000245:                                                                                                  #  VALUE OF THE BIT IN A, WITH Q SET TO THE PROPER RETURN LOCATION, NXTIFAIL.
006432,000246: 
006433,000247:                                                                                                  #  CALLING SEQUENCE:  T4RUPT EVERY 480 MILLISECONDS.
006434,000248: 
006435,000249:                                                                                                  #  JOBS OR TASKS INITIATED:  NONE.
006436,000250: 
006437,000251:                                                                                                  #  SUBROUTINES CALLED:  TLIM, ITURNON, SETISSW, IMUCAGE, IMUOP.
006438,000252: 
006439,000253:                                                                                                  #  ERASABLE INITIALIZATION:
006440,000254:                                                                                                  #        FRESH START OR RESTART WITH NO GROUPS ACTIVE:  C(IMODES30) = OCT 37411.
006441,000255:                                                                                                  #        RESTART WITH ACTIVE GROUPS:     C(IMODES30) = (B(IMODES30)AND(OCT 00035)) PLUS OCT 37400.
006442,000256:                                                                                                  #                                        THIS LEAVES IMU FAIL BITS INTACT.
006443,000257: 
006444,000258:                                                                                                  #  ALARMS:  NONE.
006445,000259: 
006446,000260:                                                                                                  #  EXIT:  TNONTEST.
006447,000261: 
006448,000262:                                                                                                  #  OUTPUT:  UPDATED IMODES30 WITH CHANGES PROCESSED BY APPROPRIATE SUBROUTINE.
006449,000263: 
006450,000264: 06,2167           31333        IMUMON             CA       IMODES30                              #  SEE IF THERE HAS BEEN A CHANGE IN THE
006451,000265: 06,2170           00006                           EXTEND                                         #  RELEVANT BITS OF CHAN 30.
006452,000266: 06,2171           06030                           RXOR     CHAN30                                #  CHECK IF BITS 9,11-15 CHANGED
006453,000267: 06,2172           72764                           MASK     30RDMSK                               
006454,000268: 06,2173           00006                           EXTEND                                         
006455,000269: 06,2174           12224                           BZF      TNONTEST                              #  NO CHANGE IN STATUS.
006456,000270: 
006457,000271: 06,2175           54070                           TS       RUPTREG1                              #  SAVE BITS WHICH HAVE CHANGED.
006458,000272: 06,2176           23333                           LXCH     IMODES30                              #  UPDATE IMODES30.
006459,000273: 06,2177           00006                           EXTEND                                         
006460,000274: 06,2200           06001                           RXOR     LCHAN                                 
006461,000275: 06,2201           55333                           TS       IMODES30                              
006462,000276: 
006463,000277: 06,2202           44770                           CS       ONE                                   
006464,000278: 06,2203           56070                           XCH      RUPTREG1                              
006465,000279: 06,2204           00006                           EXTEND                                         

Page 148

006467,000281: 06,2205           62517                           BZMF     TLIM                                  #  CHANGE IN IMU TEMP.
006468,000282: 06,2206           12210                           TCF      NXTIFBIT                              #  BEGIN BIT SCAN.
006469,000283: 
006470,000284: 06,2207           64770                 -1        AD       ONE                                   #  (RE-ENTERS HERE FROM NXTIFAIL.)
006471,000285: 06,2210           24070        NXTIFBIT           INCR     RUPTREG1                              #  ADVANCE BIT POSITION NUMBER.
006472,000286: 06,2211           60000                 +1        DOUBLE                                         
006473,000287: 06,2212           54000                           TS       A                                     #  SKIP IF OVERFLOW.
006474,000288: 06,2213           12210                           TCF      NXTIFBIT                              #  LOOK FOR BIT.
006475,000289: 
006476,000290: 06,2214           56071                           XCH      RUPTREG2                              #  SAVE OVERFLOW-CORRECTED DATA.
006477,000291: 06,2215           50070                           INDEX    RUPTREG1                              #  SELECT NEW VALUE OF THIS BIT.
006478,000292: 06,2216           34753                           CAF      TONISSBT                              
006479,000293: 06,2217           71333                           MASK     IMODES30                              
006480,000294: 06,2220           50070                           INDEX    RUPTREG1                              
006481,000295: 06,2221           02760                           TC       IFAILJMP                              
006482,000296: 
006483,000297: 06,2222           10071        NXTIFAIL           CCS      RUPTREG2                              #  PROCESS ANY ADDITIONAL CHANGES.
006484,000298: 06,2223           12207                           TCF      NXTIFBIT   -1                         
006485,000299: 

Page 149

006487,000301:                                                                                                  #  PROGRAM NAME:  TNONTEST.
006488,000302: 
006489,000303:                                                                                                  #  FUNCTIONAL DESCRIPTION:  THIS PROGRAM HONORS REQUESTS FOR ISS INITIALIZATION.  ISS TURN-ON (CHANNEL 30 BIT 14)
006490,000304:                                                                                                  #  AND ISS OPERATE (CHANNEL 30 BIT 9) REQUESTS ARE TREATED AS A PAIR AND PROCESSING TAKES PLACE .480 SECONDS
006491,000305:                                                                                                  #  AFTER EITHER ONE APPEARS.  THIS INITIALIZATION TAKES ON ONE OF THE FOLLOWING THREE FORMS:
006492,000306: 
006493,000307:                                                                                                  #        1) ISS TURN-ON:  IN THIS SITUATION THE COMPUTER IS OPERATING WHEN THE ISS IS TURNED ON.  NOMINALLY,
006494,000308:                                                                                                  #        BOTH ISS TURN-ON AND ISS OPERATE APPEAR.  THE PLATFORM IS CAGED FOR 90 SECONDS AND THE ICDU'S ZEROED
006495,000309:                                                                                                  #        SO THAT AT THE END OF THE PROCESS THE GIMBAL LOCK MONITOR WILL FUNCTION PROPERLY.
006496,000310: 
006497,000311:                                                                                                  #        2) ICDU INITIALIZATION:  IN THIS CASE THE COMPUTER WAS PROBABLY TURNED ON WITH THE ISS IN OPERATE OR
006498,000312:                                                                                                  #        A FRESH START WAS DONE WITH THE ISS IN OPERATE.  IN THIS CASE ONLY ISS OPERATE IS ON.  THE ICDU'S ARE
006499,000313:                                                                                                  #        ZEROED SO THE GIMBAL LOCK MONITOR WILL FUNCTION.  AN EXCEPTION IS IF THE ISS IS IN GIMBAL LOCK AFTER
006500,000314:                                                                                                  #        A RESTART, THE ICDU'S WILL NOT BE ZEROED.
006501,000315: 
006502,000316:                                                                                                  #        3) RESTART WITH RESTARTABLE PROGRAM USING THE IMU:  IN THIS CASE, NO INITIALIZATION TAKES PLACE SINCE
006503,000317:                                                                                                  #        IT IS ASSUMED THAT THE USING PROGRAM DID THE INITIALIZATION AND THEREFORE T4RUPT SHOULD NOT INTERFERE.
006504,000318: 
006505,000319:                                                                                                  #  IMODES30 BIT 7 IS SET = 1 BY THE FIRST BIT (CHANNEL 30 BIT 14 OR 9) WHICH ARRIVES.  FOLLOWING THIS. TNONTEST IS
006506,000320:                                                                                                  #  ENTERED, FINDS BIT 7 = 1 BUT BIT 8 = 0, SO IT SETS BIT 8 = 1 AND EXITS.  THE NEXT TIME IT FINDS BIT 8 = 1 AND
006507,000321:                                                                                                  #  PROCEEDS, SETTING BITS 8 AND 7 = 0.  AT PROCTNON, IF ISS TURN-ON REQUEST IS PRESENT, THE ISS IS CAGED (ZERO +
006508,000322:                                                                                                  #  COARSE).  IF ISS OPERATE IS NOT PRESENT PROGRAM ALARM 00213 IS ISSUED.  AT THE END OF A 90 SECOND CAGE, BIT 2
006509,000323:                                                                                                  #  OF IMODES30 IS TESTED.  IF IT IS = 1, ISS TURN-ON WAS NOT PRESENT FOR THE ENTIRE 90 SECONDS.  IN THAT CASE, IF
006510,000324:                                                                                                  #  THE ISS TURN-ON REQUEST IS PRESENT THE 90 SECOND WAIT IS REPEATED,  OTHERWISE NO ACTION OCCURS UNLESS A PROGRAM
006511,000325:                                                                                                  #  WAS WAITING FOR THE INITIALIZATION IN WHICH CASE THE PROGRAM IS GIVEN AN IMUSTALL ERROR RETURN.  IF THE DELAY
006512,000326:                                                                                                  #  WENT PROPERLY, THE ISS DELAY OUTBIT IS SENT AND THE ICDU'S ZEROED.  A TASK IS INITIATED TO REMOVE THE PIPA FAIL
006513,000327:                                                                                                  #  INHIBIT BIT IN 10.24 SECONDS.  IF A MISSION PROGRAM WAS WAITING IT IS INFORMED VIA ENDIMU.
006514,000328: 
006515,000329:                                                                                                  #  AT PROCTNON, IF ONLY ISS OPERATE IS PRESENT (OPONLY), THE CDU'S ARE ZEROED UNLESS THE PLATFORM IS IN COARSE
006516,000330:                                                                                                  #  ALIGN (= GIMBAL LOCK HERE) OR A MISSION PROGRAM IS USING THE IMU (IMUSEFLG = 1).
006517,000331: 
006518,000332:                                                                                                  #  CALLING SEQUENCE:  T4RUPT EVERY 480 MILLISECONDS AFTER IMUMON.
006519,000333: 
006520,000334:                                                                                                  #  JOBS OR TASKS INITIATED:  1) ENDTNON, 90 SECONDS AFTER CAGING STARTED.  2) ISSUP, 4 SECONDS AFTER CAGING DONE.
006521,000335:                                                                                                  #        3) PFAILOK, 10.24 SECONDS AFTER INITIALIZATION COMPLETED.  4) UNZ2, 320 MILLISECONDS AFTER ZEROING
006522,000336:                                                                                                  #        STARTED.
006523,000337: 
006524,000338:                                                                                                  #  SUBROUTINES CALLED: CAGESUB, CAGESUB2, ZEROICDU, ENDIMU, IMUBAD, NOATTOFF, SETISSW, VARDELAY.
006525,000339: 
006526,000340:                                                                                                  #  ERASABLE INITIALIZATION:  SEE IMUMON.
006527,000341: 
006528,000342:                                                                                                  #  ALARMS:  PROGRAM ALARM 00213 IF ISS TURN-ON REQUESTED WITHOUT ISS OPERATE.
006529,000343: 
006530,000344:                                                                                                  #  EXIT:  ENDTNON EXITS TO C33TEST.  TASKS HAVING TO DO WITH INITIALIZATION EXIT AS FOLLOWS:  MISSION PROGRAM
006531,000345:                                                                                                  #  WAITING AND INITIALIZATION COMPLETE, EXIT TO ENDIMU, MISSION PROGRAM WAITING AND INITIALIZATION FAILED, EXIT TO
006532,000346:                                                                                                  #  IMUBAD, IMU NOT IN USE, EXIT TO TASKOVER.
006533,000347: 
006534,000348:                                                                                                  #  OUTPUT:  ISS INITIALIZED.
006535,000349: 
006536,000350: 06,2224           41333        TNONTEST           CS       IMODES30                              #  AFTER PROCESSING ALL CHANGES, SEE IF IT

Page 150

006538,000352: 06,2225           74762                           MASK     ITNON1BT                              #  IS TIME TO ACT ON TURN-ON REQUEST
006539,000353: 06,2226           10000                           CCS      A                                     
006540,000354: 06,2227           12366                           TCF      C33TEST                               #  NO - EXAMINE CHANNEL 33.
006541,000355: 
006542,000356: 06,2230           34761                           CAF      ITNON2BT                              #  SEE IF FIRST OR 2ND SAMPLE
006543,000357: 06,2231           71333                           MASK     IMODES30                              
006544,000358: 06,2232           10000                           CCS      A                                     
006545,000359: 06,2233           12237                           TCF      PROCTNON                              #  REACT AFTER SECOND SAMPLE.
006546,000360: 
006547,000361: 06,2234           34761                           CAF      ITNON2BT                              #  IF FIRST SAMPLE, SET BIT TO REACT
006548,000362: 06,2235           27333                           ADS      IMODES30                              #  TIME.
006549,000363: 06,2236           12366                           TCF      C33TEST                               
006550,000364: 
006551,000365:                                                                                                  #  PROCESS IMU TURN-ON REQUESTS AFTER WAITING 1 SAMPLE FOR ALL SIGNALS TO ARRIVE.
006552,000366: 
006553,000367: 06,2237           34761        PROCTNON           CA       ITNON2BT                              
006554,000368: 06,2240           64762                           AD       ITNON1BT                              
006555,000369: 06,2241           40000                           COM                                            
006556,000370: 06,2242           71333                           MASK     IMODES30                              
006557,000371: 06,2243           55333                           TS       IMODES30                              
006558,000372: 06,2244           74753                           MASK     TONISSBT                              #  SEE IF TURN-ON REQUEST
006559,000373: 06,2245           10000                           CCS      A                                     
006560,000374: 06,2246           12342                           TCF      OPONLY                                #  OPERATE ON ONLY.
006561,000375: 
006562,000376: 06,2247           41333                           CS       IMODES30                              #  IF TURN-ON REQUEST, WE SHOULD HAVE IMU
006563,000377: 06,2250           74760                           MASK     IMUOPBIT                              #  OPERATE.
006564,000378: 06,2251           10000                           CCS      A                                     
006565,000379: 06,2252           12255                           TCF      +3                                    
006566,000380: 
006567,000381: 06,2253           05671                           TC       ALARM                                 #  ALARM IF NOT.
006568,000382: 06,2254           00213                           OCT      213                                   
006569,000383: 
006570,000384: 06,2255           02740                 +3        TC       CAGESUB                               
006571,000385: 
006572,000386: 06,2256           33670                           CAF      90SECS                                
006573,000387: 06,2257           05233                           TC       WAITLIST                              
006574,000388: 06,2260  E3,1474                                  EBANK=   CDUIND                                
006575,000389: 06,2260           02265 14063                     2CADR    ENDTNON                               
006576,000390: 
006577,000391: 06,2262           12366                           TCF      C33TEST                               
006578,000392: 
006579,000393: 06,2263           33670        RETNON             CAF      90SECS                                
006580,000394: 06,2264           05260                           TC       VARDELAY                              
006581,000395: 
006582,000396: 06,2265           44767        ENDTNON            CS       DLAYFAIL                              #  RESET TURN-ON REQUEST FAILBIT
006583,000397: 06,2266           71333                           MASK     IMODES30                              
006584,000398: 06,2267           57333                           XCH      IMODES30                              
006585,000399: 06,2270           74767                           MASK     DLAYFAIL                              #  IF IT WAS OFF, SEND ISS DELAY COMPLETE
006586,000400: 06,2271           00006                           EXTEND                                         

Page 151

006588,000402: 06,2272           12305                           BZF      ENDTNON2                              
006589,000403: 06,2273           34753                           CAF      TONISSBT                              #  IF IT WAS ON AND TURN-ON REQUEST NOW
006590,000404: 06,2274           71333                           MASK     IMODES30                              #  PRESENT, RE-ENTER 90 SEC DELAY IN WL.
006591,000405: 06,2275           00006                           EXTEND                                         
006592,000406: 06,2276           12263                           BZF      RETNON                                
006593,000407: 
006594,000408: 06,2277           40074                           CS       FLAGWRD0                              #  IF IT IS NOT ON NOW, SEE IF A PROG WAS
006595,000409: 06,2300           74761                           MASK     IMUSEFLG                              #  WAITING.
006596,000410: 06,2301           10000                           CCS      A                                     
006597,000411: 06,2302           15314                           TCF      TASKOVER                              
006598,000412: 06,2303           04655                           TC       POSTJUMP                              
006599,000413: 06,2304           17625                           CADR     IMUBAD                                #  UNSUCCESSFUL TURN-ON.
006600,000414: 
006601,000415: 06,2305           34752        ENDTNON2           CAF      BIT15                                 #  SEND ISS DELAY COMPLETE.
006602,000416: 06,2306           00006                           EXTEND                                         
006603,000417: 06,2307           05012                           WOR      CHAN12                                #  TURN OFF ISS DELAY COUNTER
006604,000418: 06,2310           04714                           TC       IBNKCALL                              #  TURN OFF NO ATT LAMP.
006605,000419: 06,2311           17207                           CADR     NOATTOFF                              
006606,000420: 
006607,000421: 06,2312           05511        UNZ2               TC       ZEROICDU                              
006608,000422: 
006609,000423: 06,2313           45001                           CS       BITS4&5                               #  REMOVE ZERO AND COARSE.
006610,000424: 06,2314           00006                           EXTEND                                         
006611,000425: 06,2315           03012                           WAND     CHAN12                                
006612,000426: 
006613,000427: 06,2316           35025                           CAF      7.9SEC                                #  WAIT 7.9 SEC FOR CTRS TO FIND GIMBALS
006614,000428: 06,2317           05260                           TC       VARDELAY                              
006615,000429: 
006616,000430: 06,2320           34763        ISSUP              CA       IMUNITBT                              
006617,000431: 06,2321           64765                           AD       IMUFINHT                              
006618,000432: 06,2322           64766                           AD       ICDUINHT                              
006619,000433: 06,2323           40000                           COM                                            #  REMOVE CAGING, IMUFAIL INHIBIT, AND
006620,000434: 06,2324           71333                           MASK     IMODES30                              #  ICDUFAIL INHIBIT FLAGS.
006621,000435: 06,2325           55333                           TS       IMODES30                              
006622,000436: 
006623,000437: 06,2326           44763                           CS       NOIMUDAP                              #  ENABLE DAP
006624,000438: 06,2327           71334                           MASK     IMODES33                              
006625,000439: 06,2330           55334                           TS       IMODES33                              
006626,000440: 
006627,000441: 06,2331           02706                           TC       SETISSW                               #  ISS WARNING MIGHT HAVE BEEN INHIBITED.
006628,000442: 
006629,000443: 06,2332           44752                           CS       BIT15                                 #  REMOVE IMU DELAY COMPLETE DISCRETE.
006630,000444: 06,2333           00006                           EXTEND                                         
006631,000445: 06,2334           03012                           WAND     CHAN12                                
006632,000446: 
006633,000447: 06,2335           35020                           CAF      4SECS                                 #  DONT ENABLE PROG ALARM ON PIP FAIL FOR
006634,000448: 06,2336           05233                           TC       WAITLIST                              #  ANOTHER 4 SECS.
006635,000449: 06,2337  E3,1474                                  EBANK=   CDUIND                                
006636,000450: 06,2337           03175 16063                     2CADR    PFAILOK                               

Page 152

006638,000452: 06,2341           15314                           TCF      TASKOVER                              
006639,000453: 
006640,000454: 06,2342           34765        OPONLY             CAF      BIT4                                  
006641,000455: 06,2343           00006                           EXTEND                                         #  IF OPERATE ON ONLY AND WE ARE IN COARSE
006642,000456: 06,2344           02012                           RAND     CHAN12                                #  ALIGN, DONT ZERO THE CDUS BECAUSE WE
006643,000457: 06,2345           10000                           CCS      A                                     #  MIGHT BE IN GIMBAL LOCK. USE V41N20 TO
006644,000458: 06,2346           12366                           TCF      C33TEST                               #  RECOVER.
006645,000459: 
006646,000460: 06,2347           34761                           CAF      IMUSEFLG                              #  OTHERWISE, ZERO THE COUNTERS
006647,000461: 06,2350           70074                           MASK     STATE                                 #  UNLESS SOMEONE IS USING THE IMU.
006648,000462: 06,2351           10000                           CCS      A                                     
006649,000463: 06,2352           12366                           TCF      C33TEST                               
006650,000464: 
006651,000465: 06,2353           02751                           TC       CAGESUB2                              #  SET TURNON FLAGS.
006652,000466: 
006653,000467: 06,2354           04714        ISSZERO            TC       IBNKCALL                              #  TURN OFF NO ATT LAMP
006654,000468: 06,2355           17207                           CADR     NOATTOFF                              #      IMU CAGE OFF ENTRY
006655,000469: 
006656,000470: 06,2356           34764                           CAF      BIT5                                  #  ISS CDU ZERO
006657,000471: 06,2357           00006                           EXTEND                                         
006658,000472: 06,2360           05012                           WOR      CHAN12                                
006659,000473: 
006660,000474: 06,2361           05511                           TC       ZEROICDU                              
006661,000475: 06,2362           34763                           CAF      BIT6                                  #  WAIT 300 MS FOR AGS TO RECEIVE SIGNAL.
006662,000476: 06,2363           05223                           TC       TWIDDLE                               
006663,000477: 06,2364           02312                           ADRES    UNZ2                                  
006664,000478: 06,2365           12366                           TCF      C33TEST                               
006665,000479: 

Page 153

006667,000481:                                                                                                  #  PROGRAM NAME:  C33TEST
006668,000482: 
006669,000483:                                                                                                  #  FUNCTIONAL DESCRIPTION:  THIS PROGRAM MONITORS THREE FLIP-FLOP INBITS OF CHANNEL 33 AND CALLS THE APPROPRIATE
006670,000484:                                                                                                  #  SUBROUTINE TO PROCESS A CHANGE.  IT IS ANALOGOUS TO IMUMON, WHICH MONITORS CHANNEL 30, EXCEPT THAT IT READS
006671,000485:                                                                                                  #  CHANNEL 33 WITH A WAND INSTRUCTION BECAUSE A 'WRITE' PULSE IS REQUIRED TO RESET THE FLIP-FLOPS.  THE BITS
006672,000486:                                                                                                  #  PROCESSED AND THE SUBROUTINES CALLED ARE:
006673,000487: 
006674,000488:                                                                                                  #        BIT     FUNCTION                SUBROUTINE
006675,000489:                                                                                                  #        ---     --------                ----------
006676,000490:                                                                                                  #         13     PIPA FAIL               PIPFAIL
006677,000491:                                                                                                  #         12     DOWNLINK TOO FAST       DNTMFAST
006678,000492:                                                                                                  #         11     UPLINK TOO FAST         UPTMFAST
006679,000493: 
006680,000494:                                                                                                  #  UPON ENTRY TO THE SUBROUTINE, THE NEW BIT STATE IS IN A.
006681,000495: 
006682,000496:                                                                                                  #  CALLING SEQUENCE:  EVERY 480 MILLISECONDS AFTER TNONTEST.
006683,000497: 
006684,000498:                                                                                                  #  JOBS OR TASKS INITIATED:  NONE.
006685,000499: 
006686,000500:                                                                                                  #  SUBROUTINES CALLED:  PIPFAIL, DNTMFAST AND UPTMFAST ON BIT CHANGES.
006687,000501: 
006688,000502:                                                                                                  #  ERASABLE INITIALIZATION:  C(IMODES33) = OCT 16000 ON A FRESH START OR RESTART, THEREFORE, THESE ALARMS WILL
006689,000503:                                                                                                  #  REAPPEAR IF THE CONDITIONS PERSIST.
006690,000504: 
006691,000505:                                                                                                  #  ALARMS:  NONE.
006692,000506: 
006693,000507:                                                                                                  #  EXIT:  GLOCKMON.
006694,000508: 
006695,000509:                                                                                                  #  OUTPUT:  UPDATED BITS 13, 12 AND 11 OF IMODES33 WITH CHANGES PROCESSED.
006696,000510: 
006697,000511: 06,2366           31334        C33TEST            CA       IMODES33                              #  SEE IF RELEVANT CHAN33 BITS HAVE
006698,000512: 06,2367           75055                           MASK     33RDMSK                               
006699,000513: 06,2370           54001                           TS       L                                     #  CHANGED.
006700,000514: 06,2371           35055                           CAF      33RDMSK                               
006701,000515: 06,2372           00006                           EXTEND                                         
006702,000516: 06,2373           03033                           WAND     CHAN33                                #  RESETS FLIP-FLOP INPUTS.
006703,000517: 06,2374           00006                           EXTEND                                         
006704,000518: 06,2375           06001                           RXOR     LCHAN                                 
006705,000519: 06,2376           00006                           EXTEND                                         
006706,000520: 06,2377           12426                           BZF      GLOCKMON                              #  ON NO CHANGE.
006707,000521: 
006708,000522: 06,2400           54070                           TS       RUPTREG1                              #  SAVE BITS WHICH HAVE CHANGED.
006709,000523: 06,2401           23334                           LXCH     IMODES33                              
006710,000524: 06,2402           00006                           EXTEND                                         
006711,000525: 06,2403           06001                           RXOR     LCHAN                                 
006712,000526: 06,2404           55334                           TS       IMODES33                              #  UPDATED IMODES33.
006713,000527: 
006714,000528: 06,2405           34772                           CAF      ZERO                                  
006715,000529: 06,2406           56070                           XCH      RUPTREG1                              
006716,000530: 06,2407           60000                           DOUBLE                                         

Page 154

006718,000532: 06,2410           12413                           TCF      NXTIBT     +1                         #  SCAN FOR BIT CHANGES.
006719,000533: 
006720,000534: 06,2411           64770                 -1        AD       ONE                                   
006721,000535: 06,2412           24070        NXTIBT             INCR     RUPTREG1                              
006722,000536: 06,2413           60000                 +1        DOUBLE                                         
006723,000537: 06,2414           54000                           TS       A                                     #  (CODING IDENTICAL TO CHAN 30).
006724,000538: 06,2415           12412                           TCF      NXTIBT                                
006725,000539: 
006726,000540: 06,2416           56071                           XCH      RUPTREG2                              
006727,000541: 06,2417           50070                           INDEX    RUPTREG1                              #  GET NEW VALUE OF BIT WHICH CHANGED.
006728,000542: 06,2420           34754                           CAF      PIP2FLBT                              
006729,000543: 06,2421           71334                           MASK     IMODES33                              
006730,000544: 06,2422           50070                           INDEX    RUPTREG1                              
006731,000545: 06,2423           02766                           TC       C33JMP                                
006732,000546: 
006733,000547: 06,2424           10071        NXTFL33            CCS      RUPTREG2                              #  PROCESS POSSIBLE ADDITIONAL CHANGES.
006734,000548: 06,2425           12411                           TCF      NXTIBT     -1                         
006735,000549: 

Page 155

006737,000551:                                                                                                  #  PROGRAM NAME:  GLOCKMON
006738,000552: 
006739,000553:                                                                                                  #  FUNCTIONAL DESCRIPTION:  THIS PROGRAM MONITORS THE CDUZ COUNTER TO DETERMINE WHETHER THE ISS IS IN GIMBAL LOCK
006740,000554:                                                                                                  #  AND TAKES ACTION IF IT IS.  THREE REGIONS OF MIDDLE GIMBAL ANGLE (MGA) ARE USED:
006741,000555: 
006742,000556:                                                                                                  #        1) ABS(MGA) LESS THAN OR EQUAL TO 70 DEGREES - NORMAL MODE.
006743,000557:                                                                                                  #        2) ABS(MGA) GREATER THAN 70 DEGREES AND LESS THAN OR EQUAL TO 85 DEGREES - GIMBAL LOCK LAMP TURNED ON.
006744,000558:                                                                                                  #        3) ABS(MGA) GREATER THAN 85 DEGREES - ISS PUT IN COARSE ALIGN AND NO ATT LAMP TURNED ON.
006745,000559: 
006746,000560:                                                                                                  #  CALLING SEQUENCE:  EVERY 480 MILLISECONDS AFTER C33TEST.
006747,000561: 
006748,000562:                                                                                                  #  JOBS OR TASKS INITIATED:  NONE.
006749,000563: 
006750,000564:                                                                                                  #  SUBROUTINES CALLED:   1) SETCOARS WHEN ABS(MGA) GREATER THAN 85 DEGREES AND ISS NOT IN COARSE ALIGN.
006751,000565:                                                                                                  #                        2) LAMPTEST BEFORE TURNING OFF GIMBAL LOCK LAMP.
006752,000566: 
006753,000567:                                                                                                  #  ERASABLE INITIALIZATION:
006754,000568:                                                                                                  #                1) FRESH START OR RESTART WITH NO GROUPS ACTIVE:  C(CDUZ) = 0, IMODES30 BIT 6 = 0, IMODES33 BIT 1 = 0.
006755,000569:                                                                                                  #                2) RESTART WITH GROUPS ACTIVE:  SAME AS FRESH START EXCEPT C(CDUZ) NOT CHANGED SO GIMBAL MONITOR
006756,000570:                                                                                                  #                                                PROCEEDS AS BEFORE.
006757,000571: 
006758,000572:                                                                                                  #  ALARMS:       1) MGA REGION (2) CAUSES GIMBAL LOCK LAMP TO BE LIT.
006759,000573:                                                                                                  #                2) MGA REGION (3) CAUSES THE ISS TO BE PUT IN COARSE ALIGN AND THE NO ATT LAMP TO BE LIT IF EITHER NOT
006760,000574:                                                                                                  #                   SO ALREADY.
006761,000575: 
006762,000576: 06,2426           10034        GLOCKMON           CCS      CDUZ                                  
006763,000577: 06,2427           12433                           TCF      GLOCKCHK                              #  SEE IF MAGNITUDE OF MGA IS GREATER THAN
006764,000578: 06,2430           12471                           TCF      SETGLOCK                              #  70 DEGREES.
006765,000579: 06,2431           12433                           TCF      GLOCKCHK                              
006766,000580: 06,2432           12471                           TCF      SETGLOCK                              
006767,000581: 
006768,000582: 06,2433           62516        GLOCKCHK           AD       -70DEGS                               
006769,000583: 06,2434           00006                           EXTEND                                         
006770,000584: 06,2435           62470                           BZMF     SETGLOCK   -1                         #  NO LOCK.
006771,000585: 
006772,000586: 06,2436           63557                           AD       -15DEGS                               #  SEE IF ABS(MGA) GREATER THAN 85 DEGS.
006773,000587: 06,2437           00006                           EXTEND                                         
006774,000588: 06,2440           62466                           BZMF     NOGIMRUN                              
006775,000589: 
006776,000590: 06,2441           34765                           CAF      BIT4                                  #  IF SO, SYSTEM SHOULD BE IN COARSE ALIGN
006777,000591: 06,2442           00006                           EXTEND                                         #  TO PREVENT GIMBAL RUN-AWAY.
006778,000592: 06,2443           02012                           RAND     CHAN12                                
006779,000593: 06,2444           10000                           CCS      A                                     
006780,000594: 06,2445           12466                           TCF      NOGIMRUN                              
006781,000595: 
006782,000596: 06,2446  E6,1465                                  EBANK=   DAPDATR1                              
006783,000597: 06,2446           35045                           CAF      EBANK6                                
006784,000598: 06,2447           54003                           TS       EBANK                                 
006785,000599: 06,2450           41465                           CS       DAPDATR1                              
006786,000600: 06,2451           74346                           MASK     PRIO30                                

Page 156

006788,000602: 06,2452           10000                           CCS      A                                     
006789,000603: 06,2453           12460                           TCF      CALLCRS                               #  NO
006790,000604: 
006791,000605: 06,2454           34770                           CAF      AVEGBIT                               #  YES, IS AVEG ON
006792,000606: 06,2455           70075                           MASK     FLAGWRD1                              
006793,000607: 06,2456           10000                           CCS      A                                     
006794,000608: 06,2457           12466                           TCF      NOGIMRUN                              #  YES, DON'T COARSE ALIGN
006795,000609: 
006796,000610: 06,2460           04714        CALLCRS            TC       IBNKCALL                              #  GO INTO COARSE ALIGN
006797,000611: 06,2461           17070                           CADR     SETCOARS                              
006798,000612: 
006799,000613: 06,2462           36211                           CAF      SIX                                   #  ENABLE ISS ERROR COUNTERS IN 60 MS
006800,000614: 06,2463           05233                           TC       WAITLIST                              
006801,000615: 06,2464  E3,1474                                  EBANK=   CDUIND                                
006802,000616: 06,2464           03064 16063                     2CADR    CA+ECE                                
006803,000617: 
006804,000618: 06,2466           34763        NOGIMRUN           CAF      BIT6                                  #  TURN ON GIMBAL LOCK LAMP.
006805,000619: 06,2467           12471                           TCF      SETGLOCK                              
006806,000620: 
006807,000621: 06,2470           34772                 -1        CAF      ZERO                                  
006808,000622: 06,2471           61241        SETGLOCK           AD       DSPTAB     +11D                       #  SEE IF PRESENT STATE OF GIMBAL LOCK LAMP
006809,000623: 06,2472           74763                           MASK     BIT6                                  #  AGREES WITH DESIRED STATE BY HALF ADDING
006810,000624: 06,2473           00006                           EXTEND                                         #  THE TWO.
006811,000625: 06,2474           15323                           BZF      GLOCKOK                               #  OK AS IS.
006812,000626: 
006813,000627: 06,2475           71241                           MASK     DSPTAB     +11D                       #  IF OFF, DONT TURN ON IF IMU BEING CAGED.
006814,000628: 06,2476           10000                           CCS      A                                     
006815,000629: 06,2477           12513                           TCF      GLAMPTST                              #  TURN OFF UNLESS LAMP TEST IN PROGRESS.
006816,000630: 
006817,000631: 06,2500           34763                           CAF      IMUNITBT                              
006818,000632: 06,2501           71333                           MASK     IMODES30                              
006819,000633: 06,2502           10000                           CCS      A                                     
006820,000634: 06,2503           15323                           TCF      GLOCKOK                               
006821,000635: 
006822,000636: 06,2504           41241        GLINVERT           CS       DSPTAB     +11D                       #  INVERT GIMBAL LOCK LAMP.
006823,000637: 06,2505           74763                           MASK     BIT6                                  
006824,000638: 06,2506           64752                           AD       BIT15                                 #  TO INDICATE CHANGE IN DSPTAB +11D.
006825,000639: 06,2507           57241                           XCH      DSPTAB     +11D                       
006826,000640: 06,2510           72160                           MASK     OCT37737                              
006827,000641: 06,2511           27241                           ADS      DSPTAB     +11D                       
006828,000642: 06,2512           15323                           TCF      GLOCKOK                               
006829,000643: 
006830,000644: 06,2513           02771        GLAMPTST           TC       LAMPTEST                              #  TURN OFF UNLESS LAMP TEST IN PROGRESS.
006831,000645: 06,2514           15323                           TCF      GLOCKOK                               
006832,000646: 06,2515           12504                           TCF      GLINVERT                              
006833,000647: 
006834,000648: 06,2516           63434        -70DEGS            DEC      -.38888                               #  -70 DEGREES SCALED IN HALF-REVOLUTIONS.
006835,000649: 06,2517  06,3557               -15DEGS            EQUALS   OCT75252                              #  SAME AS -.08333 DEC
006836,000650: 

Page 157

006838,000652:                                                                                                  #  PROGRAM NAME:  TLIM.
006839,000653: 
006840,000654:                                                                                                  #  FUNCTIONAL DESCRIPTION:  THIS PROGRAM MAINTAINS THE TEMP LAMP (BIT 4 OF CHANNEL 11) ON THE DSKY TO AGREE WITH
006841,000655:                                                                                                  #  THE TEMP SIGNAL FROM THE ISS (BIT 15 OF CHANNEL 30).  HOWEVER, THE LIGHT WILL NOT BE TURNED OFF IF A LAMP TEST
006842,000656:                                                                                                  #  IS IN PROGRESS.
006843,000657: 
006844,000658:                                                                                                  #  CALLING SEQUENCE:  CALLED BY IMUMON ON A CHANGE OF BIT 15 OF CHANNEL 30.
006845,000659: 
006846,000660:                                                                                                  #  JOBS OR TASKS INITIATED:  NONE.
006847,000661: 
006848,000662:                                                                                                  #  SUBROUTINES CALLED:  LAMPTEST.
006849,000663: 
006850,000664:                                                                                                  #  ERASABLE INITIALIZATION:  FRESH START AND RESTART TURN THE TEMP LAMP OFF.
006851,000665: 
006852,000666:                                                                                                  #  ALARMS:  TEMP LAMP TURNED ON WHEN IMU TEMP GOES OUT OF LIMITS.
006853,000667: 
006854,000668:                                                                                                  #  EXIT:  NXTIFAIL.
006855,000669: 
006856,000670:                                                                                                  #  OUTPUT:  SERVICE OF TEMP LAMP.                  IN A, EXCEPT FOR TLIM.
006857,000671: 
006858,000672: 06,2517           74750        TLIM               MASK     POSMAX                                #  REMOVE BIT FROM WORD OF CHANGES AND SET
006859,000673: 06,2520           54071                           TS       RUPTREG2                              #  DSKY TEMP LAMP ACCORDINGLY.
006860,000674: 
006861,000675: 06,2521           31333                           CA       IMODES30                              
006862,000676: 06,2522           74752                           MASK     TLIMBIT                               
006863,000677: 06,2523           00006                           EXTEND                                         
006864,000678: 06,2524           12531                           BZF      TEMPOK                                
006865,000679: 
006866,000680: 06,2525           34765                           CAF      BIT4                                  #  TURN ON LAMP.
006867,000681: 06,2526           00006                           EXTEND                                         
006868,000682: 06,2527           05011                           WOR      DSALMOUT                              
006869,000683: 06,2530           12222                           TCF      NXTIFAIL                              
006870,000684: 
006871,000685: 06,2531           02771        TEMPOK             TC       LAMPTEST                              #  IF TEMP NOW OK, DONT TURN OFF LAMP IF
006872,000686: 06,2532           12222                           TCF      NXTIFAIL                              #  LAMP TEST IN PROGRESS.
006873,000687: 
006874,000688: 06,2533           44765                           CS       BIT4                                  
006875,000689: 06,2534           00006                           EXTEND                                         
006876,000690: 06,2535           03011                           WAND     DSALMOUT                              #  TURN OFF TEMP CAUTION
006877,000691: 06,2536           12222                           TCF      NXTIFAIL                              
006878,000692: 

Page 158

006880,000694:                                                                                                  #  PROGRAM NAME:  ITURNON.
006881,000695: 
006882,000696:                                                                                                  #  FUNCTIONAL DESCRIPTION:  THIS PROGRAM IS CALLED BY IMUMON WHEN A CHANGE OF BIT 14 OF CHANNEL 30 (ISS TURN-ON
006883,000697:                                                                                                  #  REQUEST) IS DETECTED.  UPON ENTRY, ITURNON CHECKS IF A TURN-ON DELAY SEQUENCE HAS FAILED, AND IF SO, IT EXITS.
006884,000698:                                                                                                  #  IF NOT, IT CHECKS WHETHER THE TURN-ON REQUEST CHANGE IS TO ON OR OFF.  IF ON, IT SETS BIT 7 OF IMODES30 TO 1 SO
006885,000699:                                                                                                  #  THAT TNONTEST WILL INITIATE THE ISS INITIALIZATION SEQUENCE.  IF OFF, THE TURN-ON DELAY SIGNAL, CHANNEL 12 BIT
006886,000700:                                                                                                  #  15, IS CHECKED AND IF IT IS ON, ITURNON EXITS.  IF THE DELAY SIGNAL IS OFF, PROGRAM ALARM 00207 IS ISSUED, BIT 2
006887,000701:                                                                                                  #  OF IMODES30 IS SET TO 1 AND THE PROGRAM EXITS.
006888,000702: 
006889,000703:                                                                                                  #  THE SETTING OF BIT 2 OF IMODES30 (ISS DELAY SEQUENCE FAIL) INHIBITS THIS ROUTINE AND IMUOP FROM
006890,000704:                                                                                                  #  PROCESSING ANY CHANGES.  THIS BIT WILL BE RESET BY THE ENDTNON ROUTINE WHEN THE CURRENT 90 SECOND DELAY PERIOD
006891,000705:                                                                                                  #  ENDS.
006892,000706: 
006893,000707:                                                                                                  #  CALLING SEQUENCE:  FROM IMUMOM WHEN ISS TURN-ON REQUEST CHANGES STATE.
006894,000708: 
006895,000709:                                                                                                  #  JOBS OR TASKS INITIATED:  NONE.
006896,000710: 
006897,000711:                                                                                                  #  SUBROUTINES CALLED:  ALARM, IF THE ISS TURN-ON REQUEST IS NOT PRESENT FOR 90 SECONDS.
006898,000712: 
006899,000713:                                                                                                  #  ERASABLE INITIALIZATION:  FRESH START AND RESTART SET BIT 15 OF CHANNEL 12 AND BITS 2 AND 7 OF IMODES30 TO 0,
006900,000714:                                                                                                  #  AND BIT 14 OF IMODES30 TO 1.
006901,000715: 
006902,000716:                                                                                                  #  ALARMS: PROGRAM ALARM 00207 IS ISSUED IF THE ISS TURN-ON REQUEST SIGNAL IS NOT PRESENT FOR 90 SECONDS.
006903,000717: 
006904,000718:                                                                                                  #  EXIT:  NXTIFAIL.
006905,000719: 
006906,000720:                                                                                                  #  OUTPUT:  BIT 7 OF IMODES30 TO START ISS INITIALIZATION, OR BIT 2 OF IMODES30 AND PROGRAM ALARM 00207 TO INDICATE
006907,000721:                                                                                                  #  A FAILED TURN-ON SEQUENCE.
006908,000722: 
006909,000723: 06,2537           34767        ITURNON            CAF      DLAYFAIL                              #  IF DELAY REQUEST HAS GONE OFF
006910,000724: 06,2540           71333                           MASK     IMODES30                              #  PREMATURELY, DO NOT PROCESS ANY CHANGES
006911,000725: 06,2541           10000                           CCS      A                                     #  UNTIL THE CURRENT 90 SEC WAIT EXPIRES.
006912,000726: 06,2542           12222                           TCF      NXTIFAIL                              
006913,000727: 
006914,000728: 06,2543           34753                           CAF      TONISSBT                              #  SEE IF JUST ON OR OFF
006915,000729: 06,2544           71333                           MASK     IMODES30                              
006916,000730: 06,2545           00006                           EXTEND                                         
006917,000731: 06,2546           12562                           BZF      ITURNON2                              #  IF JUST ON.
006918,000732: 
006919,000733: 06,2547           34752                           CAF      BIT15                                 
006920,000734: 06,2550           00006                           EXTEND                                         #  SEE IF DELAY PRESENT DISCRETE HAS BEEN
006921,000735: 06,2551           02012                           RAND     CHAN12                                #  SENT. IF SO, ACTION COMPLETE.
006922,000736: 06,2552           00006                           EXTEND                                         
006923,000737: 06,2553           12555                           BZF      +2                                    
006924,000738: 06,2554           12222                           TCF      NXTIFAIL                              
006925,000739: 
006926,000740: 06,2555           34767                           CAF      DLAYFAIL                              #  IF NOT, SET BIT TO INDICATE REQUEST NOT
006927,000741: 06,2556           27333                           ADS      IMODES30                              #  PRESENT FOR FULL DURATION.
006928,000742: 06,2557           05671                           TC       ALARM                                 
006929,000743: 06,2560           00207                           OCT      207                                   
006930,000744: 06,2561           12222                           TCF      NXTIFAIL                              
006931,000745: 

Page 159

006933,000747: 06,2562           41333        ITURNON2           CS       IMODES30                              #  SET BIT7 TO INDICATE WAIT OF 1 SAMPLE
006934,000748: 06,2563           74762                           MASK     ITNON1BT                              
006935,000749: 06,2564           27333                           ADS      IMODES30                              
006936,000750: 06,2565           12222                           TCF      NXTIFAIL                              
006937,000751: 

Page 160

006939,000753:                                                                                                  #  PROGRAM NAME:  IMUCAGE.
006940,000754: 
006941,000755:                                                                                                  #  FUNCTIONAL DESCRIPTION:  THIS PROGRAM PROCESSES CHANGES OF THE IMUCAGE INBIT, CHANNEL 30 BIT 11.  IF THE BIT
006942,000756:                                                                                                  #  CHANGES TO 0 (CAGE BUTTON PRESSED), THE ISS IS CAGED (ICDU ZERO + COARSE ALIGN + NO ATT LAMP) UNTIL THE
006943,000757:                                                                                                  #  ASTRONAUT SELECTS ANOTHER PROGRAM TO ALIGN THE ISS.  ANY PULSE TRAINS TO THE ICDU'S AND GYRO'S ARE TERMINATED,
006944,000758:                                                                                                  #  THE ASSOCIATED OUTCOUNTERS ARE ZEROED AND THE GYRO'S ARE DE-SELECTED.  NO ACTION OCCURS WHEN THE BUTTON IS
006945,000759:                                                                                                  #  RELEASED (INBIT CHANGES TO 1).
006946,000760: 
006947,000761:                                                                                                  #  CALLING SEQUENCE:  BY IMUMON WHEN IMU CAGE BIT CHANGES.
006948,000762: 
006949,000763:                                                                                                  #  JOBS OR TASKS INITIATED:  NONE.
006950,000764: 
006951,000765:                                                                                                  #  SUBROUTINES CALLED:  CAGESUB.
006952,000766: 
006953,000767:                                                                                                  #  ERASABLE INITIALIZATION:  FRESH START AND RESTART SET BIT 11 OF IMODES30 TO 1.
006954,000768: 
006955,000769:                                                                                                  #  ALARMS: NONE.
006956,000770: 
006957,000771:                                                                                                  #  EXIT:  NXTIFAIL.
006958,000772: 
006959,000773:                                                                                                  #  OUTPUT:  ISS CAGED, COUNTERS ZEROED, PULSE TRAINS TERMINATED AND NO ATT LAMP LIT.
006960,000774: 
006961,000775: 06,2566           10000        IMUCAGE            CCS      A                                     #  NO ACTION IF GOING OFF.
006962,000776: 06,2567           12354                           TCF      ISSZERO                               
006963,000777: 06,2570           35021                           CA       LOW9                                  #  TERMINATE ICDU, OPTICS, GYRO PULSE TRAINS
006964,000778: 06,2571           00006                           EXTEND                                         
006965,000779: 06,2572           03014                           WAND     CHAN14                                
006966,000780: 
006967,000781: 06,2573           42774                           CS       OCT272                                #  KNOCK DOWN TVC ENABLE, IMU ERROR COUNTER
006968,000782: 06,2574           00006                           EXTEND                                         #    ENABLE, ZERO ICDU, COARSE ALIGN
006969,000783: 06,2575           03012                           WAND     CHAN12                                #    ENABLE, OPTICS ERR CNTR ENABLE
006970,000784: 
006971,000785: 06,2576           44762                           CS       ENGONBIT                              #  CLEAR ENGINE ON FLAG
006972,000786: 06,2577           70101                           MASK     FLAGWRD5                              
006973,000787: 06,2600           54101                           TS       FLAGWRD5                              
006974,000788: 06,2601           44754                           CS       BIT13                                 #  TURN OFF ENGINE
006975,000789: 06,2602           00006                           EXTEND                                         
006976,000790: 06,2603           03011                           WAND     DSALMOUT                              
006977,000791: 
006978,000792: 06,2604           02746                           TC       CAGESUB1                              
006979,000793: 
006980,000794: 06,2605           04714                           TC       IBNKCALL                              #  KNOCK DOWN TRACK, REFSMMAT, DRIFT FLAGS
006981,000795: 06,2606           17121                           CADR     RNDREFDR                              
006982,000796: 
006983,000797: 06,2607           44772                           CS       ZERO                                  #  ZERO COMMAND OUT-COUNTERS
006984,000798: 06,2610           54050                           TS       CDUXCMD                               
006985,000799: 06,2611           54051                           TS       CDUYCMD                               
006986,000800: 06,2612           54052                           TS       CDUZCMD                               
006987,000801: 06,2613           54047                           TS       GYROCMD                               

Page 161

006989,000803: 06,2614           42777                           CS       OCT740                                #  HAVING WAITED AT LEAST 27 MCT FROM
006990,000804: 06,2615           00006                           EXTEND                                         #  GYRO PULSE TRAIN TERMINATION, WE CAN
006991,000805: 06,2616           03014                           WAND     CHAN14                                #  DE-SELECT THE GYROS.
006992,000806: 06,2617           12222                           TCF      NXTIFAIL                              
006993,000807: 

Page 162

006995,000809:                                                                                                  #  PROGRAM NAME:  IMUOP.
006996,000810: 
006997,000811:                                                                                                  #  FUNCTIONAL DESCRIPTION:  THIS PROGRAM PROCESSES CHANGES IN THE ISS OPERATE DISCRETE, BIT 9 OF CHANNEL 30.
006998,000812:                                                                                                  #  IF THE INBIT CHANGES TO 0, INDICATING ISS ON, IMUOP GENERALLY SETS BIT 7 OF IMODES30 TO 1 TO REQUEST ISS
006999,000813:                                                                                                  #  INITIALIZATION VIA TNONTEST.  AN EXCEPTION IS DURING A FAILED ISS DELAY DURING WHICH BIT 2 OF IMODES30 IS SET
007000,000814:                                                                                                  #  TO 1 AND NO FURTHER INITIALIZATION IS REQUIRED.  WHEN THE INBIT CHANGES TO 1, INDICATING ISS OFF, IMUSEFLG IS
007001,000815:                                                                                                  #  TESTED TO SEE IF ANY PROGRAM WAS USING THE ISS.  IF SO, PROGRAM ALARM 00214 IS ISSUED.
007002,000816: 
007003,000817:                                                                                                  #  CALLING SEQUENCE:  BY IMUMON WHEN BIT 9 OF CHANNEL 30 CHANGES.
007004,000818: 
007005,000819:                                                                                                  #  JOBS OR TASKS INITIATED:  NONE.
007006,000820: 
007007,000821:                                                                                                  #  SUBROUTINES CALLED:  ALARM, IF ISS IS TURNED OFF WHILE IN USE.
007008,000822: 
007009,000823:                                                                                                  #  ERASABLE INITIALIZATION:  ON FRESH START AND RESTART, BIT 9 OF IMODES30 IS SET TO 1 EXCEPT WHEN THE GIMBAL LOCK
007010,000824:                                                                                                  #  LAMP IS ON, IN WHICH CASE IT IS SET TO 0.  THIS PREVENTS ICDU ZERO BY TNONTEST WITH THE ISS IN GIMBAL LOCK.
007011,000825: 
007012,000826:                                                                                                  #  ALARMS:  PROGRAM ALARM 00214 IF THE ISS IS TURNED OFF WHILE IN USE.
007013,000827: 
007014,000828:                                                                                                  #  EXIT:  NXTIFAIL.
007015,000829: 
007016,000830:                                                                                                  #  OUTPUT:  ISS INITIALIZATION REQUEST (IMODES30 BIT 7) OR PROGRAM ALARM 00214.
007017,000831: 
007018,000832: 06,2620           00006        IMUOP              EXTEND                                         #  IF OPERATE JUST ON, WAIT 1 SAMPLE.
007019,000833: 06,2621           12646                           BZF      IMUOP2                                
007020,000834: 
007021,000835: 06,2622           41334                           CS       IMODES33                              #  DISABLE DAP
007022,000836: 06,2623           74763                           MASK     NOIMUDAP                              
007023,000837: 06,2624           27334                           ADS      IMODES33                              
007024,000838: 
007025,000839: 06,2625           04714                           TC       IBNKCALL                              #  KNOCK DOWN TRACK, REFSMMAT, DRIFT FLAGS
007026,000840: 06,2626           17121                           CADR     RNDREFDR                              
007027,000841: 
007028,000842: 06,2627           44760                           CS       UTBIT                                 
007029,000843: 06,2630           70104                           MASK     FLAGWRD8                              
007030,000844: 06,2631           54104                           TS       FLAGWRD8                              
007031,000845: 
007032,000846: 06,2632           34762                           CA       RNDVZBIT                              #  TURN OFF FLAGS
007033,000847: 06,2633           64761                           AD       IMUSEBIT                              
007034,000848: 06,2634           40000                           COM                                            
007035,000849: 06,2635           70074                           MASK     FLAGWRD0                              
007036,000850: 06,2636           56074                           XCH      FLAGWRD0                              #  IF GOING OFF, ALARM IF PROG USING IMU
007037,000851: 06,2637           40000                           COM                                            
007038,000852: 06,2640           74761                           MASK     IMUSEFLG                              
007039,000853: 06,2641           10000                           CCS      A                                     
007040,000854: 06,2642           12222                           TCF      NXTIFAIL                              
007041,000855: 
007042,000856: 06,2643           05671                           TC       ALARM                                 
007043,000857: 06,2644           00214                           OCT      214                                   
007044,000858: 06,2645           12222                           TCF      NXTIFAIL                              
007045,000859: 

Page 163

007047,000861: 06,2646           34767        IMUOP2             CAF      DLAYFAIL                              
007048,000862: 06,2647           71333                           MASK     IMODES30                              
007049,000863: 06,2650           10000                           CCS      A                                     
007050,000864: 06,2651           12222                           TCF      NXTIFAIL                              #  IF SO, DONT PROCESS UNTIL PRESENT 90
007051,000865: 06,2652           12562                           TCF      ITURNON2                              #  SECONDS EXPIRES.
007052,000866: 

Page 164

007054,000868:                                                                                                  #  PROGRAM NAME:  PIPFAIL
007055,000869: 
007056,000870:                                                                                                  #  FUNCTIONAL DESCRIPTION:  THIS PROGRAM PROCESSES CHANGES OF BIT 13 OF CHANNEL 33, PIPA FAIL.  IT SETS BIT 10 OF
007057,000871:                                                                                                  #  IMODES30 TO AGREE.  IT CALLS SETISSW IN CASE A PIPA FAIL NECESSITATES AN ISS WARNING.  IF NOT, I.E., IMODES30
007058,000872:                                                                                                  #  BIT 1 = 1, AND A PIPA FAIL IS PRESENT AND THE ISS IS NOT BEING INITIALIZED, PROGRAM ALARM 00212 IS ISSUED.
007059,000873: 
007060,000874:                                                                                                  #  CALLING SEQUENCE:  BY C33TEST ON CHANGES OF CHANNEL 33 BIT 13.
007061,000875: 
007062,000876:                                                                                                  #  JOBS OR TASKS INITIATED:  NONE.
007063,000877: 
007064,000878:                                                                                                  #  SUBROUTINES CALLED:  1) SETISSW, AND 2) ALARM (SEE FUNCTIONAL DESCRIPTION).
007065,000879: 
007066,000880:                                                                                                  #  ERASABLE INITIALIZATION:  SEE IMUMON FOR INITIALIZATION OF IMODES30.  THE RELAVANT BITS ARE 5, 7, 8, 9, AND 10.
007067,000881: 
007068,000882:                                                                                                  #  ALARMS:  PROGRAM ALARM 00212 IF PIPA FAIL IS PRESENT BUT NEITHER ISS WARNING IS TO BE ISSUED NOR THE ISS IS
007069,000883:                                                                                                  #  BEING INITIALIZED.
007070,000884: 
007071,000885:                                                                                                  #  EXIT:  NXTFL33.
007072,000886: 
007073,000887:                                                                                                  #  OUTPUT:  PROGRAM ALARM 00212 AND ISS WARNING MAINTENANCE.
007074,000888: 
007075,000889: 06,2653           10000        PIPFAIL            CCS      A                                     #  SET BIT10 IN IMODES30 SO ALL ISS WARNING
007076,000890: 06,2654           34757                           CAF      PIPAFLBT                              #  INFO IS IN ONE REGISTER
007077,000891: 06,2655           57333                           XCH      IMODES30                              
007078,000892: 06,2656           73000                           MASK     -BIT10                                
007079,000893: 06,2657           27333                           ADS      IMODES30                              
007080,000894: 
007081,000895: 06,2660           02706                           TC       SETISSW                               
007082,000896: 
007083,000897: 06,2661           41333                           CS       IMODES30                              #  IF PIP FAIL DOESNT LIGHT ISS WARNING, DO
007084,000898: 06,2662           74770                           MASK     ACCFINHT                              #  A PROGRAM ALARM IF IMU OPERATING BUT NOT
007085,000899: 06,2663           10000                           CCS      A                                     #  CAGED OR BEING TURNED ON.
007086,000900: 06,2664           12424                           TCF      NXTFL33                               
007087,000901: 
007088,000902: 06,2665           31333                           CA       IMODES30                              
007089,000903: 06,2666           72776                           MASK     OCT1720                               
007090,000904: 06,2667           10000                           CCS      A                                     
007091,000905: 06,2670           12424                           TCF      NXTFL33                               #  ABOVE CONDITION NOT MET.
007092,000906: 
007093,000907: 06,2671           05671                           TC       ALARM                                 
007094,000908: 06,2672           00212                           OCT      212                                   
007095,000909: 06,2673           12424                           TCF      NXTFL33                               
007096,000910: 

Page 165

007098,000912:                                                                                                  #  PROGRAM NAMES:  DNTMFAST, UPTMFAST
007099,000913: 
007100,000914:                                                                                                  #  FUNCTIONAL DESCRIPTION:  THESE PROGRAMS PROCESS CHANGES OF BITS 12 AND 11 OF CHANNEL 33.  IF A BIT CHANGES TO A
007101,000915:                                                                                                  #  0, A PROGRAM ALARM IS ISSUED.  THE ALARMS ARE:
007102,000916: 
007103,000917:                                                                                                  #        BIT     ALARM   CAUSE
007104,000918:                                                                                                  #        ---     -----   -----
007105,000919:                                                                                                  #         12     01105   DOWNLINK TOO FAST
007106,000920:                                                                                                  #         11     01106   UPLINK TOO FAST
007107,000921: 
007108,000922:                                                                                                  #  CALLING SEQUENCE:  BY C33TEST ON A BIT CHANGE.
007109,000923: 
007110,000924:                                                                                                  #  SUBROUTINES CALLED:  ALARM, IF A BIT CHANGES TO A 0.
007111,000925: 
007112,000926:                                                                                                  #  ERASABLE INITIALIZATION:  FRESH START OR RESTART, BITS 12 AND 11 OF IMODES33 ARE SET TO 1.
007113,000927: 
007114,000928:                                                                                                  #  ALARMS:  SEE FUNCTIONAL DESCRIPTION.
007115,000929: 
007116,000930:                                                                                                  #  EXIT:  NXTFL33.
007117,000931: 
007118,000932:                                                                                                  #  OUTPUT:  PROGRAM ALARM ON A BIT CHANGE TO 0.
007119,000933: 
007120,000934: 06,2674           10000        DNTMFAST           CCS      A                                     #  DO PROG ALARM IF TM TOO FAST.
007121,000935: 06,2675           12424                           TCF      NXTFL33                               
007122,000936: 
007123,000937: 06,2676           05671                           TC       ALARM                                 
007124,000938: 06,2677           01105                           OCT      1105                                  
007125,000939: 06,2700           12424                           TCF      NXTFL33                               
007126,000940: 
007127,000941: 06,2701           10000        UPTMFAST           CCS      A                                     #  SAME AS DNLINK TOO FAST WITH DIFFERENT
007128,000942: 06,2702           12424                           TCF      NXTFL33                               #  ALARM CODE.
007129,000943: 
007130,000944: 06,2703           05671                           TC       ALARM                                 
007131,000945: 06,2704           01106                           OCT      1106                                  
007132,000946: 06,2705           12424                           TCF      NXTFL33                               
007133,000947: 

Page 166

007135,000949:                                                                                                  #  PROGRAM NAME:  SETISSW
007136,000950: 
007137,000951:                                                                                                  #  FUNCTIONAL DESCRIPTION:  THIS PROGRAM TURNS THE ISS WARNING LAMP ON AND OFF (CHANNEL 11 BIT 1 = 1 FOR ON,
007138,000952:                                                                                                  #  0 FOR OFF) DEPENDING ON THE STATUS OF IMODES30 BITS 13 (IMU FAIL) AND 4 (INHIBIT IMU FAIL), 12 (ICDU FAIL) AND
007139,000953:                                                                                                  #  3 (INHIBIT ICDU FAIL), AND 10 (PIPA FAIL) AND 1 (INHIBIT PIPA FAIL).  THE LAMP IS LEFT ON IF A LAMP TEST IS IN
007140,000954:                                                                                                  #  PROGRESS.
007141,000955: 
007142,000956:                                                                                                  #  CALLING SEQUENCE:  CALLED BY IMUMON ON CHANGES TO IMU FAIL AND ICDU FAIL.  CALLED BY IFAILOK AND PFAILOK UPON
007143,000957:                                                                                                  #  REMOVAL OF THE FAIL INHIBITS.  CALLED BY PIPFAIL WHEN THE PIPA FAIL DISCRETE CHANGES.  IT IS CALLED BY PIPUSE
007144,000958:                                                                                                  #  SINCE THE PIPA FAIL PROGRAM ALARM MAY NECESSITATE AN ISS WARNING, AND LIKEWISE BY PIPFREE WHEN THE ALARM DEPARTS
007145,000959:                                                                                                  #  AND IT IS CALLED BY IMUZERO3 AND ISSUP AFTER THE FAIL INHIBITS HAVE BEEN REMOVED.
007146,000960: 
007147,000961:                                                                                                  #  JOBS OR TASKS INITIATED:  NONE.
007148,000962: 
007149,000963:                                                                                                  #  SUBROUTINES CALLED:  NONE.
007150,000964: 
007151,000965:                                                                                                  #  ERASABLE INITIALIZATION:
007152,000966: 
007153,000967:                                                                                                  #        1) IMODES30 - SEE IMUMON.
007154,000968:                                                                                                  #        2) IMODES33 BIT 1 = 0 (LAMP TEST NOT IN PROGRESS).
007155,000969: 
007156,000970:                                                                                                  #  ALARMS:  ISS WARNING.
007157,000971: 
007158,000972:                                                                                                  #  EXIT: VIA Q.
007159,000973: 
007160,000974:                                                                                                  #  OUTPUT: ISS WARNING LAMP SET PROPERLY.
007161,000975: 
007162,000976: 06,2706           34776        SETISSW            CAF      OCT15                                 #  SET ISS WARNING USING THE FAIL BITS IN
007163,000977: 06,2707           71333                           MASK     IMODES30                              #  BITS 13, 12, AND 10 OF IMODES30 AND THE
007164,000978: 06,2710           00006                           EXTEND                                         #  FAILURE INHIBIT BITS IN POSITIONS
007165,000979: 06,2711           74757                           MP       BIT10                                 #  4, 3, AND 1.
007166,000980: 06,2712           31333                           CA       IMODES30                              
007167,000981: 06,2713           00006                           EXTEND                                         
007168,000982: 06,2714           04001                           ROR      LCHAN                                 #  0 INDICATES FAILURE.
007169,000983: 06,2715           40000                           COM                                            
007170,000984: 06,2716           75054                           MASK     OCT15000                              
007171,000985: 06,2717           10000                           CCS      A                                     
007172,000986: 06,2720           12731                           TCF      ISSWON                                #  FAILURE.
007173,000987: 
007174,000988: 06,2721           34770        ISSWOFF            CAF      LMPTSTBT                              #  DONT TURN OFF ISS WARNING IF LAMP TEST
007175,000989: 06,2722           71334                           MASK     IMODES33                              #  IN PROGRESS.
007176,000990: 06,2723           10000                           CCS      A                                     
007177,000991: 06,2724           00002                           TC       Q                                     
007178,000992: 
007179,000993: 06,2725           44770                           CS       BIT1                                  
007180,000994: 06,2726           00006                           EXTEND                                         
007181,000995: 06,2727           03011                           WAND     DSALMOUT                              #  TURN OFF ISS WARNING
007182,000996: 06,2730           00002                           TC       Q                                     
007183,000997: 
007184,000998: 06,2731           00006        ISSWON             EXTEND                                         

Page 167

007186,001000: 06,2732           22066                           QXCH     ITEMP6                                
007187,001001: 06,2733           05770                           TC       VARALARM                              #  TELL EVERYONE WHAT CAUSED THE ISSWARNING
007188,001002: 06,2734           34770                           CAF      BIT1                                  
007189,001003: 06,2735           00006                           EXTEND                                         
007190,001004: 06,2736           05011                           WOR      DSALMOUT                              #  TURN ON ISS WARNING
007191,001005: 06,2737           00066                           TC       ITEMP6                                
007192,001006: 06,2740           47667        CAGESUB            CS       BIT15+6                               #  SET OUTBITS + INTERNAL FLAGS FOR
007193,001007: 06,2741           00006                           EXTEND                                         #  SYSTEM TURN-ON OR CAGE. DISABLE THE
007194,001008: 06,2742           03012                           WAND     CHAN12                                #  ERROR COUNTER AND REMOVE IMU DELAY COMP.
007195,001009: 06,2743           35001                           CAF      BITS4&5                               #  SEND ZERO AND COARSE.
007196,001010: 06,2744           00006                           EXTEND                                         
007197,001011: 06,2745           05012                           WOR      CHAN12                                
007198,001012: 
007199,001013: 06,2746           41241        CAGESUB1           CS       DSPTAB     +11D                       #  TURN ON NO ATT LAMP
007200,001014: 06,2747           77664                           MASK     OC40010                               
007201,001015: 06,2750           27241                           ADS      DSPTAB     +11D                       
007202,001016: 
007203,001017: 06,2751           41333        CAGESUB2           CS       IMODES30                              #  SET FLAGS TO INDICATE CAGING OR TURN-ON
007204,001018: 06,2752           75012                           MASK     OCT75                                 #  AND INHIBIT ALL ISS WARNING INFO
007205,001019: 06,2753           27333                           ADS      IMODES30                              
007206,001020: 
007207,001021: 06,2754           41334                           CS       IMODES33                              #  DISABLE DAP AUTO AND HOLD MODES
007208,001022: 06,2755           74763                           MASK     NOIMUDAP                              
007209,001023: 06,2756           27334                           ADS      IMODES33                              
007210,001024: 
007211,001025: 06,2757           00002                           TC       Q                                     
007212,001026: 
007213,001027: 06,2760  06,2706               IMUFAIL            EQUALS   SETISSW                               
007214,001028: 06,2760  06,2706               ICDUFAIL           EQUALS   SETISSW                               
007215,001029: 

Page 168

007217,001031:                                                                                                  #  JUMP TABLES AND CONSTANTS.
007218,001032: 
007219,001033: 06,2760           12537        IFAILJMP           TCF      ITURNON                               #  CHANNEL 30 DISPATCH.
007220,001034: 06,2761           12706                           TCF      IMUFAIL                               
007221,001035: 06,2762           12706                           TCF      ICDUFAIL                              
007222,001036: 06,2763           12566                           TCF      IMUCAGE                               
007223,001037: 06,2764           76400        30RDMSK            OCT      76400                                 #  (BIT 10 NOT SAMPLED HERE).
007224,001038: 06,2765           12620                           TCF      IMUOP                                 
007225,001039: 
007226,001040: 06,2766           12653        C33JMP             TCF      PIPFAIL                               #  CHANNEL 33 DISPATCH.
007227,001041: 06,2767           12674                           TCF      DNTMFAST                              
007228,001042: 06,2770           12701                           TCF      UPTMFAST                              
007229,001043: 
007230,001044:                                                                                                  #  SUBROUTINE TO SKIP IF LAMP TEST NOT IN PROGRESS.
007231,001045: 
007232,001046: 06,2771           41334        LAMPTEST           CS       IMODES33                              #  BIT 1 OF IMODES33 = 1 IF LAMP TEST IN
007233,001047: 06,2772           74770                           MASK     LMPTSTBT                              #  PROGRESS
007234,001048: 06,2773           15651                           TCF      INCRQCK                               
007235,001049: 06,2774     5055               33RDMSK            EQUALS   PRIO16                                
007236,001050: 06,2774     7664               OC40010            EQUALS   OT40010                               
007237,001051: 06,2774           00272        OCT272             OCT      00272                                 
007238,001052: 06,2775           00300        BITS7&8            OCT      300                                   
007239,001053: 06,2776           01720        OCT1720            OCT      1720                                  
007240,001054: 06,2777           00740        OCT740             OCT      00740                                 
007241,001055: 06,3000     5054               OCT15000           EQUALS   PRIO15                                
007242,001056: 06,3000           76777        -BIT10             OCT      -1000                                 
007243,001057: 
007244,001058: 06,3001     5775               120MS              =        OCT14                                 #  (DEC 12)
007245,001059: 06,3001     5323               GLOCKOK            EQUALS   RESUME                                
007246,001060: 

Page 169

007248,001062:                                                                                                  #  OPTICS MONITORING AND ZERO ROUTINES
007249,001063: 06,3001           31337        OPTMON             CA       OPTMODES                              #  MONITOR OPTICS INBITS IN CHAN 30 AND 33
007250,001064: 06,3002           00006                           EXTEND                                         
007251,001065: 06,3003           06030                           RXOR     CHAN30                                #  LOOK FOR OCDU FAIL BIT CHANGE
007252,001066: 06,3004           74762                           MASK     OCDUFBIT                              
007253,001067: 06,3005           54070                           TS       RUPTREG1                              #  STORE CHANGE BIT
007254,001068: 06,3006           10000                           CCS      A                                     
007255,001069: 06,3007           03221                           TC       OCDUFTST                              #  PROCESS OCDUFAIL BIT CHANGE
007256,001070: 
007257,001071: 06,3010           11323        33OPTMON           CCS      OPTIND                                #  BYPASS IF TVC TAKEOVER
007258,001072: 06,3011           13015                           TCF      +4                                    
007259,001073: 06,3012           13015                           TCF      +3                                    
007260,001074: 06,3013           03256                           TC       OPDISAB                               #  DISABLE OPTICS ERR CNTRS
007261,001075: 06,3014           15323                           TCF      RESUME                                
007262,001076: 
007263,001077: 06,3015           31337                           CA       OPTMODES                              #  LOOK FOR OPTICS MODE SWITCH CHANGE
007264,001078: 06,3016           00006                           EXTEND                                         
007265,001079: 06,3017           06033                           RXOR     CHAN33                                
007266,001080: 06,3020           75001                           MASK     OCTHIRTY                              
007267,001081: 06,3021           26070                           ADS      RUPTREG1                              #  STORE INBIT CHANGES
007268,001082: 06,3022           23337                           LXCH     OPTMODES                              
007269,001083: 06,3023           00006                           EXTEND                                         
007270,001084: 06,3024           06001                           RXOR     LCHAN                                 
007271,001085: 06,3025           55337                           TS       OPTMODES                              #  UPDATE OPTMODES TO SHOW BIT CHANGES
007272,001086: 
007273,001087: 06,3026           30374                           CA       C31FLWRD                              
007274,001088: 06,3027           75001                           MASK     OCTHIRTY                              
007275,001089: 06,3030           00006                           EXTEND                                         
007276,001090: 06,3031           13037                           BZF      +6                                    
007277,001091: 06,3032           54001                           TS       L                                     #  USE FAILWORD INDICATORS
007278,001092: 06,3033           45001                           CS       OCTHIRTY                              
007279,001093: 06,3034           71337                           MASK     OPTMODES                              
007280,001094: 06,3035           60001                           AD       L                                     
007281,001095: 06,3036           55337                           TS       OPTMODES                              
007282,001096: 06,3037           41337                           CS       OPTMODES                              #  SAMPLE CURRENT SWITCH SETTING
007283,001097: 06,3040           75001                           MASK     OCTHIRTY                              
007284,001098: 06,3041           00006                           EXTEND                                         
007285,001099: 06,3042           13047                           BZF      SETSAMP                               #  MANUAL-SET ZERO IN SWSAMPLE
007286,001100: 
007287,001101: 06,3043           74764                           MASK     OPMD1BIT                              #  SEE IF CSC
007288,001102: 06,3044           10000                           CCS      A                                     
007289,001103: 06,3045           03047                           TC       +2                                    #  CSC-SET SWSAMPLE POS
007290,001104: 06,3046           37702                           CAF      NEGONE                                #  ZOPTICS-SET SWSAMPLE (-1)
007291,001105: 06,3047           55354        SETSAMP            TS       SWSAMPLE                              #  CURRENT OPTICS SWITCH SETTING
007292,001106: 
007293,001107: 06,3050           11330        PROCESSW           CCS      DESOPMOD                              #  BRANCH ON PREVIOUS SETTING
007294,001108: 06,3051           03143                           TC       CSCDES                                #  CSC
007295,001109: 06,3052           03115                           TC       MANUDES                               #  MANUAL
007296,001110: 06,3053           11354        ZOPTDES            CCS      SWSAMPLE                              #  IS SWITCH STILL AT ZOPTICS
007297,001111: 06,3054           03132                           TC       ZTOCSC                                #  NOW AT CSC

Page 170

007299,001113: 06,3055           03071                           TC       ZTOMAN                                #  MANUAL
007300,001114: 06,3056           03101                           TC       ZOPFINI                               #  ZOPTICS-SEE IF ZOPT PROCESSING
007301,001115: 06,3057           03124                           TC       SETDESMD                              #  ZOPT NOT PROCESSING-NO ACTION
007302,001116: 
007303,001117: 06,3060           11332                           CCS      ZOPTCNT                               #  ZOPT PROCESSING-CHECK COUNTER
007304,001118: 06,3061           03123                           TC       SETCNT                                #  32 SAMPLE NOT FINISHED-SET COUNTER
007305,001119: 06,3062           34770        SETZOEND           CAF      BIT1                                  #  32 SAMPLE WAIT COMPLETED-SET UP ENDZOPT
007306,001120: 06,3063           00006                           EXTEND                                         
007307,001121: 06,3064           05012                           WOR      CHAN12                                #  SEND OCDU ZERO
007308,001122: 06,3065           34124                           CAF      200MS                                 #  HOLD FOR 200MS
007309,001123: 06,3066           05223                           TC       TWIDDLE                               
007310,001124: 06,3067           03171                           ADRES    ENDZOPT                               
007311,001125: 06,3070           03124                           TC       SETDESMD                              
007312,001126: 06,3071           03101        ZTOMAN             TC       ZOPFINI                               #  ZOP TO MANUAL-IS ZOPT DONE
007313,001127: 06,3072           03154                           TC       CSCTOMAN                              #  YES
007314,001128: 06,3073           05671        ZOPALARM           TC       ALARM                                 #  ALARM-SWITCHED ALTERED WHILE ZOPTICS
007315,001129: 06,3074           00116                           OCT      00116                                 
007316,001130: 06,3075           34775                           CAF      OCT13                                 #  PROCESSING-SET RETURN OPTION
007317,001131: 06,3076           55331                           TS       WTOPTION                              
007318,001132: 
007319,001133: 06,3077           03104                           TC       CANZOPT                               #  CANCEL ZOPT
007320,001134: 
007321,001135: 06,3100           03154                           TC       CSCTOMAN                              
007322,001136:                                                                                                  #  BIT 1 OF OPTMODES HAS BEEN ELIMINATED.
007323,001137:                                                                                                  #  IF T4RUPT TIMING IS REDUCED, IT WILL
007324,001138:                                                                                                  #  BE NECESSARY TO REINSTATE THE BIT AS
007325,001139:                                                                                                  #  BEFORE, BUT PREVENT OPTICS LOCKOUT.
007326,001140: 06,3101           34766        ZOPFINI            CAF      ZOPTCS                                
007327,001141: 06,3102           71337        ZOPFIN2            MASK     OPTMODES                              #  RETURNS TO L+1 PROCESSING AND
007328,001142: 06,3103           15651                           TCF      INCRQCK                               #  L+2 IF NOT
007329,001143: 06,3104           34766        CANZOPT            CAF      ZOPTCS                                #  CANCEL ZERO OPTICS
007330,001144: 06,3105           64767                           AD       OCDUINHT                              
007331,001145: 06,3106           40000                           COM                                            
007332,001146: 06,3107           71337                           MASK     OPTMODES                              #  ZERO ZOPT PROCESSING BIT-ENABLE OCDUFAIL
007333,001147: 06,3110           55337                           TS       OPTMODES                              
007334,001148: 06,3111           44770                           CS       BIT1                                  #  MAKE SURE ZERO OCDU IS OFF
007335,001149: 06,3112           00006                           EXTEND                                         
007336,001150: 06,3113           03012                           WAND     CHAN12                                
007337,001151: 06,3114           00002                           TC       Q                                     
007338,001152: 

Page 171

007340,001154: 06,3115           11354        MANUDES            CCS      SWSAMPLE                              #  SEE IF SWITCH STILL IN MANUAL MODE
007341,001155: 06,3116           03137                           TC       MANTOCSC                              #  NOW AT CSC
007342,001156: 06,3117           03127                           TC       MANTOMAN                              #  STILL MANUAL
007343,001157: 06,3120           11331                           CCS      WTOPTION                              #  ZOPTICS-LOOK AT ZOPTICS RETURN OPTION
007344,001158: 06,3121           03150                           TC       CSCTOZOP   +2                         #  5 SEC RETURN GOOD- CONTINUE ZOPTICS
007345,001159: 06,3122           03146                           TC       CSCTOZOP                              
007346,001160: 06,3123           55332        SETCNT             TS       ZOPTCNT                               
007347,001161: 06,3124           31354        SETDESMD           CA       SWSAMPLE                              #  SET CURRENT SWITCH INDICATOR- RESUME
007348,001162: 06,3125           55330                           TS       DESOPMOD                              
007349,001163: 06,3126           05323                           TC       RESUME                                
007350,001164: 06,3127           11331        MANTOMAN           CCS      WTOPTION                              #  DECREMENT RETURN OPTION TIME
007351,001165: 06,3130           55331                           TS       WTOPTION                              
007352,001166: 06,3131           03124                           TC       SETDESMD                              
007353,001167: 
007354,001168: 06,3132           03101        ZTOCSC             TC       ZOPFINI                               #  SEE IF ZOPT PROCESSING
007355,001169: 06,3133           03142                           TC       MANTOCSC   +3                         #  NO- RETURN TO COARS OPT
007356,001170: 06,3134           05671                           TC       ALARM                                 #  ZOPT PROCESSING- ALARM
007357,001171: 06,3135           00116                           OCT      00116                                 
007358,001172: 06,3136           03104                           TC       CANZOPT                               #  CANCEL ZOPT
007359,001173: 06,3137           34772        MANTOCSC           CAF      ZERO                                  #  CANCEL ZOPT RETURN OPTION IF SET
007360,001174: 06,3140           55331                           TS       WTOPTION                              
007361,001175: 06,3141           55332                           TS       ZOPTCNT                               
007362,001176: 
007363,001177: 06,3142           03154                 +3        TC       CSCTOMAN                              
007364,001178: 06,3143           11354        CSCDES             CCS      SWSAMPLE                              #  SEE IF SWITCH STILL AT CSC
007365,001179: 06,3144           03124                           TC       SETDESMD                              #  STILL AT CSC
007366,001180: 06,3145           03154                           TC       CSCTOMAN                              #  MANUAL
007367,001181: 06,3146           34763        CSCTOZOP           CAF      OCT40                                 #  ZOPTICS-INITIALIZE FOR ZOPT
007368,001182: 06,3147           55332                           TS       ZOPTCNT                               
007369,001183: 06,3150           03213                 +2        TC       INITZOPT                              
007370,001184: 06,3151           04077                           TC       NOOPRATE                              
007371,001185: 06,3152           03257                           TC       ECDISAB                               
007372,001186: 06,3153           03124                           TC       SETDESMD                              
007373,001187: 06,3154           11323        CSCTOMAN           CCS      OPTIND                                #  IS THE OPTICS IN USE
007374,001188: 06,3155           03161                           TC       CANCOARS                              #  YES DISABLE OPTICS ERR CNTRS, SET TVC
007375,001189: 06,3156           03161                           TC       CANCOARS                              #  ENABLE BIT IF IN MANUAL AND REENABLE
007376,001190: 06,3157           03160                           TC       +1                                    #  OPTICS ERR CNTRS
007377,001191: 06,3160           03124                           TC       SETDESMD                              #  NO NORMAL EXIT
007378,001192: 06,3161           34772        CANCOARS           CAF      ZERO                                  
007379,001193: 06,3162           54740                           TS       TOLD                                  
007380,001194: 06,3163           54741                           TS       SOLD                                  
007381,001195: 06,3164           03257                           TC       ECDISAB                               #  DISABLE OP ERR CNTRS
007382,001196: 06,3165           36211                           CA       SIX                                   #  ENABLE ERR CNTRS AFTER 60 MS
007383,001197: 06,3166           05223                           TC       TWIDDLE                               
007384,001198: 06,3167           03263                           ADRES    ECENAB                                
007385,001199: 06,3170           03124                           TC       SETDESMD                              
007386,001200: 06,3171           34772        ENDZOPT            CA       ZERO                                  
007387,001201: 06,3172           54036                           TS       CDUS                                  #  ZERO IN CDUS, -20 IN CDUT
007388,001202: 06,3173           55327                           TS       ZONE                                  #  INITIALIZE SHAFT MONITOR ZONE
007389,001203: 06,3174           43671                           CS       20DEGS                                

Page 172

007391,001205: 06,3175           54035                           TS       CDUT                                  
007392,001206: 06,3176           44770                           CS       BIT1                                  #  TURN OFF ZERO OCDU
007393,001207: 06,3177           00006                           EXTEND                                         
007394,001208: 06,3200           03012                           WAND     CHAN12                                
007395,001209: 06,3201           34124                           CAF      200MS                                 #  DELAY 200MS FOR CDUS TO RESYNCHRONIZE
007396,001210: 06,3202           05260                           TC       VARDELAY                              
007397,001211: 
007398,001212: 06,3203           41337                           CS       OPTMODES                              #  SHOW ZOPTICS SINCE LAST FRESH START
007399,001213: 06,3204           74757                           MASK     ZROPTFIN                              #  OR RESTART
007400,001214: 06,3205           27337                           ADS      OPTMODES                              
007401,001215: 
007402,001216: 06,3206           46211                           CS       SIX                                   
007403,001217: 06,3207           71337                           MASK     OPTMODES                              
007404,001218: 06,3210           55337                           TS       OPTMODES                              
007405,001219: 
007406,001220: 06,3211           03221                           TC       OCDUFTST                              #  CHECK OCDU FAIL BIT AFTER ENABLE
007407,001221: 
007408,001222: 06,3212           05314                           TC       TASKOVER                              
007409,001223: 
007410,001224: 06,3213           34772        INITZOPT           CAF      ZERO                                  #  INITIALIZE ZOPTICS-INHIBIT OCDUFAIL
007411,001225: 06,3214           55331                           TS       WTOPTION                              #  AND SHOW OPTICS PROCESSING
007412,001226: 06,3215           41337                           CS       OPTMODES                              #  SET ZERO OPTICS PROCESSING
007413,001227: 06,3216           76211                           MASK     SIX                                   #      OPTICS CDU FAIL INHIBITED
007414,001228: 06,3217           27337                           ADS      OPTMODES                              
007415,001229: 06,3220           00002                           TC       Q                                     
007416,001230: 

Page 173

007418,001232: 06,3221           34762        OCDUFTST           CAF      BIT7                                  #  SEE IF OCDUFAIL ON OR OFF
007419,001233: 06,3222           00006                           EXTEND                                         
007420,001234: 06,3223           02030                           RAND     CHAN30                                
007421,001235: 06,3224           10000                           CCS      A                                     
007422,001236: 06,3225           13247                           TCF      OPFAILOF                              #  OCDUFAIL LIGHT OFF
007423,001237: 
007424,001238: 06,3226           34767                           CAF      OCDUINHT                              #  OCDUFAIL LIGHT ON UNLESS INHIBITED
007425,001239: 06,3227           71337                           MASK     OPTMODES                              
007426,001240: 06,3230           10000                           CCS      A                                     
007427,001241: 06,3231           00002                           TC       Q                                     #  OCDUFAIL INHIBITED
007428,001242: 
007429,001243: 06,3232           34761        OPFAILON           CAF      BIT8                                  #  ON BIT
007430,001244: 06,3233           61241                           AD       DSPTAB     +11D                       
007431,001245: 06,3234           74761                           MASK     BIT8                                  
007432,001246: 06,3235           00006        SETOFF             EXTEND                                         
007433,001247: 06,3236           16711                           BZF      TCQ                                   #  NO CHANGE
007434,001248: 
007435,001249: 06,3237           54001                           TS       L                                     
007436,001250: 06,3240           31241                           CA       DSPTAB     +11D                       
007437,001251: 06,3241           00006                           EXTEND                                         
007438,001252: 06,3242           06001                           RXOR     LCHAN                                 
007439,001253: 06,3243           74750                           MASK     POSMAX                                
007440,001254: 06,3244           64752                           AD       BIT15                                 #  SHOW ACTION WANTED
007441,001255: 06,3245           55241                           TS       DSPTAB     +11D                       
007442,001256: 06,3246           00002                           TC       Q                                     
007443,001257: 
007444,001258: 06,3247           34770        OPFAILOF           CAF      LMPTSTBT                              #  DONT TURN OFF IF LAMP TEST
007445,001259: 06,3250           71334                           MASK     IMODES33                              
007446,001260: 06,3251           10000                           CCS      A                                     
007447,001261: 06,3252           00002                           TC       Q                                     #  LAMP TEST IN PROGRESS
007448,001262: 
007449,001263: 06,3253           34761                           CAF      BIT8                                  #  TURN OFF OCDUFAIL LIGHT
007450,001264: 06,3254           71241                           MASK     DSPTAB     +11D                       
007451,001265: 06,3255           13235                           TCF      SETOFF                                
007452,001266: 
007453,001267: 06,3256           24002        OPDISAB            INCR     Q                                     
007454,001268: 06,3257           44767        ECDISAB            CS       BIT2                                  
007455,001269: 06,3260           00006                           EXTEND                                         
007456,001270: 06,3261           03012                           WAND     CHAN12                                
007457,001271: 06,3262           00002                           TC       Q                                     
007458,001272: 06,3263           31354        ECENAB             CA       SWSAMPLE                              
007459,001273: 06,3264           00006                           EXTEND                                         
007460,001274: 06,3265           13267                           BZF      +2                                    #  MANUAL SET TVC ENABLE
007461,001275: 06,3266           13272                           TCF      ECENAB1                               
007462,001276: 06,3267           34761                           CAF      BIT8                                  
007463,001277: 06,3270           00006                           EXTEND                                         
007464,001278: 06,3271           05012                           WOR      CHAN12                                
007465,001279: 06,3272           34767        ECENAB1            CAF      BIT2                                  
007466,001280: 06,3273           00006                           EXTEND                                         
007467,001281: 06,3274           05012                           WOR      CHAN12                                

Page 174

007469,001283: 06,3275           05314                           TC       TASKOVER                              
007470,001284: 06,3276     4775               OCT13              =        ELEVEN                                
007471,001285: 06,3276     5001               OCTHIRTY           EQUALS   BITS4&5                               
007472,001286: 06,3276     4763               OCT40              EQUALS   BIT6                                  
007473,001287: 06,3276     4124               200MS              EQUALS   OCT24                                 
007474,001288: 

Page 175

007476,001290:                                                                                                  #  OPTICS CDU DRIVING PROGRAM
007477,001291: 
007478,001292: 10,2000                                           SETLOC   OPTDRV                                
007479,001293: 10,2000                                           BANK                                           
007480,001294: 10,2000                                           COUNT*   $$/SXT                                
007481,001295: 
007482,001296:                                                                                                  #  SHAFT STOP MONITOR-ZONE UPDATE
007483,001297: 
007484,001298: 10,2000           30036        OPTDRIVE           CA       CDUS                                  #  GRAB OPTIC SHAFT CDU
007485,001299: 10,2001           54001                           TS       L                                     
007486,001300: 10,2002           10000                           CCS      A                                     #  GET ABS(CDUS)
007487,001301: 10,2003           67673                           AD       13,14,15                              
007488,001302: 10,2004           12006                           TCF      +2                                    #  ABS(CDUS) - 45 DEG
007489,001303: 10,2005           12003                           TCF      -2                                    
007490,001304: 10,2006           00006                           EXTEND                                         
007491,001305: 10,2007           62016                           BZMF     OZONE                                 #  LESS THAN 45 DEG-SET ZONE 0
007492,001306: 10,2010           31327                           CA       ZONE                                  #  IF ZONE ZERO, CHANGE TO + OR - OTHERWISE
007493,001307: 10,2011           00006                           EXTEND                                         #  DONT MESS WITH ZONE
007494,001308: 10,2012           12014                           BZF      +2                                    
007495,001309: 10,2013           12020                           TCF      CONTDRVE                              #  JUST CONTINUE
007496,001310: 10,2014           56001                           XCH      L                                     #  GREATER THAN 45 DEG-SET ZONE TO SIGN CDU
007497,001311: 10,2015           12017                           TCF      OZONE      +1                         
007498,001312: 10,2016           34772        OZONE              CAF      ZERO                                  #  ABS(CDUS) LESS THEN 90 DEG-ZONE ZERO
007499,001313: 10,2017           55327                           TS       ZONE                                  
007500,001314: 10,2020                                           COUNT*   $$/T4RPT                              
007501,001315: 10,2020           11323        CONTDRVE           CCS      OPTIND                                
007502,001316: 10,2021           02025                           TC       +4                                    #  WORK COARS OPTICS
007503,001317: 10,2022           02025                           TC       +3                                    #  WORK COARS OPTICS
007504,001318: 10,2023           04077                           TC       NOOPRATE                              #  NO OPT  DISABLE   TVC
007505,001319: 10,2024           05323                           TC       RESUME                                #  NO OPT
007506,001320: 
007507,001321: 10,2025           31354                           CA       SWSAMPLE                              #  SEE IF SWITCH AT CMC
007508,001322: 10,2026           00006                           EXTEND                                         
007509,001323: 10,2027           12226                           BZF      TVCBCK                                
007510,001324: 10,2030           00006                           EXTEND                                         
007511,001325: 10,2031           65323                           BZMF     RESUME                                
007512,001326: 10,2032           34757        RATEDRV1           CAF      ZROPTFIN                              #  SEE IF OCDUS ZEROED SINCE LAST FSTART
007513,001327: 10,2033           71337                           MASK     OPTMODES                              
007514,001328: 10,2034           10000                           CCS      A                                     
007515,001329: 10,2035           02040                           TC       +3                                    
007516,001330: 10,2036           05671                           TC       ALARM                                 #  OPTICS NOT ZEROED
007517,001331: 10,2037           00120                           OCT      00120                                 
007518,001332: 
007519,001333: 10,2040           34767                           CA       BIT2                                  #  SEE IF ERR CNTS ENABLED
007520,001334: 10,2041           00006                           EXTEND                                         
007521,001335: 10,2042           02012                           RAND     CHAN12                                
007522,001336: 10,2043           00006                           EXTEND                                         
007523,001337: 10,2044           12204                           BZF      SETBIT                                #  CNTS NOT ENABLED-DO IT AND RESUME
007524,001338: 
007525,001339: 10,2045           34770                           CAF      ONE                                   #  INITIALIZE OPTIND

Page 176

007527,001341: 10,2046           55323        OPT2               TS       OPTIND                                
007528,001342: 10,2047           51323        GETOPCMD           INDEX    OPTIND                                
007529,001343: 10,2050           31312                           CA       DESOPTT                               #  PICK UP DESIRED OPT ANGLE
007530,001344: 10,2051           00006                           EXTEND                                         
007531,001345: 10,2052           51323                           INDEX    OPTIND                                
007532,001346: 10,2053           20035                           MSU      CDUT                                  #  GET DIFFERENCE
007533,001347: 10,2054           00006                           EXTEND                                         
007534,001348: 10,2055           74754                           MP       BIT13                                 
007535,001349: 10,2056           56001                           XCH      L                                     
007536,001350: 10,2057           60000                           DOUBLE                                         
007537,001351: 10,2060           54061                           TS       ITEMP1                                
007538,001352: 10,2061           12063                           TCF      +2                                    #  NO OVFL
007539,001353: 
007540,001354: 10,2062           26001                           ADS      L                                     #  WITH OVFL
007541,001355: 10,2063           51323        STORCMD            INDEX    OPTIND                                
007542,001356: 10,2064           23325                           LXCH     COMMANDO                              #  STORE COMMAND
007543,001357: 10,2065           11323                           CCS      OPTIND                                
007544,001358: 10,2066           12140                           TCF      TRUNCMD                               #  GET TRUN COMMAND
007545,001359: 10,2067           54061                           TS       ITEMP1                                #  INITIALIZE SEND INDICATOR TO ZERO
007546,001360: 10,2070                                           COUNT*   $$/SXT                                
007547,001361: 
007548,001362:                                                                                                  #  SHAFT STOP AVOIDANCE
007549,001363: 
007550,001364: 10,2070           10036                           CCS      CDUS                                  #  IF CDUS GREATER THAN + OR - 90 DEG CHECK
007551,001365: 10,2071           64751                           AD       NEG1/2                                #  FOR POSSIBLE STOP PROBLEM
007552,001366: 10,2072           12074                           TCF      +2                                    
007553,001367: 10,2073           12071                           TCF      -2                                    
007554,001368: 10,2074           00006                           EXTEND                                         
007555,001369: 10,2075           62124                           BZMF     CMDSETUP                              #  CDUS LESS THAN 90 DEG, NO PROBLEMS
007556,001370: 
007557,001371: 10,2076           31327                           CA       ZONE                                  
007558,001372: 10,2077           00006                           EXTEND                                         
007559,001373: 10,2100           12124                           BZF      CMDSETUP                              #  ZONE=3, NORMAL COMMAND
007560,001374: 10,2101           74752                           MASK     BIT15                                 #  GRAB SIGN OF ZONE
007561,001375: 10,2102           54001                           TS       L                                     
007562,001376: 10,2103           31326                           CA       COMMANDO   +1                         
007563,001377: 10,2104           74752                           MASK     BIT15                                 #  GRAB SIGN OF SHAFT COMMAND
007564,001378: 10,2105           00006                           EXTEND                                         
007565,001379: 10,2106           06001                           RXOR     LCHAN                                 
007566,001380: 10,2107           10000                           CCS      A                                     
007567,001381: 10,2110           12124                           TCF      CMDSETUP                              #  SIGN ZONE NOT EQUAL TO SIGN COMMAND
007568,001382: 10,2111           11313                           CCS      DESOPTS                               #  SEE IF DESOPTS BETWEEN -90 AND +90
007569,001383: 10,2112           64751                           AD       NEG1/2                                
007570,001384: 10,2113           12115                           TCF      +2                                    #  ABS(DESOPTS) - 90 DEG
007571,001385: 10,2114           12112                           TCF      -2                                    
007572,001386: 10,2115           00006                           EXTEND                                         
007573,001387: 10,2116           62120                           BZMF     +2                                    #  DESOPTS IN FIRST OR FOURTH QUAD
007574,001388: 10,2117           12124                           TCF      CMDSETUP                              
007575,001389: 10,2120           41326                           CS       COMMANDO   +1                         #  REVERSE REGULAR COMMAND
007576,001390: 10,2121           55326                           TS       COMMANDO   +1                         

Page 177

007578,001392: 10,2122           34772                           CAF      ZERO                                  #  ZERO DESIRED SHAFT RATE
007579,001393: 10,2123           54736                           TS       SRATE                                 
007580,001394: 10,2124                                           COUNT*   $$/T4RPT                              
007581,001395: 
007582,001396: 10,2124           31354        CMDSETUP           CA       SWSAMPLE                              
007583,001397: 10,2125           00006                           EXTEND                                         
007584,001398: 10,2126           12212                           BZF      RATEDRV2                              
007585,001399: 10,2127           04077                           TC       NOOPRATE                              #  DISABLE   TVC DAP BIT
007586,001400: 10,2130           34770                           CAF      ONE                                   #  SET OPTIND
007587,001401: 10,2131           55323        CMDSET             TS       OPTIND                                
007588,001402: 10,2132           50000                           INDEX    A                                     
007589,001403: 10,2133           11325                           CCS      COMMANDO                              #  GET SIGN OF COMMAND
007590,001404: 10,2134           02153                           TC       POSOPCMD                              
007591,001405: 10,2135           02160                           TC       NEXTOPT    +1                         #  ZERO COMMAND-SKIP SEND INDICATOR
007592,001406: 10,2136           02170                           TC       NEGOPCMD                              
007593,001407: 10,2137           02160                           TC       NEXTOPT    +1                         #  ZERO COMMAND
007594,001408: 
007595,001409: 10,2140           55323        TRUNCMD            TS       OPTIND                                
007596,001410: 10,2141           40035                           CS       CDUT                                  #  IF COMMAND GREATER THAN 45 DEG-COMMAND
007597,001411: 10,2142           61312                           AD       DESOPTT                               #  45 DEG
007598,001412: 10,2143           54002                           TS       Q                                     
007599,001413: 10,2144           02047                           TC       GETOPCMD                              #  LESS THAN 45 DEG-NORMAL OPERATION
007600,001414: 
007601,001415: 10,2145           10000                           CCS      A                                     #  GREATER THAN 45 DEG-USE OPSMAX WITH
007602,001416: 10,2146           34750                           CA       POSMAX                                #  CORRECT SIGN
007603,001417: 10,2147           02151                           TC       +2                                    
007604,001418: 10,2150           44750                           CS       POSMAX                                
007605,001419: 10,2151           54001                           TS       L                                     
007606,001420: 10,2152           02063                           TC       STORCMD                               
007607,001421: 10,2153           62211        POSOPCMD           AD       MAXPLS1                               
007608,001422: 10,2154           00006                           EXTEND                                         
007609,001423: 10,2155           62175                           BZMF     DELOPCMD                              #  COMMAND LESS THAN MAX PULSE
007610,001424: 10,2156           42210                           CS       MAXPLS                                #  GREATER THAN MAX PULSE-USE MAX PULSE
007611,001425: 
007612,001426: 10,2157           24061        NEXTOPT            INCR     ITEMP1                                #  SET SEND INDICATOR
007613,001427: 10,2160           64771                 +1        AD       NEG0                                  #  MAKE SURE ZERO COMMAND IS -ZERO
007614,001428: 10,2161           51323                           INDEX    OPTIND                                
007615,001429: 10,2162           54053                           TS       CDUTCMD                               #  STORE PULSE IN SEND REG
007616,001430: 
007617,001431: 10,2163           11323                           CCS      OPTIND                                
007618,001432: 10,2164           02131                           TC       CMDSET                                #  GET NEXT OPT
007619,001433: 10,2165           10061                           CCS      ITEMP1                                #  ARE ANY PULSES TO GO
007620,001434: 10,2166           12200                           TCF      SENDOCMD                              #  YES-SEND EM
007621,001435: 10,2167           05323                           TC       RESUME                                #  NO
007622,001436: 
007623,001437: 10,2170           62211        NEGOPCMD           AD       MAXPLS1                               
007624,001438: 10,2171           00006                           EXTEND                                         
007625,001439: 10,2172           62175                           BZMF     DELOPCMD                              #  LESS THAN MAX PULSE
007626,001440: 10,2173           32210                           CA       MAXPLS                                #  MAX PULSES
007627,001441: 10,2174           12157                           TCF      NEXTOPT                               

Page 178

007629,001443: 10,2175           51323        DELOPCMD           INDEX    OPTIND                                
007630,001444: 10,2176           57325                           XCH      COMMANDO                              #  SET UP SMALL COMMAND
007631,001445: 10,2177           12157                           TCF      NEXTOPT                               
007632,001446: 
007633,001447: 10,2200           35050        SENDOCMD           CAF      11,12                                 #  SEND OCDU DRIVE COMMANDS
007634,001448: 10,2201           00006                           EXTEND                                         
007635,001449: 10,2202           05014                           WOR      CHAN14                                
007636,001450: 10,2203           05323                           TC       RESUME                                
007637,001451: 
007638,001452: 10,2204           34767        SETBIT             CAF      BIT2                                  #  ENABLE OCDU ERR CNTS
007639,001453: 10,2205           00006                           EXTEND                                         
007640,001454: 10,2206           05012                           WOR      CHAN12                                
007641,001455: 10,2207           05323                           TC       RESUME                                #  START COARS NEXT TIME AROUND
007642,001456: 
007643,001457: 10,2210           77654        MAXPLS             DEC      -83        B-14                       #  WAS -165
007644,001458: 10,2211           77655        MAXPLS1            DEC      -82        B-14                       #  WAS -164
007645,001459: 10,2212     5050               11,12              EQUALS   PRIO6                                 
007646,001460: 10,2212           40741        RATEDRV2           CS       SOLD                                  
007647,001461: 10,2213           60736                           AD       SRATE                                 
007648,001462: 10,2214           64771                           AD       NEG0                                  
007649,001463: 10,2215           54001                           TS       L                                     
007650,001464: 10,2216           40740                           CS       TOLD                                  
007651,001465: 10,2217           60735                           AD       TRATE                                 
007652,001466: 10,2220           64771                           AD       NEG0                                  
007653,001467: 10,2221           52054                           DXCH     CDUTCMD                               
007654,001468: 10,2222           00006                           EXTEND                                         
007655,001469: 10,2223           30736                           DCA      TRATE                                 
007656,001470: 10,2224           52741                           DXCH     TOLD                                  
007657,001471: 10,2225           02200                           TC       SENDOCMD                              
007658,001472: 10,2226           34761        TVCBCK             CAF      BIT8                                  #  IS TVC BIT ENABLED
007659,001473: 10,2227           00006                           EXTEND                                         
007660,001474: 10,2230           02012                           RAND     CHAN12                                
007661,001475: 10,2231           00006                           EXTEND                                         
007662,001476: 10,2232           12234                           BZF      +2                                    
007663,001477: 10,2233           02032                           TC       RATEDRV1                              
007664,001478: 10,2234           34761                           CAF      BIT8                                  #  NO TURN IT ON
007665,001479: 10,2235           00006                           EXTEND                                         
007666,001480: 10,2236           05012                           WOR      CHAN12                                
007667,001481: 10,2237           05323                           TC       RESUME                                
007668,001482:    4000                                           SETLOC   STOPRAT                               
007669,001483:    4000                                           BANK                                           
007670,001484:    4077                                           COUNT*   $$/T4RPT                              
007671,001485:    4077           44761        NOOPRATE           CS       BIT8                                  
007672,001486:    4100           00006                           EXTEND                                         
007673,001487:    4101           03012                           WAND     CHAN12                                
007674,001488:    4102           00002                           TC       Q                                     

End of include-file T4RUPT_PROGRAM.agc.  Parent file is MAIN.agc