Source Code

These source-code files are part of a reconstructed copy of Skylark 048, the Block II Command Module (CM) Apollo Guidance Computer (AGC) software for the Skylab-2, Skylab-3, Skylab-4, and Apollo-Soyuz Test Project missions.

They have been created via disassembly of binary dumps of the original core rope memory modules actually flown on Skylab-2, part numbers 2010802-541, 2010802-551, 2010802-561, 2010802-571, 2010802-581, and 2010802-591. Access to these modules was provided by the New Mexico Museum of Space History, who we are much indebted to.

The source code for the Apollo 15, 16, and 17 software, Artemis 072, was used as a starting point. Heavy use was made of TRW 4900.5-244, Programmed Guidance Equations for Skylark Command Module Earth Orbital Program, dated 14 February 1972. This document contains pseudocode of essentially all of Skylark, using original program labels which have been copied for this source reconstruction.

Since only binary dumps (rather than listings) of Skylark are available as source material, all comments and labels are approximate. They have been taken from the Programmed Guidance Equations or other AGC programs where possible, or, in some places, written from scratch to match what we believe would have been in the original listing.

005911,000002:                                                                                                  ## Copyright:   Public domain.
005912,000003:                                                                                                  ## Filename:    T4RUPT_PROGRAM.agc
005913,000004:                                                                                                  ## Purpose:     A section of Skylark revision 048.
005914,000005:                                                                                                  ##              It is part of the source code for the Apollo Guidance Computer (AGC)
005915,000006:                                                                                                  ##              for Skylab-2, Skylab-3, Skylab-4, and ASTP. No original listings of
005916,000007:                                                                                                  ##              this software are available; instead, this file was created via
005917,000008:                                                                                                  ##              disassembly of dumps of the core rope modules actually flown on
005918,000009:                                                                                                  ##              Skylab-2. Access to these modules was provided by the New Mexico
005919,000010:                                                                                                  ##              Museum of Space History.
005920,000011:                                                                                                  ## Assembler:   yaYUL
005921,000012:                                                                                                  ## Contact:     Ron Burkey <info@sandroid.org>.
005922,000013:                                                                                                  ## Website:     www.ibiblio.org/apollo/index.html
005923,000014:                                                                                                  ## Mod history: 2023-09-04 MAS  Created from Artemis 072.
005924,000015:                                                                                                  ##              2024-03-05 MAS  Updated for Skylark 48.
005925,000016: 
005926,000017: 
005927,000018: 06,2000                                           SETLOC   T4RUP                                 
005928,000019: 06,2000                                           BANK                                           
005929,000020: 
005930,000021: 06,2000                                           COUNT*   $$/T4RPT                              
005931,000022: 06,2000           54016        T4RUPT             TS       BANKRUPT                              
005932,000023: 06,2001           00006                           EXTEND                                         
005933,000024: 06,2002           22012                           QXCH     QRUPT                                 
005934,000025: 
005935,000026: 06,2003           11312                           CCS      DSRUPTSW                              #  GOES 3(-1)0 AROUND AND AROUND
005936,000027: 06,2004           12010                           TCF      NORMT4     +1                         
005937,000028: 06,2005           12007                           TCF      NORMT4                                
005938,000029: 
005939,000030: 06,2006           12132                           TCF      QUIKDSP                               
005940,000031: 
005941,000032: 06,2007           36214        NORMT4             CAF      THREE                                 
005942,000033: 06,2010           54070                           TS       RUPTREG1                              
005943,000034: 06,2011           55312                           TS       DSRUPTSW                              
005944,000035: 
005945,000036: 06,2012     7675               74K                =        HIGH4                                 
005946,000037: 
005947,000038:                                                                                                  #  RELTAB IS A PACKED TABLE. RELAYWORD CODE IN UPPER 4 BITS, RELAY CODE
005948,000039:                                                                                                  #  IN LOWER 5 BITS.
005949,000040: 
005950,000041:    4000                                           SETLOC   FFTAG12                               
005951,000042:    4000                                           BANK                                           
005952,000043:    4063                                           COUNT*   $$/PIN                                
005953,000044:    4063           04025        RELTAB             OCT      04025                                 
005954,000045:    4064           10003                           OCT      10003                                 
005955,000046:    4065           14031                           OCT      14031                                 
005956,000047:    4066           20033                           OCT      20033                                 
005957,000048:    4067           24017                           OCT      24017                                 
005958,000049:    4070           30036                           OCT      30036                                 
005959,000050:    4071           34034                           OCT      34034                                 
005960,000051:    4072           40023                           OCT      40023                                 
005961,000052:    4073           44035                           OCT      44035                                 
005962,000053:    4074           50037                           OCT      50037                                 
005963,000054:    4075           54000                           OCT      54000                                 
005964,000055:    4076           60000        RELTAB11           OCT      60000                                 
005965,000056: 
005966,000057: 
005967,000058:                                                                                                  #  SWITCHED-BANK PORTION.
005968,000059: 
005969,000060: 06,2000                                           SETLOC   T4RUP                                 
005970,000061: 06,2000                                           BANK                                           
005971,000062: 
005972,000063: 06,2012                                           COUNT*   $$/T4RPT                              
005973,000064: 06,2012           11231        CDRVE              CCS      DSPTAB     +11D                       
005974,000065: 06,2013           02063                           TC       DSPOUT                                
005975,000066: 06,2014           02063                           TC       DSPOUT                                
005976,000067: 
005977,000068: 06,2015           57231                           XCH      DSPTAB     +11D                       
005978,000069: 06,2016           74347                           MASK     LOW11                                 
005979,000070: 06,2017           55231                           TS       DSPTAB     +11D                       
005980,000071: 06,2020           64076                           AD       RELTAB11                              
005981,000072: 06,2021           00006                           EXTEND                                         
005982,000073: 06,2022           01010                           WRITE    OUT0                                  
005983,000074: 06,2023           02072                           TC       HANG20                                
005984,000075: 
005985,000076: 
005986,000077:                                                                                                  #  DSPOUT PROGRAM. PUTS OUT DISPLAYS.
005987,000078: 
005988,000079: 06,2024           55211        DSPOUTSB           TS       NOUT                                  
005989,000080: 06,2025           45003                           CS       ZERO                                  
005990,000081: 06,2026           54073                           TS       DSRUPTEM                              #  SET TO -0 FOR 1ST PASS THRU DSPTAB
005991,000082: 06,2027           57171                           XCH      DSPCNT                                
005992,000083: 06,2030           65002                           AD       NEG0                                  #  TO PREVENT +0
005993,000084: 06,2031           55171                           TS       DSPCNT                                
005994,000085: 06,2032           51171        DSPSCAN            INDEX    DSPCNT                                
005995,000086: 06,2033           11216                           CCS      DSPTAB                                
005996,000087: 06,2034           11171                           CCS      DSPCNT                                #  IF DSPTAB ENTRY +, SKIP
005997,000088: 06,2035           12030                           TCF      DSPSCAN    -2                         #  IF DSPCNT +, AGAIN
005998,000089: 06,2036           12047                           TCF      DSPLAY                                #  IF DSPTAB ENTRY -, DISPLAY
005999,000090: 06,2037           22400        11,14,9            OCT      22400                                 #  CANNOT GET HERE
006000,000091: 06,2040           10073                           CCS      DSRUPTEM                              #  IF DSRUPTEM=+0, 2ND PASS THRU DSPTAB
006001,000092: 06,2041           37764        120MRUPT           DEC      16372      B-14                       #  (DSPCNT = 0). +0 INTO NOUT.
006002,000093: 06,2042           55211                           TS       NOUT                                  
006003,000094: 06,2043           00002                           TC       Q                                     
006004,000095: 06,2044           54073                           TS       DSRUPTEM                              #  IF DSRUPTEM=-0, 1ST PASS THRU DSPTAB
006005,000096: 06,2045           34355                           CAF      TABLNTH                               #  (DSPCNT=0). +0 INTO DSRUPTEM. PASS AGAIN
006006,000097: 06,2046           12031                           TCF      DSPSCAN    -1                         
006007,000098: 
006008,000099: 06,2047           65001        DSPLAY             AD       ONE                                   
006009,000100: 06,2050           51171                           INDEX    DSPCNT                                
006010,000101: 06,2051           55216                           TS       DSPTAB                                #  REPLACE POSITIVELY
006011,000102: 06,2052           74347                           MASK     LOW11                                 #  REMOVE BITS 12 TO 15
006012,000103: 06,2053           54073                           TS       DSRUPTEM                              
006013,000104: 06,2054           34344                           CAF      HI5                                   
006014,000105: 06,2055           51171                           INDEX    DSPCNT                                
006015,000106: 06,2056           74063                           MASK     RELTAB                                #  PICK UP BITS 12 TO 15 OF RELTAB ENTRY
006016,000107: 06,2057           60073                           AD       DSRUPTEM                              
006017,000108: 06,2060           00006                           EXTEND                                         
006018,000109: 06,2061           01010                           WRITE    OUT0                                  #  WRITE CHANNEL 10
006019,000110: 06,2062           16706                           TCF      Q+1                                   #  *** NORMAL RETURN SKIPS ONE
006020,000111: 
006021,000112: 06,2063     5017               OCT54              EQUALS   LTHVACA                               
006022,000113: 06,2063     4355               TABLNTH            EQUALS   BINCON                                #  DEC 10 LENGTH OF DSPTAB
006023,000114: 06,2063           30101        DSPOUT             CA       FLAGWRD5                              
006024,000115: 06,2064           74763                           MASK     DSKYBIT                               
006025,000116: 06,2065           00006                           EXTEND                                         
006026,000117: 06,2066           12126                           BZF      NODSPOUT                              
006027,000118: 06,2067           11211                           CCS      NOUT                                  
006028,000119: 06,2070           02024                           TC       DSPOUTSB                              
006029,000120: 06,2071           12126                           TCF      NODSPOUT                              #  NO DISPLAY REQUESTS
006030,000121: 06,2072           42037        HANG20             CS       11,14,9                               
006031,000122: 06,2073           27312                           ADS      DSRUPTSW                              
006032,000123: 
006033,000124: 06,2074           37663                           CAF      20MRUPT                               
006034,000125: 06,2075           54027        SETTIME4           TS       TIME4                                 
006035,000126: 
006036,000127:                                                                                                  #  THE STATUS OF THE PROCEED PUSHBUTTON IS MONITORED EVERY 120 MILLISECONDS VIA THE CHANNEL 32 BIT 14 INBIT.
006037,000128:                                                                                                  #  THE STATE OF THIS INBIT IS COMPARED WITH ITS STATE DURING THE PREVIOUS T4RUPT AND IS PROCESSED AS FOLLOWS.
006038,000129:                                                                                                  #        IF PREV ON AND NOW ON    -   BYPASS
006039,000130:                                                                                                  #        IF PREV ON AND NOW OFF   -   UPDATE IMODES33
006040,000131:                                                                                                  #        IF PREV OFF AND NOW ON   -   UPDATE IMODES33 AND PROCESS VIA PINBALL
006041,000132:                                                                                                  #        IF PREV OFF AND NOW OFF  -   BYPASS
006042,000133:                                                                                                  #  THE LOGIC EMPLOYED REQUIRES ONLY 9 MCT (APPROX. 108 MICROSECONDS) OF COMPUTER TIME WHEN NO CHANGES OCCUR.
006043,000134: 
006044,000135: 06,2076           31324        PROCEEDE           CA       IMODES33                              #  MONITIOR FOR PROCEED BUTTON
006045,000136: 06,2077           00006                           EXTEND                                         
006046,000137: 06,2100           06032                           RXOR     CHAN32                                #  CHECK IF BIT 14 DIFFERENT
006047,000138: 06,2101           74764                           MASK     PROCDBIT                              
006048,000139: 06,2102           00006                           EXTEND                                         
006049,000140: 06,2103           12116                           BZF      T4JUMP                                #  NO CHANGE
006050,000141: 
006051,000142: 06,2104           23324                           LXCH     IMODES33                              
006052,000143: 06,2105           00006                           EXTEND                                         
006053,000144: 06,2106           06001                           RXOR     LCHAN                                 
006054,000145: 06,2107           55324                           TS       IMODES33                              #  UPDATE IMODES33
006055,000146: 06,2110           74764                           MASK     PROCDBIT                              
006056,000147: 06,2111           10000                           CCS      A                                     
006057,000148: 06,2112           12116                           TCF      T4JUMP                                #  WAS ON - NOW OFF
006058,000149: 
006059,000150: 06,2113           05133                           TC       NOVAC30                               #  WAS OFF - NOW ON
006060,000151: 06,2114     1172                                  EBANK=   DSPCOUNT                              
006061,000152: 06,2114           03313 60102                     2CADR    PROCKEY                               
006062,000153: 
006063,000154:                                                                                                  #  JUMP TO APPROPRIATE ONCE-PER SECOND (.96 SEC ACTUALLY) ACTIVITY
006064,000155: 
006065,000156: 06,2116           50070        T4JUMP             INDEX    RUPTREG1                              
006066,000157: 06,2117           12120                           TCF      +1                                    
006067,000158: 
006068,000159: 06,2120           12124                           TCF      OPTTEST                               
006069,000160: 06,2121           13001                           TCF      OPTMON                                
006070,000161: 06,2122           12124                           TCF      OPTTEST                               
006071,000162: 06,2123           12167                           TCF      IMUMON                                
006072,000163: 06,2124           04725        OPTTEST            TC       IBNKCALL                              
006073,000164: 06,2125           20000                           CADR     OPTDRIVE                              
006074,000165: 
006075,000166: 06,2126     7663               20MRUPT            =        OCT37776                              #  (DEC 16382)
006076,000167: 06,2126           00006        NODSPOUT           EXTEND                                         #  TURN OFF RELAYS
006077,000168: 06,2127           01010                           WRITE    OUT0                                  
006078,000169: 
006079,000170: 06,2130           32041                           CAF      120MRUPT                              #  SET FOR NEXT CDRVE
006080,000171: 06,2131           12075                           TCF      SETTIME4                              
006081,000172: 
006082,000173: 06,2132           34764        QUIKDSP            CAF      BIT14                                 
006083,000174: 06,2133           71312                           MASK     DSRUPTSW                              
006084,000175: 06,2134           00006                           EXTEND                                         
006085,000176: 06,2135           12163                           BZF      QUIKOFF                               #  WROTE LAST TIME, NOW TURN OFF RELAYS.
006086,000177: 
006087,000178: 06,2136           11211                           CCS      NOUT                                  
006088,000179: 06,2137           02024                           TC       DSPOUTSB                              
006089,000180: 06,2140           12150                           TCF      NODSPY                                #  NOUT=0 OR BAD RETURN FROM DSPOUTSB
006090,000181: 06,2141           44764                           CS       BIT14                                 #  GOOD RETURN (WE DISPLAYED SOMETHING)
006091,000182: 06,2142           27312        QUIKRUPT           ADS      DSRUPTSW                              
006092,000183: 
006093,000184: 06,2143           37663                           CAF      20MRUPT                               
006094,000185: 06,2144           54027                           TS       TIME4                                 
006095,000186: 
006096,000187: 06,2145           34771                           CAF      BIT9                                  
006097,000188: 06,2146           27312                           ADS      DSRUPTSW                              
006098,000189: 
006099,000190: 06,2147           05336                           TC       RESUME                                
006100,000191: 
006101,000192: 06,2150           00006        NODSPY             EXTEND                                         
006102,000193: 06,2151           01010                           WRITE    OUT0                                  
006103,000194: 
006104,000195: 06,2152           37663        SYNCT4             CAF      20MRUPT                               
006105,000196: 06,2153           26027                           ADS      TIME4                                 
006106,000197: 
006107,000198: 06,2154           34771                           CAF      BIT9                                  
006108,000199: 06,2155           27312                           ADS      DSRUPTSW                              
006109,000200: 06,2156           11312                           CCS      DSRUPTSW                              
006110,000201: 06,2157           05336                           TC       RESUME                                
006111,000202: 06,2160           37737        OCT37737           OCT      37737                                 
006112,000203: 06,2161           02152                           TC       SYNCT4                                
006113,000204: 06,2162           05336                           TC       RESUME                                
006114,000205: 
006115,000206: 06,2163           00006        QUIKOFF            EXTEND                                         
006116,000207: 06,2164           01010                           WRITE    OUT0                                  
006117,000208: 06,2165           34764                           CAF      BIT14                                 #  RESET DSRUPTSW TO SEND DISPLAY NEXT PASS
006118,000209: 06,2166           12142                           TCF      QUIKRUPT                              
006119,000210: 
006120,000211:                                                                                                  #  PROGRAM NAME:  IMUMON
006121,000212: 
006122,000213:                                                                                                  #  FUNCTIONAL DESCRIPTION:  THIS PROGRAM IS ENTERED EVERY 480 MS.  IT DETECTS CHANGES OF THE IMU STATUS BITS IN
006123,000214:                                                                                                  #  CHANNEL 30 AND CALLS THE APPROPRIATE SUBROUTINES.  THE BITS PROCESSED AND THEIR RELEVANT SUBROUTINES ARE:
006124,000215: 
006125,000216:                                                                                                  #        FUNCTION                BIT     SUBROUTINE CALLED
006126,000217:                                                                                                  #        --------                ---     -----------------
006127,000218:                                                                                                  #        TEMP IN LIMITS           15     TLIM
006128,000219:                                                                                                  #        ISS TURN-ON REQUEST      14     ITURNON
006129,000220:                                                                                                  #        IMU FAIL                 13     IMUFAIL (SETISSW)
006130,000221:                                                                                                  #        IMU CDU FAIL             12     ICDUFAIL (SETISSW)
006131,000222:                                                                                                  #        IMU CAGE                 11     IMUCAGE
006132,000223:                                                                                                  #        IMU OPERATE               9     IMUOP
006133,000224: 
006134,000225:                                                                                                  #           THE LAST SAMPLED STATE OF THESE BITS IS LEFT IN IMODES30.  ALSO, EACH SUBROUTINE CALLED FINDS THE NEW
006135,000226:                                                                                                  #  VALUE OF THE BIT IN A, WITH Q SET TO THE PROPER RETURN LOCATION, NXTIFAIL.
006136,000227: 
006137,000228:                                                                                                  #  CALLING SEQUENCE:  T4RUPT EVERY 480 MILLISECONDS.
006138,000229: 
006139,000230:                                                                                                  #  JOBS OR TASKS INITIATED:  NONE.
006140,000231: 
006141,000232:                                                                                                  #  SUBROUTINES CALLED:  TLIM, ITURNON, SETISSW, IMUCAGE, IMUOP.
006142,000233: 
006143,000234:                                                                                                  #  ERASABLE INITIALIZATION:
006144,000235:                                                                                                  #        FRESH START OR RESTART WITH NO GROUPS ACTIVE:  C(IMODES30) = OCT 37411.
006145,000236:                                                                                                  #        RESTART WITH ACTIVE GROUPS:     C(IMODES30) = (B(IMODES30)AND(OCT 00035)) PLUS OCT 37400.
006146,000237:                                                                                                  #                                        THIS LEAVES IMU FAIL BITS INTACT.
006147,000238: 
006148,000239:                                                                                                  #  ALARMS:  NONE.
006149,000240: 
006150,000241:                                                                                                  #  EXIT:  TNONTEST.
006151,000242: 
006152,000243:                                                                                                  #  OUTPUT:  UPDATED IMODES30 WITH CHANGES PROCESSED BY APPROPRIATE SUBROUTINE.
006153,000244: 
006154,000245: 06,2167           31323        IMUMON             CA       IMODES30                              #  SEE IF THERE HAS BEEN A CHANGE IN THE
006155,000246: 06,2170           00006                           EXTEND                                         #  RELEVANT BITS OF CHAN 30.
006156,000247: 06,2171           06030                           RXOR     CHAN30                                #  CHECK IF BITS 9,11-15 CHANGED
006157,000248: 06,2172           72764                           MASK     30RDMSK                               
006158,000249: 06,2173           00006                           EXTEND                                         
006159,000250: 06,2174           12224                           BZF      TNONTEST                              #  NO CHANGE IN STATUS.
006160,000251: 
006161,000252: 06,2175           54070                           TS       RUPTREG1                              #  SAVE BITS WHICH HAVE CHANGED.
006162,000253: 06,2176           23323                           LXCH     IMODES30                              #  UPDATE IMODES30.
006163,000254: 06,2177           00006                           EXTEND                                         
006164,000255: 06,2200           06001                           RXOR     LCHAN                                 
006165,000256: 06,2201           55323                           TS       IMODES30                              
006166,000257: 
006167,000258: 06,2202           45001                           CS       ONE                                   
006168,000259: 06,2203           56070                           XCH      RUPTREG1                              
006169,000260: 06,2204           00006                           EXTEND                                         
006170,000261: 06,2205           62517                           BZMF     TLIM                                  #  CHANGE IN IMU TEMP.
006171,000262: 06,2206           12210                           TCF      NXTIFBIT                              #  BEGIN BIT SCAN.
006172,000263: 
006173,000264: 06,2207           65001                 -1        AD       ONE                                   #  (RE-ENTERS HERE FROM NXTIFAIL.)
006174,000265: 06,2210           24070        NXTIFBIT           INCR     RUPTREG1                              #  ADVANCE BIT POSITION NUMBER.
006175,000266: 06,2211           60000                 +1        DOUBLE                                         
006176,000267: 06,2212           54000                           TS       A                                     #  SKIP IF OVERFLOW.
006177,000268: 06,2213           12210                           TCF      NXTIFBIT                              #  LOOK FOR BIT.
006178,000269: 
006179,000270: 06,2214           56071                           XCH      RUPTREG2                              #  SAVE OVERFLOW-CORRECTED DATA.
006180,000271: 06,2215           50070                           INDEX    RUPTREG1                              #  SELECT NEW VALUE OF THIS BIT.
006181,000272: 06,2216           34764                           CAF      TONISSBT                              
006182,000273: 06,2217           71323                           MASK     IMODES30                              
006183,000274: 06,2220           50070                           INDEX    RUPTREG1                              
006184,000275: 06,2221           02760                           TC       IFAILJMP                              
006185,000276: 
006186,000277: 06,2222           10071        NXTIFAIL           CCS      RUPTREG2                              #  PROCESS ANY ADDITIONAL CHANGES.
006187,000278: 06,2223           12207                           TCF      NXTIFBIT   -1                         
006188,000279: 
006189,000280:                                                                                                  #  PROGRAM NAME:  TNONTEST.
006190,000281: 
006191,000282:                                                                                                  #  FUNCTIONAL DESCRIPTION:  THIS PROGRAM HONORS REQUESTS FOR ISS INITIALIZATION.  ISS TURN-ON (CHANNEL 30 BIT 14)
006192,000283:                                                                                                  #  AND ISS OPERATE (CHANNEL 30 BIT 9) REQUESTS ARE TREATED AS A PAIR AND PROCESSING TAKES PLACE .480 SECONDS
006193,000284:                                                                                                  #  AFTER EITHER ONE APPEARS.  THIS INITIALIZATION TAKES ON ONE OF THE FOLLOWING THREE FORMS:
006194,000285: 
006195,000286:                                                                                                  #        1) ISS TURN-ON:  IN THIS SITUATION THE COMPUTER IS OPERATING WHEN THE ISS IS TURNED ON.  NOMINALLY,
006196,000287:                                                                                                  #        BOTH ISS TURN-ON AND ISS OPERATE APPEAR.  THE PLATFORM IS CAGED FOR 90 SECONDS AND THE ICDU'S ZEROED
006197,000288:                                                                                                  #        SO THAT AT THE END OF THE PROCESS THE GIMBAL LOCK MONITOR WILL FUNCTION PROPERLY.
006198,000289: 
006199,000290:                                                                                                  #        2) ICDU INITIALIZATION:  IN THIS CASE THE COMPUTER WAS PROBABLY TURNED ON WITH THE ISS IN OPERATE OR
006200,000291:                                                                                                  #        A FRESH START WAS DONE WITH THE ISS IN OPERATE.  IN THIS CASE ONLY ISS OPERATE IS ON.  THE ICDU'S ARE
006201,000292:                                                                                                  #        ZEROED SO THE GIMBAL LOCK MONITOR WILL FUNCTION.  AN EXCEPTION IS IF THE ISS IS IN GIMBAL LOCK AFTER
006202,000293:                                                                                                  #        A RESTART, THE ICDU'S WILL NOT BE ZEROED.
006203,000294: 
006204,000295:                                                                                                  #        3) RESTART WITH RESTARTABLE PROGRAM USING THE IMU:  IN THIS CASE, NO INITIALIZATION TAKES PLACE SINCE
006205,000296:                                                                                                  #        IT IS ASSUMED THAT THE USING PROGRAM DID THE INITIALIZATION AND THEREFORE T4RUPT SHOULD NOT INTERFERE.
006206,000297: 
006207,000298:                                                                                                  #  IMODES30 BIT 7 IS SET = 1 BY THE FIRST BIT (CHANNEL 30 BIT 14 OR 9) WHICH ARRIVES.  FOLLOWING THIS. TNONTEST IS
006208,000299:                                                                                                  #  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
006209,000300:                                                                                                  #  PROCEEDS, SETTING BITS 8 AND 7 = 0.  AT PROCTNON, IF ISS TURN-ON REQUEST IS PRESENT, THE ISS IS CAGED (ZERO +
006210,000301:                                                                                                  #  COARSE).  IF ISS OPERATE IS NOT PRESENT PROGRAM ALARM 00213 IS ISSUED.  AT THE END OF A 90 SECOND CAGE, BIT 2
006211,000302:                                                                                                  #  OF IMODES30 IS TESTED.  IF IT IS = 1, ISS TURN-ON WAS NOT PRESENT FOR THE ENTIRE 90 SECONDS.  IN THAT CASE, IF
006212,000303:                                                                                                  #  THE ISS TURN-ON REQUEST IS PRESENT THE 90 SECOND WAIT IS REPEATED,  OTHERWISE NO ACTION OCCURS UNLESS A PROGRAM
006213,000304:                                                                                                  #  WAS WAITING FOR THE INITIALIZATION IN WHICH CASE THE PROGRAM IS GIVEN AN IMUSTALL ERROR RETURN.  IF THE DELAY
006214,000305:                                                                                                  #  WENT PROPERLY, THE ISS DELAY OUTBIT IS SENT AND THE ICDU'S ZEROED.  A TASK IS INITIATED TO REMOVE THE PIPA FAIL
006215,000306:                                                                                                  #  INHIBIT BIT IN 10.24 SECONDS.  IF A MISSION PROGRAM WAS WAITING IT IS INFORMED VIA ENDIMU.
006216,000307: 
006217,000308:                                                                                                  #  AT PROCTNON, IF ONLY ISS OPERATE IS PRESENT (OPONLY), THE CDU'S ARE ZEROED UNLESS THE PLATFORM IS IN COARSE
006218,000309:                                                                                                  #  ALIGN (= GIMBAL LOCK HERE) OR A MISSION PROGRAM IS USING THE IMU (IMUSEFLG = 1).
006219,000310: 
006220,000311:                                                                                                  #  CALLING SEQUENCE:  T4RUPT EVERY 480 MILLISECONDS AFTER IMUMON.
006221,000312: 
006222,000313:                                                                                                  #  JOBS OR TASKS INITIATED:  1) ENDTNON, 90 SECONDS AFTER CAGING STARTED.  2) ISSUP, 4 SECONDS AFTER CAGING DONE.
006223,000314:                                                                                                  #        3) PFAILOK, 10.24 SECONDS AFTER INITIALIZATION COMPLETED.  4) UNZ2, 320 MILLISECONDS AFTER ZEROING
006224,000315:                                                                                                  #        STARTED.
006225,000316: 
006226,000317:                                                                                                  #  SUBROUTINES CALLED: CAGESUB, CAGESUB2, ZEROICDU, ENDIMU, IMUBAD, NOATTOFF, SETISSW, VARDELAY.
006227,000318: 
006228,000319:                                                                                                  #  ERASABLE INITIALIZATION:  SEE IMUMON.
006229,000320: 
006230,000321:                                                                                                  #  ALARMS:  PROGRAM ALARM 00213 IF ISS TURN-ON REQUESTED WITHOUT ISS OPERATE.
006231,000322: 
006232,000323:                                                                                                  #  EXIT:  ENDTNON EXITS TO C33TEST.  TASKS HAVING TO DO WITH INITIALIZATION EXIT AS FOLLOWS:  MISSION PROGRAM
006233,000324:                                                                                                  #  WAITING AND INITIALIZATION COMPLETE, EXIT TO ENDIMU, MISSION PROGRAM WAITING AND INITIALIZATION FAILED, EXIT TO
006234,000325:                                                                                                  #  IMUBAD, IMU NOT IN USE, EXIT TO TASKOVER.
006235,000326: 
006236,000327:                                                                                                  #  OUTPUT:  ISS INITIALIZED.
006237,000328: 
006238,000329: 06,2224           41323        TNONTEST           CS       IMODES30                              #  AFTER PROCESSING ALL CHANGES, SEE IF IT
006239,000330: 06,2225           74773                           MASK     ITNON1BT                              #  IS TIME TO ACT ON TURN-ON REQUEST
006240,000331: 06,2226           10000                           CCS      A                                     
006241,000332: 06,2227           12366                           TCF      C33TEST                               #  NO - EXAMINE CHANNEL 33.
006242,000333: 
006243,000334: 06,2230           34772                           CAF      ITNON2BT                              #  SEE IF FIRST OR 2ND SAMPLE
006244,000335: 06,2231           71323                           MASK     IMODES30                              
006245,000336: 06,2232           10000                           CCS      A                                     
006246,000337: 06,2233           12237                           TCF      PROCTNON                              #  REACT AFTER SECOND SAMPLE.
006247,000338: 
006248,000339: 06,2234           34772                           CAF      ITNON2BT                              #  IF FIRST SAMPLE, SET BIT TO REACT
006249,000340: 06,2235           27323                           ADS      IMODES30                              #  TIME.
006250,000341: 06,2236           12366                           TCF      C33TEST                               
006251,000342: 
006252,000343:                                                                                                  #  PROCESS IMU TURN-ON REQUESTS AFTER WAITING 1 SAMPLE FOR ALL SIGNALS TO ARRIVE.
006253,000344: 
006254,000345: 06,2237           34772        PROCTNON           CA       ITNON2BT                              
006255,000346: 06,2240           64773                           AD       ITNON1BT                              
006256,000347: 06,2241           40000                           COM                                            
006257,000348: 06,2242           71323                           MASK     IMODES30                              
006258,000349: 06,2243           55323                           TS       IMODES30                              
006259,000350: 06,2244           74764                           MASK     TONISSBT                              #  SEE IF TURN-ON REQUEST
006260,000351: 06,2245           10000                           CCS      A                                     
006261,000352: 06,2246           12342                           TCF      OPONLY                                #  OPERATE ON ONLY.
006262,000353: 
006263,000354: 06,2247           41323                           CS       IMODES30                              #  IF TURN-ON REQUEST, WE SHOULD HAVE IMU
006264,000355: 06,2250           74771                           MASK     IMUOPBIT                              #  OPERATE.
006265,000356: 06,2251           10000                           CCS      A                                     
006266,000357: 06,2252           12255                           TCF      +3                                    
006267,000358: 
006268,000359: 06,2253           05644                           TC       ALARM                                 #  ALARM IF NOT.
006269,000360: 06,2254           00213                           OCT      213                                   
006270,000361: 
006271,000362: 06,2255           02740                 +3        TC       CAGESUB                               
006272,000363: 
006273,000364: 06,2256           33665                           CAF      90SECS                                
006274,000365: 06,2257           05246                           TC       WAITLIST                              
006275,000366: 06,2260  E3,1474                                  EBANK=   CDUIND                                
006276,000367: 06,2260           02265 14063                     2CADR    ENDTNON                               
006277,000368: 
006278,000369: 06,2262           12366                           TCF      C33TEST                               
006279,000370: 
006280,000371: 06,2263           33665        RETNON             CAF      90SECS                                
006281,000372: 06,2264           05273                           TC       VARDELAY                              
006282,000373: 
006283,000374: 06,2265           45000        ENDTNON            CS       DLAYFAIL                              #  RESET TURN-ON REQUEST FAILBIT
006284,000375: 06,2266           71323                           MASK     IMODES30                              
006285,000376: 06,2267           57323                           XCH      IMODES30                              
006286,000377: 06,2270           75000                           MASK     DLAYFAIL                              #  IF IT WAS OFF, SEND ISS DELAY COMPLETE
006287,000378: 06,2271           00006                           EXTEND                                         
006288,000379: 06,2272           12305                           BZF      ENDTNON2                              
006289,000380: 06,2273           34764                           CAF      TONISSBT                              #  IF IT WAS ON AND TURN-ON REQUEST NOW
006290,000381: 06,2274           71323                           MASK     IMODES30                              #  PRESENT, RE-ENTER 90 SEC DELAY IN WL.
006291,000382: 06,2275           00006                           EXTEND                                         
006292,000383: 06,2276           12263                           BZF      RETNON                                
006293,000384: 
006294,000385: 06,2277           40074                           CS       FLAGWRD0                              #  IF IT IS NOT ON NOW, SEE IF A PROG WAS
006295,000386: 06,2300           74772                           MASK     IMUSEFLG                              #  WAITING.
006296,000387: 06,2301           10000                           CCS      A                                     
006297,000388: 06,2302           15327                           TCF      TASKOVER                              
006298,000389: 06,2303           04666                           TC       POSTJUMP                              
006299,000390: 06,2304           17556                           CADR     IMUBAD                                #  UNSUCCESSFUL TURN-ON.
006300,000391: 
006301,000392: 06,2305           34763        ENDTNON2           CAF      BIT15                                 #  SEND ISS DELAY COMPLETE.
006302,000393: 06,2306           00006                           EXTEND                                         
006303,000394: 06,2307           05012                           WOR      CHAN12                                #  TURN OFF ISS DELAY COUNTER
006304,000395: 06,2310           04725                           TC       IBNKCALL                              #  TURN OFF NO ATT LAMP.
006305,000396: 06,2311           17140                           CADR     NOATTOFF                              
006306,000397: 
006307,000398: 06,2312           05524        UNZ2               TC       ZEROICDU                              
006308,000399: 
006309,000400: 06,2313           45012                           CS       BITS4&5                               #  REMOVE ZERO AND COARSE.
006310,000401: 06,2314           00006                           EXTEND                                         
006311,000402: 06,2315           03012                           WAND     CHAN12                                
006312,000403: 
006313,000404: 06,2316           35040                           CAF      7.9SEC                                #  WAIT 7.9 SEC FOR CTRS TO FIND GIMBALS
006314,000405: 06,2317           05273                           TC       VARDELAY                              
006315,000406: 
006316,000407: 06,2320           34774        ISSUP              CA       IMUNITBT                              
006317,000408: 06,2321           64776                           AD       IMUFINHT                              
006318,000409: 06,2322           64777                           AD       ICDUINHT                              
006319,000410: 06,2323           40000                           COM                                            #  REMOVE CAGING, IMUFAIL INHIBIT, AND
006320,000411: 06,2324           71323                           MASK     IMODES30                              #  ICDUFAIL INHIBIT FLAGS.
006321,000412: 06,2325           55323                           TS       IMODES30                              
006322,000413: 
006323,000414: 06,2326           44774                           CS       NOIMUDAP                              #  ENABLE DAP
006324,000415: 06,2327           71324                           MASK     IMODES33                              
006325,000416: 06,2330           55324                           TS       IMODES33                              
006326,000417: 
006327,000418: 06,2331           02706                           TC       SETISSW                               #  ISS WARNING MIGHT HAVE BEEN INHIBITED.
006328,000419: 
006329,000420: 06,2332           44763                           CS       BIT15                                 #  REMOVE IMU DELAY COMPLETE DISCRETE.
006330,000421: 06,2333           00006                           EXTEND                                         
006331,000422: 06,2334           03012                           WAND     CHAN12                                
006332,000423: 
006333,000424: 06,2335           35033                           CAF      4SECS                                 #  DONT ENABLE PROG ALARM ON PIP FAIL FOR
006334,000425: 06,2336           05246                           TC       WAITLIST                              #  ANOTHER 4 SECS.
006335,000426: 06,2337  E3,1474                                  EBANK=   CDUIND                                
006336,000427: 06,2337           03126 16063                     2CADR    PFAILOK                               
006337,000428: 06,2341           15327                           TCF      TASKOVER                              
006338,000429: 
006339,000430: 06,2342           34776        OPONLY             CAF      BIT4                                  
006340,000431: 06,2343           00006                           EXTEND                                         #  IF OPERATE ON ONLY AND WE ARE IN COARSE
006341,000432: 06,2344           02012                           RAND     CHAN12                                #  ALIGN, DONT ZERO THE CDUS BECAUSE WE
006342,000433: 06,2345           10000                           CCS      A                                     #  MIGHT BE IN GIMBAL LOCK. USE V41N20 TO
006343,000434: 06,2346           12366                           TCF      C33TEST                               #  RECOVER.
006344,000435: 
006345,000436: 06,2347           34772                           CAF      IMUSEFLG                              #  OTHERWISE, ZERO THE COUNTERS
006346,000437: 06,2350           70074                           MASK     STATE                                 #  UNLESS SOMEONE IS USING THE IMU.
006347,000438: 06,2351           10000                           CCS      A                                     
006348,000439: 06,2352           12366                           TCF      C33TEST                               
006349,000440: 
006350,000441: 06,2353           02751                           TC       CAGESUB2                              #  SET TURNON FLAGS.
006351,000442: 
006352,000443: 06,2354           04725        ISSZERO            TC       IBNKCALL                              #  TURN OFF NO ATT LAMP
006353,000444: 06,2355           17140                           CADR     NOATTOFF                              #      IMU CAGE OFF ENTRY
006354,000445: 
006355,000446: 06,2356           34775                           CAF      BIT5                                  #  ISS CDU ZERO
006356,000447: 06,2357           00006                           EXTEND                                         
006357,000448: 06,2360           05012                           WOR      CHAN12                                
006358,000449: 
006359,000450: 06,2361           05524                           TC       ZEROICDU                              
006360,000451: 06,2362           34774                           CAF      BIT6                                  #  WAIT 300 MS FOR AGS TO RECEIVE SIGNAL.
006361,000452: 06,2363           05236                           TC       TWIDDLE                               
006362,000453: 06,2364           02312                           ADRES    UNZ2                                  
006363,000454: 06,2365           12366                           TCF      C33TEST                               
006364,000455: 
006365,000456:                                                                                                  #  PROGRAM NAME:  C33TEST
006366,000457: 
006367,000458:                                                                                                  #  FUNCTIONAL DESCRIPTION:  THIS PROGRAM MONITORS THREE FLIP-FLOP INBITS OF CHANNEL 33 AND CALLS THE APPROPRIATE
006368,000459:                                                                                                  #  SUBROUTINE TO PROCESS A CHANGE.  IT IS ANALOGOUS TO IMUMON, WHICH MONITORS CHANNEL 30, EXCEPT THAT IT READS
006369,000460:                                                                                                  #  CHANNEL 33 WITH A WAND INSTRUCTION BECAUSE A 'WRITE' PULSE IS REQUIRED TO RESET THE FLIP-FLOPS.  THE BITS
006370,000461:                                                                                                  #  PROCESSED AND THE SUBROUTINES CALLED ARE:
006371,000462: 
006372,000463:                                                                                                  #        BIT     FUNCTION                SUBROUTINE
006373,000464:                                                                                                  #        ---     --------                ----------
006374,000465:                                                                                                  #         13     PIPA FAIL               PIPFAIL
006375,000466:                                                                                                  #         12     DOWNLINK TOO FAST       DNTMFAST
006376,000467:                                                                                                  #         11     UPLINK TOO FAST         UPTMFAST
006377,000468: 
006378,000469:                                                                                                  #  UPON ENTRY TO THE SUBROUTINE, THE NEW BIT STATE IS IN A.
006379,000470: 
006380,000471:                                                                                                  #  CALLING SEQUENCE:  EVERY 480 MILLISECONDS AFTER TNONTEST.
006381,000472: 
006382,000473:                                                                                                  #  JOBS OR TASKS INITIATED:  NONE.
006383,000474: 
006384,000475:                                                                                                  #  SUBROUTINES CALLED:  PIPFAIL, DNTMFAST AND UPTMFAST ON BIT CHANGES.
006385,000476: 
006386,000477:                                                                                                  #  ERASABLE INITIALIZATION:  C(IMODES33) = OCT 16000 ON A FRESH START OR RESTART, THEREFORE, THESE ALARMS WILL
006387,000478:                                                                                                  #  REAPPEAR IF THE CONDITIONS PERSIST.
006388,000479: 
006389,000480:                                                                                                  #  ALARMS:  NONE.
006390,000481: 
006391,000482:                                                                                                  #  EXIT:  GLOCKMON.
006392,000483: 
006393,000484:                                                                                                  #  OUTPUT:  UPDATED BITS 13, 12 AND 11 OF IMODES33 WITH CHANGES PROCESSED.
006394,000485: 
006395,000486: 06,2366           31324        C33TEST            CA       IMODES33                              #  SEE IF RELEVANT CHAN33 BITS HAVE
006396,000487: 06,2367           75067                           MASK     33RDMSK                               
006397,000488: 06,2370           54001                           TS       L                                     #  CHANGED.
006398,000489: 06,2371           35067                           CAF      33RDMSK                               
006399,000490: 06,2372           00006                           EXTEND                                         
006400,000491: 06,2373           03033                           WAND     CHAN33                                #  RESETS FLIP-FLOP INPUTS.
006401,000492: 06,2374           00006                           EXTEND                                         
006402,000493: 06,2375           06001                           RXOR     LCHAN                                 
006403,000494: 06,2376           00006                           EXTEND                                         
006404,000495: 06,2377           12426                           BZF      GLOCKMON                              #  ON NO CHANGE.
006405,000496: 
006406,000497: 06,2400           54070                           TS       RUPTREG1                              #  SAVE BITS WHICH HAVE CHANGED.
006407,000498: 06,2401           23324                           LXCH     IMODES33                              
006408,000499: 06,2402           00006                           EXTEND                                         
006409,000500: 06,2403           06001                           RXOR     LCHAN                                 
006410,000501: 06,2404           55324                           TS       IMODES33                              #  UPDATED IMODES33.
006411,000502: 
006412,000503: 06,2405           35003                           CAF      ZERO                                  
006413,000504: 06,2406           56070                           XCH      RUPTREG1                              
006414,000505: 06,2407           60000                           DOUBLE                                         
006415,000506: 06,2410           12413                           TCF      NXTIBT     +1                         #  SCAN FOR BIT CHANGES.
006416,000507: 
006417,000508: 06,2411           65001                 -1        AD       ONE                                   
006418,000509: 06,2412           24070        NXTIBT             INCR     RUPTREG1                              
006419,000510: 06,2413           60000                 +1        DOUBLE                                         
006420,000511: 06,2414           54000                           TS       A                                     #  (CODING IDENTICAL TO CHAN 30).
006421,000512: 06,2415           12412                           TCF      NXTIBT                                
006422,000513: 
006423,000514: 06,2416           56071                           XCH      RUPTREG2                              
006424,000515: 06,2417           50070                           INDEX    RUPTREG1                              #  GET NEW VALUE OF BIT WHICH CHANGED.
006425,000516: 06,2420           34765                           CAF      PIP2FLBT                              
006426,000517: 06,2421           71324                           MASK     IMODES33                              
006427,000518: 06,2422           50070                           INDEX    RUPTREG1                              
006428,000519: 06,2423           02766                           TC       C33JMP                                
006429,000520: 
006430,000521: 06,2424           10071        NXTFL33            CCS      RUPTREG2                              #  PROCESS POSSIBLE ADDITIONAL CHANGES.
006431,000522: 06,2425           12411                           TCF      NXTIBT     -1                         
006432,000523: 
006433,000524:                                                                                                  #  PROGRAM NAME:  GLOCKMON
006434,000525: 
006435,000526:                                                                                                  #  FUNCTIONAL DESCRIPTION:  THIS PROGRAM MONITORS THE CDUZ COUNTER TO DETERMINE WHETHER THE ISS IS IN GIMBAL LOCK
006436,000527:                                                                                                  #  AND TAKES ACTION IF IT IS.  THREE REGIONS OF MIDDLE GIMBAL ANGLE (MGA) ARE USED:
006437,000528: 
006438,000529:                                                                                                  #        1) ABS(MGA) LESS THAN OR EQUAL TO 70 DEGREES - NORMAL MODE.
006439,000530:                                                                                                  #        2) ABS(MGA) GREATER THAN 70 DEGREES AND LESS THAN OR EQUAL TO 85 DEGREES - GIMBAL LOCK LAMP TURNED ON.
006440,000531:                                                                                                  #        3) ABS(MGA) GREATER THAN 85 DEGREES - ISS PUT IN COARSE ALIGN AND NO ATT LAMP TURNED ON.
006441,000532: 
006442,000533:                                                                                                  #  CALLING SEQUENCE:  EVERY 480 MILLISECONDS AFTER C33TEST.
006443,000534: 
006444,000535:                                                                                                  #  JOBS OR TASKS INITIATED:  NONE.
006445,000536: 
006446,000537:                                                                                                  #  SUBROUTINES CALLED:   1) SETCOARS WHEN ABS(MGA) GREATER THAN 85 DEGREES AND ISS NOT IN COARSE ALIGN.
006447,000538:                                                                                                  #                        2) LAMPTEST BEFORE TURNING OFF GIMBAL LOCK LAMP.
006448,000539: 
006449,000540:                                                                                                  #  ERASABLE INITIALIZATION:
006450,000541:                                                                                                  #                1) FRESH START OR RESTART WITH NO GROUPS ACTIVE:  C(CDUZ) = 0, IMODES30 BIT 6 = 0, IMODES33 BIT 1 = 0.
006451,000542:                                                                                                  #                2) RESTART WITH GROUPS ACTIVE:  SAME AS FRESH START EXCEPT C(CDUZ) NOT CHANGED SO GIMBAL MONITOR
006452,000543:                                                                                                  #                                                PROCEEDS AS BEFORE.
006453,000544: 
006454,000545:                                                                                                  #  ALARMS:       1) MGA REGION (2) CAUSES GIMBAL LOCK LAMP TO BE LIT.
006455,000546:                                                                                                  #                2) MGA REGION (3) CAUSES THE ISS TO BE PUT IN COARSE ALIGN AND THE NO ATT LAMP TO BE LIT IF EITHER NOT
006456,000547:                                                                                                  #                   SO ALREADY.
006457,000548: 
006458,000549: 06,2426           10034        GLOCKMON           CCS      CDUZ                                  
006459,000550: 06,2427           12433                           TCF      GLOCKCHK                              #  SEE IF MAGNITUDE OF MGA IS GREATER THAN
006460,000551: 06,2430           12471                           TCF      SETGLOCK                              #  70 DEGREES.
006461,000552: 06,2431           12433                           TCF      GLOCKCHK                              
006462,000553: 06,2432           12471                           TCF      SETGLOCK                              
006463,000554: 
006464,000555: 06,2433           62516        GLOCKCHK           AD       -70DEGS                               
006465,000556: 06,2434           00006                           EXTEND                                         
006466,000557: 06,2435           62470                           BZMF     SETGLOCK   -1                         #  NO LOCK.
006467,000558: 
006468,000559: 06,2436           63554                           AD       -15DEGS                               #  SEE IF ABS(MGA) GREATER THAN 85 DEGS.
006469,000560: 06,2437           00006                           EXTEND                                         
006470,000561: 06,2440           62466                           BZMF     NOGIMRUN                              
006471,000562: 
006472,000563: 06,2441           34776                           CAF      BIT4                                  #  IF SO, SYSTEM SHOULD BE IN COARSE ALIGN
006473,000564: 06,2442           00006                           EXTEND                                         #  TO PREVENT GIMBAL RUN-AWAY.
006474,000565: 06,2443           02012                           RAND     CHAN12                                
006475,000566: 06,2444           10000                           CCS      A                                     
006476,000567: 06,2445           12466                           TCF      NOGIMRUN                              
006477,000568: 
006478,000569: 06,2446  E6,1514                                  EBANK=   DAPDATR1                              
006479,000570: 06,2446           35057                           CAF      EBANK6                                
006480,000571: 06,2447           54003                           TS       EBANK                                 
006481,000572: 06,2450           41514                           CS       DAPDATR1                              
006482,000573: 06,2451           74346                           MASK     PRIO30                                
006483,000574: 06,2452           10000                           CCS      A                                     
006484,000575: 06,2453           12460                           TCF      CALLCRS                               #  NO
006485,000576: 
006486,000577: 06,2454           35001                           CAF      AVEGBIT                               #  YES, IS AVEG ON
006487,000578: 06,2455           70075                           MASK     FLAGWRD1                              
006488,000579: 06,2456           10000                           CCS      A                                     
006489,000580: 06,2457           12466                           TCF      NOGIMRUN                              #  YES, DON'T COARSE ALIGN
006490,000581: 
006491,000582: 06,2460           04725        CALLCRS            TC       IBNKCALL                              #  GO INTO COARSE ALIGN
006492,000583: 06,2461           17021                           CADR     SETCOARS                              
006493,000584: 
006494,000585: 06,2462           36211                           CAF      SIX                                   #  ENABLE ISS ERROR COUNTERS IN 60 MS
006495,000586: 06,2463           05246                           TC       WAITLIST                              
006496,000587: 06,2464  E3,1474                                  EBANK=   CDUIND                                
006497,000588: 06,2464           03015 16063                     2CADR    CA+ECE                                
006498,000589: 
006499,000590: 06,2466           34774        NOGIMRUN           CAF      BIT6                                  #  TURN ON GIMBAL LOCK LAMP.
006500,000591: 06,2467           12471                           TCF      SETGLOCK                              
006501,000592: 
006502,000593: 06,2470           35003                 -1        CAF      ZERO                                  
006503,000594: 06,2471           61231        SETGLOCK           AD       DSPTAB     +11D                       #  SEE IF PRESENT STATE OF GIMBAL LOCK LAMP
006504,000595: 06,2472           74774                           MASK     BIT6                                  #  AGREES WITH DESIRED STATE BY HALF ADDING
006505,000596: 06,2473           00006                           EXTEND                                         #  THE TWO.
006506,000597: 06,2474           15336                           BZF      GLOCKOK                               #  OK AS IS.
006507,000598: 
006508,000599: 06,2475           71231                           MASK     DSPTAB     +11D                       #  IF OFF, DONT TURN ON IF IMU BEING CAGED.
006509,000600: 06,2476           10000                           CCS      A                                     
006510,000601: 06,2477           12513                           TCF      GLAMPTST                              #  TURN OFF UNLESS LAMP TEST IN PROGRESS.
006511,000602: 
006512,000603: 06,2500           34774                           CAF      IMUNITBT                              
006513,000604: 06,2501           71323                           MASK     IMODES30                              
006514,000605: 06,2502           10000                           CCS      A                                     
006515,000606: 06,2503           15336                           TCF      GLOCKOK                               
006516,000607: 
006517,000608: 06,2504           41231        GLINVERT           CS       DSPTAB     +11D                       #  INVERT GIMBAL LOCK LAMP.
006518,000609: 06,2505           74774                           MASK     BIT6                                  
006519,000610: 06,2506           64763                           AD       BIT15                                 #  TO INDICATE CHANGE IN DSPTAB +11D.
006520,000611: 06,2507           57231                           XCH      DSPTAB     +11D                       
006521,000612: 06,2510           72160                           MASK     OCT37737                              
006522,000613: 06,2511           27231                           ADS      DSPTAB     +11D                       
006523,000614: 06,2512           15336                           TCF      GLOCKOK                               
006524,000615: 
006525,000616: 06,2513           02771        GLAMPTST           TC       LAMPTEST                              #  TURN OFF UNLESS LAMP TEST IN PROGRESS.
006526,000617: 06,2514           15336                           TCF      GLOCKOK                               
006527,000618: 06,2515           12504                           TCF      GLINVERT                              
006528,000619: 
006529,000620: 06,2516           63434        -70DEGS            DEC      -.38888                               #  -70 DEGREES SCALED IN HALF-REVOLUTIONS.
006530,000621: 06,2517  06,3554               -15DEGS            EQUALS   OCT75252                              #  SAME AS -.08333 DEC
006531,000622: 
006532,000623:                                                                                                  #  PROGRAM NAME:  TLIM.
006533,000624: 
006534,000625:                                                                                                  #  FUNCTIONAL DESCRIPTION:  THIS PROGRAM MAINTAINS THE TEMP LAMP (BIT 4 OF CHANNEL 11) ON THE DSKY TO AGREE WITH
006535,000626:                                                                                                  #  THE TEMP SIGNAL FROM THE ISS (BIT 15 OF CHANNEL 30).  HOWEVER, THE LIGHT WILL NOT BE TURNED OFF IF A LAMP TEST
006536,000627:                                                                                                  #  IS IN PROGRESS.
006537,000628: 
006538,000629:                                                                                                  #  CALLING SEQUENCE:  CALLED BY IMUMON ON A CHANGE OF BIT 15 OF CHANNEL 30.
006539,000630: 
006540,000631:                                                                                                  #  JOBS OR TASKS INITIATED:  NONE.
006541,000632: 
006542,000633:                                                                                                  #  SUBROUTINES CALLED:  LAMPTEST.
006543,000634: 
006544,000635:                                                                                                  #  ERASABLE INITIALIZATION:  FRESH START AND RESTART TURN THE TEMP LAMP OFF.
006545,000636: 
006546,000637:                                                                                                  #  ALARMS:  TEMP LAMP TURNED ON WHEN IMU TEMP GOES OUT OF LIMITS.
006547,000638: 
006548,000639:                                                                                                  #  EXIT:  NXTIFAIL.
006549,000640: 
006550,000641:                                                                                                  #  OUTPUT:  SERVICE OF TEMP LAMP.                  IN A, EXCEPT FOR TLIM.
006551,000642: 
006552,000643: 06,2517           74761        TLIM               MASK     POSMAX                                #  REMOVE BIT FROM WORD OF CHANGES AND SET
006553,000644: 06,2520           54071                           TS       RUPTREG2                              #  DSKY TEMP LAMP ACCORDINGLY.
006554,000645: 
006555,000646: 06,2521           31323                           CA       IMODES30                              
006556,000647: 06,2522           74763                           MASK     TLIMBIT                               
006557,000648: 06,2523           00006                           EXTEND                                         
006558,000649: 06,2524           12531                           BZF      TEMPOK                                
006559,000650: 
006560,000651: 06,2525           34776                           CAF      BIT4                                  #  TURN ON LAMP.
006561,000652: 06,2526           00006                           EXTEND                                         
006562,000653: 06,2527           05011                           WOR      DSALMOUT                              
006563,000654: 06,2530           12222                           TCF      NXTIFAIL                              
006564,000655: 
006565,000656: 06,2531           02771        TEMPOK             TC       LAMPTEST                              #  IF TEMP NOW OK, DONT TURN OFF LAMP IF
006566,000657: 06,2532           12222                           TCF      NXTIFAIL                              #  LAMP TEST IN PROGRESS.
006567,000658: 
006568,000659: 06,2533           44776                           CS       BIT4                                  
006569,000660: 06,2534           00006                           EXTEND                                         
006570,000661: 06,2535           03011                           WAND     DSALMOUT                              #  TURN OFF TEMP CAUTION
006571,000662: 06,2536           12222                           TCF      NXTIFAIL                              
006572,000663: 
006573,000664:                                                                                                  #  PROGRAM NAME:  ITURNON.
006574,000665: 
006575,000666:                                                                                                  #  FUNCTIONAL DESCRIPTION:  THIS PROGRAM IS CALLED BY IMUMON WHEN A CHANGE OF BIT 14 OF CHANNEL 30 (ISS TURN-ON
006576,000667:                                                                                                  #  REQUEST) IS DETECTED.  UPON ENTRY, ITURNON CHECKS IF A TURN-ON DELAY SEQUENCE HAS FAILED, AND IF SO, IT EXITS.
006577,000668:                                                                                                  #  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
006578,000669:                                                                                                  #  THAT TNONTEST WILL INITIATE THE ISS INITIALIZATION SEQUENCE.  IF OFF, THE TURN-ON DELAY SIGNAL, CHANNEL 12 BIT
006579,000670:                                                                                                  #  15, IS CHECKED AND IF IT IS ON, ITURNON EXITS.  IF THE DELAY SIGNAL IS OFF, PROGRAM ALARM 00207 IS ISSUED, BIT 2
006580,000671:                                                                                                  #  OF IMODES30 IS SET TO 1 AND THE PROGRAM EXITS.
006581,000672: 
006582,000673:                                                                                                  #  THE SETTING OF BIT 2 OF IMODES30 (ISS DELAY SEQUENCE FAIL) INHIBITS THIS ROUTINE AND IMUOP FROM
006583,000674:                                                                                                  #  PROCESSING ANY CHANGES.  THIS BIT WILL BE RESET BY THE ENDTNON ROUTINE WHEN THE CURRENT 90 SECOND DELAY PERIOD
006584,000675:                                                                                                  #  ENDS.
006585,000676: 
006586,000677:                                                                                                  #  CALLING SEQUENCE:  FROM IMUMOM WHEN ISS TURN-ON REQUEST CHANGES STATE.
006587,000678: 
006588,000679:                                                                                                  #  JOBS OR TASKS INITIATED:  NONE.
006589,000680: 
006590,000681:                                                                                                  #  SUBROUTINES CALLED:  ALARM, IF THE ISS TURN-ON REQUEST IS NOT PRESENT FOR 90 SECONDS.
006591,000682: 
006592,000683:                                                                                                  #  ERASABLE INITIALIZATION:  FRESH START AND RESTART SET BIT 15 OF CHANNEL 12 AND BITS 2 AND 7 OF IMODES30 TO 0,
006593,000684:                                                                                                  #  AND BIT 14 OF IMODES30 TO 1.
006594,000685: 
006595,000686:                                                                                                  #  ALARMS: PROGRAM ALARM 00207 IS ISSUED IF THE ISS TURN-ON REQUEST SIGNAL IS NOT PRESENT FOR 90 SECONDS.
006596,000687: 
006597,000688:                                                                                                  #  EXIT:  NXTIFAIL.
006598,000689: 
006599,000690:                                                                                                  #  OUTPUT:  BIT 7 OF IMODES30 TO START ISS INITIALIZATION, OR BIT 2 OF IMODES30 AND PROGRAM ALARM 00207 TO INDICATE
006600,000691:                                                                                                  #  A FAILED TURN-ON SEQUENCE.
006601,000692: 
006602,000693: 06,2537           35000        ITURNON            CAF      DLAYFAIL                              #  IF DELAY REQUEST HAS GONE OFF
006603,000694: 06,2540           71323                           MASK     IMODES30                              #  PREMATURELY, DO NOT PROCESS ANY CHANGES
006604,000695: 06,2541           10000                           CCS      A                                     #  UNTIL THE CURRENT 90 SEC WAIT EXPIRES.
006605,000696: 06,2542           12222                           TCF      NXTIFAIL                              
006606,000697: 
006607,000698: 06,2543           34764                           CAF      TONISSBT                              #  SEE IF JUST ON OR OFF
006608,000699: 06,2544           71323                           MASK     IMODES30                              
006609,000700: 06,2545           00006                           EXTEND                                         
006610,000701: 06,2546           12562                           BZF      ITURNON2                              #  IF JUST ON.
006611,000702: 
006612,000703: 06,2547           34763                           CAF      BIT15                                 
006613,000704: 06,2550           00006                           EXTEND                                         #  SEE IF DELAY PRESENT DISCRETE HAS BEEN
006614,000705: 06,2551           02012                           RAND     CHAN12                                #  SENT. IF SO, ACTION COMPLETE.
006615,000706: 06,2552           00006                           EXTEND                                         
006616,000707: 06,2553           12555                           BZF      +2                                    
006617,000708: 06,2554           12222                           TCF      NXTIFAIL                              
006618,000709: 
006619,000710: 06,2555           35000                           CAF      DLAYFAIL                              #  IF NOT, SET BIT TO INDICATE REQUEST NOT
006620,000711: 06,2556           27323                           ADS      IMODES30                              #  PRESENT FOR FULL DURATION.
006621,000712: 06,2557           05644                           TC       ALARM                                 
006622,000713: 06,2560           00207                           OCT      207                                   
006623,000714: 06,2561           12222                           TCF      NXTIFAIL                              
006624,000715: 
006625,000716: 06,2562           41323        ITURNON2           CS       IMODES30                              #  SET BIT7 TO INDICATE WAIT OF 1 SAMPLE
006626,000717: 06,2563           74773                           MASK     ITNON1BT                              
006627,000718: 06,2564           27323                           ADS      IMODES30                              
006628,000719: 06,2565           12222                           TCF      NXTIFAIL                              
006629,000720: 
006630,000721:                                                                                                  #  PROGRAM NAME:  IMUCAGE.
006631,000722: 
006632,000723:                                                                                                  #  FUNCTIONAL DESCRIPTION:  THIS PROGRAM PROCESSES CHANGES OF THE IMUCAGE INBIT, CHANNEL 30 BIT 11.  IF THE BIT
006633,000724:                                                                                                  #  CHANGES TO 0 (CAGE BUTTON PRESSED), THE ISS IS CAGED (ICDU ZERO + COARSE ALIGN + NO ATT LAMP) UNTIL THE
006634,000725:                                                                                                  #  ASTRONAUT SELECTS ANOTHER PROGRAM TO ALIGN THE ISS.  ANY PULSE TRAINS TO THE ICDU'S AND GYRO'S ARE TERMINATED,
006635,000726:                                                                                                  #  THE ASSOCIATED OUTCOUNTERS ARE ZEROED AND THE GYRO'S ARE DE-SELECTED.  NO ACTION OCCURS WHEN THE BUTTON IS
006636,000727:                                                                                                  #  RELEASED (INBIT CHANGES TO 1).
006637,000728: 
006638,000729:                                                                                                  #  CALLING SEQUENCE:  BY IMUMON WHEN IMU CAGE BIT CHANGES.
006639,000730: 
006640,000731:                                                                                                  #  JOBS OR TASKS INITIATED:  NONE.
006641,000732: 
006642,000733:                                                                                                  #  SUBROUTINES CALLED:  CAGESUB.
006643,000734: 
006644,000735:                                                                                                  #  ERASABLE INITIALIZATION:  FRESH START AND RESTART SET BIT 11 OF IMODES30 TO 1.
006645,000736: 
006646,000737:                                                                                                  #  ALARMS: NONE.
006647,000738: 
006648,000739:                                                                                                  #  EXIT:  NXTIFAIL.
006649,000740: 
006650,000741:                                                                                                  #  OUTPUT:  ISS CAGED, COUNTERS ZEROED, PULSE TRAINS TERMINATED AND NO ATT LAMP LIT.
006651,000742: 
006652,000743: 06,2566           10000        IMUCAGE            CCS      A                                     #  NO ACTION IF GOING OFF.
006653,000744: 06,2567           12354                           TCF      ISSZERO                               
006654,000745: 06,2570           35034                           CA       LOW9                                  #  TERMINATE ICDU, OPTICS, GYRO PULSE TRAINS
006655,000746: 06,2571           00006                           EXTEND                                         
006656,000747: 06,2572           03014                           WAND     CHAN14                                
006657,000748: 
006658,000749: 06,2573           42774                           CS       OCT272                                #  KNOCK DOWN TVC ENABLE, IMU ERROR COUNTER
006659,000750: 06,2574           00006                           EXTEND                                         #    ENABLE, ZERO ICDU, COARSE ALIGN
006660,000751: 06,2575           03012                           WAND     CHAN12                                #    ENABLE, OPTICS ERR CNTR ENABLE
006661,000752: 
006662,000753: 06,2576           44773                           CS       ENGONBIT                              #  CLEAR ENGINE ON FLAG
006663,000754: 06,2577           70101                           MASK     FLAGWRD5                              
006664,000755: 06,2600           54101                           TS       FLAGWRD5                              
006665,000756: 06,2601           44765                           CS       BIT13                                 #  TURN OFF ENGINE
006666,000757: 06,2602           00006                           EXTEND                                         
006667,000758: 06,2603           03011                           WAND     DSALMOUT                              
006668,000759: 
006669,000760: 06,2604           02746                           TC       CAGESUB1                              
006670,000761: 
006671,000762: 06,2605           04725                           TC       IBNKCALL                              #  KNOCK DOWN TRACK, REFSMMAT, DRIFT FLAGS
006672,000763: 06,2606           17052                           CADR     RNDREFDR                              
006673,000764: 
006674,000765: 06,2607           45003                           CS       ZERO                                  #  ZERO COMMAND OUT-COUNTERS
006675,000766: 06,2610           54050                           TS       CDUXCMD                               
006676,000767: 06,2611           54051                           TS       CDUYCMD                               
006677,000768: 06,2612           54052                           TS       CDUZCMD                               
006678,000769: 06,2613           54047                           TS       GYROCMD                               
006679,000770: 06,2614           42777                           CS       OCT740                                #  HAVING WAITED AT LEAST 27 MCT FROM
006680,000771: 06,2615           00006                           EXTEND                                         #  GYRO PULSE TRAIN TERMINATION, WE CAN
006681,000772: 06,2616           03014                           WAND     CHAN14                                #  DE-SELECT THE GYROS.
006682,000773: 06,2617           12222                           TCF      NXTIFAIL                              
006683,000774: 
006684,000775:                                                                                                  #  PROGRAM NAME:  IMUOP.
006685,000776: 
006686,000777:                                                                                                  #  FUNCTIONAL DESCRIPTION:  THIS PROGRAM PROCESSES CHANGES IN THE ISS OPERATE DISCRETE, BIT 9 OF CHANNEL 30.
006687,000778:                                                                                                  #  IF THE INBIT CHANGES TO 0, INDICATING ISS ON, IMUOP GENERALLY SETS BIT 7 OF IMODES30 TO 1 TO REQUEST ISS
006688,000779:                                                                                                  #  INITIALIZATION VIA TNONTEST.  AN EXCEPTION IS DURING A FAILED ISS DELAY DURING WHICH BIT 2 OF IMODES30 IS SET
006689,000780:                                                                                                  #  TO 1 AND NO FURTHER INITIALIZATION IS REQUIRED.  WHEN THE INBIT CHANGES TO 1, INDICATING ISS OFF, IMUSEFLG IS
006690,000781:                                                                                                  #  TESTED TO SEE IF ANY PROGRAM WAS USING THE ISS.  IF SO, PROGRAM ALARM 00214 IS ISSUED.
006691,000782: 
006692,000783:                                                                                                  #  CALLING SEQUENCE:  BY IMUMON WHEN BIT 9 OF CHANNEL 30 CHANGES.
006693,000784: 
006694,000785:                                                                                                  #  JOBS OR TASKS INITIATED:  NONE.
006695,000786: 
006696,000787:                                                                                                  #  SUBROUTINES CALLED:  ALARM, IF ISS IS TURNED OFF WHILE IN USE.
006697,000788: 
006698,000789:                                                                                                  #  ERASABLE INITIALIZATION:  ON FRESH START AND RESTART, BIT 9 OF IMODES30 IS SET TO 1 EXCEPT WHEN THE GIMBAL LOCK
006699,000790:                                                                                                  #  LAMP IS ON, IN WHICH CASE IT IS SET TO 0.  THIS PREVENTS ICDU ZERO BY TNONTEST WITH THE ISS IN GIMBAL LOCK.
006700,000791: 
006701,000792:                                                                                                  #  ALARMS:  PROGRAM ALARM 00214 IF THE ISS IS TURNED OFF WHILE IN USE.
006702,000793: 
006703,000794:                                                                                                  #  EXIT:  NXTIFAIL.
006704,000795: 
006705,000796:                                                                                                  #  OUTPUT:  ISS INITIALIZATION REQUEST (IMODES30 BIT 7) OR PROGRAM ALARM 00214.
006706,000797: 
006707,000798: 06,2620           00006        IMUOP              EXTEND                                         #  IF OPERATE JUST ON, WAIT 1 SAMPLE.
006708,000799: 06,2621           12646                           BZF      IMUOP2                                
006709,000800: 
006710,000801: 06,2622           41324                           CS       IMODES33                              #  DISABLE DAP
006711,000802: 06,2623           74774                           MASK     NOIMUDAP                              
006712,000803: 06,2624           27324                           ADS      IMODES33                              
006713,000804: 
006714,000805: 06,2625           04725                           TC       IBNKCALL                              #  KNOCK DOWN TRACK, REFSMMAT, DRIFT FLAGS
006715,000806: 06,2626           17052                           CADR     RNDREFDR                              
006716,000807: 
006717,000808: 06,2627           44771                           CS       UTBIT                                 
006718,000809: 06,2630           70104                           MASK     FLAGWRD8                              
006719,000810: 06,2631           54104                           TS       FLAGWRD8                              
006720,000811: 
006721,000812: 06,2632           34773                           CA       RNDVZBIT                              #  TURN OFF FLAGS
006722,000813: 06,2633           64772                           AD       IMUSEBIT                              
006723,000814: 06,2634           40000                           COM                                            
006724,000815: 06,2635           70074                           MASK     FLAGWRD0                              
006725,000816: 06,2636           56074                           XCH      FLAGWRD0                              #  IF GOING OFF, ALARM IF PROG USING IMU
006726,000817: 06,2637           40000                           COM                                            
006727,000818: 06,2640           74772                           MASK     IMUSEFLG                              
006728,000819: 06,2641           10000                           CCS      A                                     
006729,000820: 06,2642           12222                           TCF      NXTIFAIL                              
006730,000821: 
006731,000822: 06,2643           05644                           TC       ALARM                                 
006732,000823: 06,2644           00214                           OCT      214                                   
006733,000824: 06,2645           12222                           TCF      NXTIFAIL                              
006734,000825: 
006735,000826: 06,2646           35000        IMUOP2             CAF      DLAYFAIL                              
006736,000827: 06,2647           71323                           MASK     IMODES30                              
006737,000828: 06,2650           10000                           CCS      A                                     
006738,000829: 06,2651           12222                           TCF      NXTIFAIL                              #  IF SO, DONT PROCESS UNTIL PRESENT 90
006739,000830: 06,2652           12562                           TCF      ITURNON2                              #  SECONDS EXPIRES.
006740,000831: 
006741,000832:                                                                                                  #  PROGRAM NAME:  PIPFAIL
006742,000833: 
006743,000834:                                                                                                  #  FUNCTIONAL DESCRIPTION:  THIS PROGRAM PROCESSES CHANGES OF BIT 13 OF CHANNEL 33, PIPA FAIL.  IT SETS BIT 10 OF
006744,000835:                                                                                                  #  IMODES30 TO AGREE.  IT CALLS SETISSW IN CASE A PIPA FAIL NECESSITATES AN ISS WARNING.  IF NOT, I.E., IMODES30
006745,000836:                                                                                                  #  BIT 1 = 1, AND A PIPA FAIL IS PRESENT AND THE ISS IS NOT BEING INITIALIZED, PROGRAM ALARM 00212 IS ISSUED.
006746,000837: 
006747,000838:                                                                                                  #  CALLING SEQUENCE:  BY C33TEST ON CHANGES OF CHANNEL 33 BIT 13.
006748,000839: 
006749,000840:                                                                                                  #  JOBS OR TASKS INITIATED:  NONE.
006750,000841: 
006751,000842:                                                                                                  #  SUBROUTINES CALLED:  1) SETISSW, AND 2) ALARM (SEE FUNCTIONAL DESCRIPTION).
006752,000843: 
006753,000844:                                                                                                  #  ERASABLE INITIALIZATION:  SEE IMUMON FOR INITIALIZATION OF IMODES30.  THE RELAVANT BITS ARE 5, 7, 8, 9, AND 10.
006754,000845: 
006755,000846:                                                                                                  #  ALARMS:  PROGRAM ALARM 00212 IF PIPA FAIL IS PRESENT BUT NEITHER ISS WARNING IS TO BE ISSUED NOR THE ISS IS
006756,000847:                                                                                                  #  BEING INITIALIZED.
006757,000848: 
006758,000849:                                                                                                  #  EXIT:  NXTFL33.
006759,000850: 
006760,000851:                                                                                                  #  OUTPUT:  PROGRAM ALARM 00212 AND ISS WARNING MAINTENANCE.
006761,000852: 
006762,000853: 06,2653           10000        PIPFAIL            CCS      A                                     #  SET BIT10 IN IMODES30 SO ALL ISS WARNING
006763,000854: 06,2654           34770                           CAF      PIPAFLBT                              #  INFO IS IN ONE REGISTER
006764,000855: 06,2655           57323                           XCH      IMODES30                              
006765,000856: 06,2656           73000                           MASK     -BIT10                                
006766,000857: 06,2657           27323                           ADS      IMODES30                              
006767,000858: 
006768,000859: 06,2660           02706                           TC       SETISSW                               
006769,000860: 
006770,000861: 06,2661           41323                           CS       IMODES30                              #  IF PIP FAIL DOESNT LIGHT ISS WARNING, DO
006771,000862: 06,2662           75001                           MASK     ACCFINHT                              #  A PROGRAM ALARM IF IMU OPERATING BUT NOT
006772,000863: 06,2663           10000                           CCS      A                                     #  CAGED OR BEING TURNED ON.
006773,000864: 06,2664           12424                           TCF      NXTFL33                               
006774,000865: 
006775,000866: 06,2665           31323                           CA       IMODES30                              
006776,000867: 06,2666           72776                           MASK     OCT1720                               
006777,000868: 06,2667           10000                           CCS      A                                     
006778,000869: 06,2670           12424                           TCF      NXTFL33                               #  ABOVE CONDITION NOT MET.
006779,000870: 
006780,000871: 06,2671           05644                           TC       ALARM                                 
006781,000872: 06,2672           00212                           OCT      212                                   
006782,000873: 06,2673           12424                           TCF      NXTFL33                               
006783,000874: 
006784,000875:                                                                                                  #  PROGRAM NAMES:  DNTMFAST, UPTMFAST
006785,000876: 
006786,000877:                                                                                                  #  FUNCTIONAL DESCRIPTION:  THESE PROGRAMS PROCESS CHANGES OF BITS 12 AND 11 OF CHANNEL 33.  IF A BIT CHANGES TO A
006787,000878:                                                                                                  #  0, A PROGRAM ALARM IS ISSUED.  THE ALARMS ARE:
006788,000879: 
006789,000880:                                                                                                  #        BIT     ALARM   CAUSE
006790,000881:                                                                                                  #        ---     -----   -----
006791,000882:                                                                                                  #         12     01105   DOWNLINK TOO FAST
006792,000883:                                                                                                  #         11     01106   UPLINK TOO FAST
006793,000884: 
006794,000885:                                                                                                  #  CALLING SEQUENCE:  BY C33TEST ON A BIT CHANGE.
006795,000886: 
006796,000887:                                                                                                  #  SUBROUTINES CALLED:  ALARM, IF A BIT CHANGES TO A 0.
006797,000888: 
006798,000889:                                                                                                  #  ERASABLE INITIALIZATION:  FRESH START OR RESTART, BITS 12 AND 11 OF IMODES33 ARE SET TO 1.
006799,000890: 
006800,000891:                                                                                                  #  ALARMS:  SEE FUNCTIONAL DESCRIPTION.
006801,000892: 
006802,000893:                                                                                                  #  EXIT:  NXTFL33.
006803,000894: 
006804,000895:                                                                                                  #  OUTPUT:  PROGRAM ALARM ON A BIT CHANGE TO 0.
006805,000896: 
006806,000897: 06,2674           10000        DNTMFAST           CCS      A                                     #  DO PROG ALARM IF TM TOO FAST.
006807,000898: 06,2675           12424                           TCF      NXTFL33                               
006808,000899: 
006809,000900: 06,2676           05644                           TC       ALARM                                 
006810,000901: 06,2677           01105                           OCT      1105                                  
006811,000902: 06,2700           12424                           TCF      NXTFL33                               
006812,000903: 
006813,000904: 06,2701           10000        UPTMFAST           CCS      A                                     #  SAME AS DNLINK TOO FAST WITH DIFFERENT
006814,000905: 06,2702           12424                           TCF      NXTFL33                               #  ALARM CODE.
006815,000906: 
006816,000907: 06,2703           05644                           TC       ALARM                                 
006817,000908: 06,2704           01106                           OCT      1106                                  
006818,000909: 06,2705           12424                           TCF      NXTFL33                               
006819,000910: 
006820,000911:                                                                                                  #  PROGRAM NAME:  SETISSW
006821,000912: 
006822,000913:                                                                                                  #  FUNCTIONAL DESCRIPTION:  THIS PROGRAM TURNS THE ISS WARNING LAMP ON AND OFF (CHANNEL 11 BIT 1 = 1 FOR ON,
006823,000914:                                                                                                  #  0 FOR OFF) DEPENDING ON THE STATUS OF IMODES30 BITS 13 (IMU FAIL) AND 4 (INHIBIT IMU FAIL), 12 (ICDU FAIL) AND
006824,000915:                                                                                                  #  3 (INHIBIT ICDU FAIL), AND 10 (PIPA FAIL) AND 1 (INHIBIT PIPA FAIL).  THE LAMP IS LEFT ON IF A LAMP TEST IS IN
006825,000916:                                                                                                  #  PROGRESS.
006826,000917: 
006827,000918:                                                                                                  #  CALLING SEQUENCE:  CALLED BY IMUMON ON CHANGES TO IMU FAIL AND ICDU FAIL.  CALLED BY IFAILOK AND PFAILOK UPON
006828,000919:                                                                                                  #  REMOVAL OF THE FAIL INHIBITS.  CALLED BY PIPFAIL WHEN THE PIPA FAIL DISCRETE CHANGES.  IT IS CALLED BY PIPUSE
006829,000920:                                                                                                  #  SINCE THE PIPA FAIL PROGRAM ALARM MAY NECESSITATE AN ISS WARNING, AND LIKEWISE BY PIPFREE WHEN THE ALARM DEPARTS
006830,000921:                                                                                                  #  AND IT IS CALLED BY IMUZERO3 AND ISSUP AFTER THE FAIL INHIBITS HAVE BEEN REMOVED.
006831,000922: 
006832,000923:                                                                                                  #  JOBS OR TASKS INITIATED:  NONE.
006833,000924: 
006834,000925:                                                                                                  #  SUBROUTINES CALLED:  NONE.
006835,000926: 
006836,000927:                                                                                                  #  ERASABLE INITIALIZATION:
006837,000928: 
006838,000929:                                                                                                  #        1) IMODES30 - SEE IMUMON.
006839,000930:                                                                                                  #        2) IMODES33 BIT 1 = 0 (LAMP TEST NOT IN PROGRESS).
006840,000931: 
006841,000932:                                                                                                  #  ALARMS:  ISS WARNING.
006842,000933: 
006843,000934:                                                                                                  #  EXIT: VIA Q.
006844,000935: 
006845,000936:                                                                                                  #  OUTPUT: ISS WARNING LAMP SET PROPERLY.
006846,000937: 
006847,000938: 06,2706           35007        SETISSW            CAF      OCT15                                 #  SET ISS WARNING USING THE FAIL BITS IN
006848,000939: 06,2707           71323                           MASK     IMODES30                              #  BITS 13, 12, AND 10 OF IMODES30 AND THE
006849,000940: 06,2710           00006                           EXTEND                                         #  FAILURE INHIBIT BITS IN POSITIONS
006850,000941: 06,2711           74770                           MP       BIT10                                 #  4, 3, AND 1.
006851,000942: 06,2712           31323                           CA       IMODES30                              
006852,000943: 06,2713           00006                           EXTEND                                         
006853,000944: 06,2714           04001                           ROR      LCHAN                                 #  0 INDICATES FAILURE.
006854,000945: 06,2715           40000                           COM                                            
006855,000946: 06,2716           75066                           MASK     OCT15000                              
006856,000947: 06,2717           10000                           CCS      A                                     
006857,000948: 06,2720           12731                           TCF      ISSWON                                #  FAILURE.
006858,000949: 
006859,000950: 06,2721           35001        ISSWOFF            CAF      LMPTSTBT                              #  DONT TURN OFF ISS WARNING IF LAMP TEST
006860,000951: 06,2722           71324                           MASK     IMODES33                              #  IN PROGRESS.
006861,000952: 06,2723           10000                           CCS      A                                     
006862,000953: 06,2724           00002                           TC       Q                                     
006863,000954: 
006864,000955: 06,2725           45001                           CS       BIT1                                  
006865,000956: 06,2726           00006                           EXTEND                                         
006866,000957: 06,2727           03011                           WAND     DSALMOUT                              #  TURN OFF ISS WARNING
006867,000958: 06,2730           00002                           TC       Q                                     
006868,000959: 
006869,000960: 06,2731           00006        ISSWON             EXTEND                                         
006870,000961: 06,2732           22066                           QXCH     ITEMP6                                
006871,000962: 06,2733           05743                           TC       VARALARM                              #  TELL EVERYONE WHAT CAUSED THE ISSWARNING
006872,000963: 06,2734           35001                           CAF      BIT1                                  
006873,000964: 06,2735           00006                           EXTEND                                         
006874,000965: 06,2736           05011                           WOR      DSALMOUT                              #  TURN ON ISS WARNING
006875,000966: 06,2737           00066                           TC       ITEMP6                                
006876,000967: 06,2740           47667        CAGESUB            CS       BIT15+6                               #  SET OUTBITS + INTERNAL FLAGS FOR
006877,000968: 06,2741           00006                           EXTEND                                         #  SYSTEM TURN-ON OR CAGE. DISABLE THE
006878,000969: 06,2742           03012                           WAND     CHAN12                                #  ERROR COUNTER AND REMOVE IMU DELAY COMP.
006879,000970: 06,2743           35012                           CAF      BITS4&5                               #  SEND ZERO AND COARSE.
006880,000971: 06,2744           00006                           EXTEND                                         
006881,000972: 06,2745           05012                           WOR      CHAN12                                
006882,000973: 
006883,000974: 06,2746           41231        CAGESUB1           CS       DSPTAB     +11D                       #  TURN ON NO ATT LAMP
006884,000975: 06,2747           77664                           MASK     OC40010                               
006885,000976: 06,2750           27231                           ADS      DSPTAB     +11D                       
006886,000977: 
006887,000978: 06,2751           41323        CAGESUB2           CS       IMODES30                              #  SET FLAGS TO INDICATE CAGING OR TURN-ON
006888,000979: 06,2752           75024                           MASK     OCT75                                 #  AND INHIBIT ALL ISS WARNING INFO
006889,000980: 06,2753           27323                           ADS      IMODES30                              
006890,000981: 
006891,000982: 06,2754           41324                           CS       IMODES33                              #  DISABLE DAP AUTO AND HOLD MODES
006892,000983: 06,2755           74774                           MASK     NOIMUDAP                              
006893,000984: 06,2756           27324                           ADS      IMODES33                              
006894,000985: 
006895,000986: 06,2757           00002                           TC       Q                                     
006896,000987: 
006897,000988: 06,2760  06,2706               IMUFAIL            EQUALS   SETISSW                               
006898,000989: 06,2760  06,2706               ICDUFAIL           EQUALS   SETISSW                               
006899,000990: 
006900,000991:                                                                                                  #  JUMP TABLES AND CONSTANTS.
006901,000992: 
006902,000993: 06,2760           12537        IFAILJMP           TCF      ITURNON                               #  CHANNEL 30 DISPATCH.
006903,000994: 06,2761           12706                           TCF      IMUFAIL                               
006904,000995: 06,2762           12706                           TCF      ICDUFAIL                              
006905,000996: 06,2763           12566                           TCF      IMUCAGE                               
006906,000997: 06,2764           76400        30RDMSK            OCT      76400                                 #  (BIT 10 NOT SAMPLED HERE).
006907,000998: 06,2765           12620                           TCF      IMUOP                                 
006908,000999: 
006909,001000: 06,2766           12653        C33JMP             TCF      PIPFAIL                               #  CHANNEL 33 DISPATCH.
006910,001001: 06,2767           12674                           TCF      DNTMFAST                              
006911,001002: 06,2770           12701                           TCF      UPTMFAST                              
006912,001003: 
006913,001004:                                                                                                  #  SUBROUTINE TO SKIP IF LAMP TEST NOT IN PROGRESS.
006914,001005: 
006915,001006: 06,2771           41324        LAMPTEST           CS       IMODES33                              #  BIT 1 OF IMODES33 = 1 IF LAMP TEST IN
006916,001007: 06,2772           75001                           MASK     LMPTSTBT                              #  PROGRESS
006917,001008: 06,2773           15624                           TCF      INCRQCK                               
006918,001009: 06,2774     5067               33RDMSK            EQUALS   PRIO16                                
006919,001010: 06,2774     7664               OC40010            EQUALS   OT40010                               
006920,001011: 06,2774           00272        OCT272             OCT      00272                                 
006921,001012: 06,2775           00300        BITS7&8            OCT      300                                   
006922,001013: 06,2776           01720        OCT1720            OCT      1720                                  
006923,001014: 06,2777           00740        OCT740             OCT      00740                                 
006924,001015: 06,3000     5066               OCT15000           EQUALS   PRIO15                                
006925,001016: 06,3000           76777        -BIT10             OCT      -1000                                 
006926,001017: 
006927,001018: 06,3001     5750               120MS              =        OCT14                                 #  (DEC 12)
006928,001019: 06,3001     5336               GLOCKOK            EQUALS   RESUME                                
006929,001020: 
006930,001021:                                                                                                  #  OPTICS MONITORING AND ZERO ROUTINES
006931,001022: 06,3001           31327        OPTMON             CA       OPTMODES                              #  MONITOR OPTICS INBITS IN CHAN 30 AND 33
006932,001023: 06,3002           00006                           EXTEND                                         
006933,001024: 06,3003           06030                           RXOR     CHAN30                                #  LOOK FOR OCDU FAIL BIT CHANGE
006934,001025: 06,3004           74773                           MASK     OCDUFBIT                              
006935,001026: 06,3005           54070                           TS       RUPTREG1                              #  STORE CHANGE BIT
006936,001027: 06,3006           10000                           CCS      A                                     
006937,001028: 06,3007           03216                           TC       OCDUFTST                              #  PROCESS OCDUFAIL BIT CHANGE
006938,001029: 
006939,001030: 06,3010           11313        33OPTMON           CCS      OPTIND                                #  BYPASS IF TVC TAKEOVER
006940,001031: 06,3011           13015                           TCF      +4                                    
006941,001032: 06,3012           13015                           TCF      +3                                    
006942,001033: 06,3013           03253                           TC       OPDISAB                               #  DISABLE OPTICS ERR CNTRS
006943,001034: 06,3014           15336                           TCF      RESUME                                
006944,001035: 
006945,001036: 06,3015           31327                           CA       OPTMODES                              #  LOOK FOR OPTICS MODE SWITCH CHANGE
006946,001037: 06,3016           00006                           EXTEND                                         
006947,001038: 06,3017           06033                           RXOR     CHAN33                                
006948,001039: 06,3020           75012                           MASK     OCTHIRTY                              
006949,001040: 06,3021           26070                           ADS      RUPTREG1                              #  STORE INBIT CHANGES
006950,001041: 06,3022           23327                           LXCH     OPTMODES                              
006951,001042: 06,3023           00006                           EXTEND                                         
006952,001043: 06,3024           06001                           RXOR     LCHAN                                 
006953,001044: 06,3025           55327                           TS       OPTMODES                              #  UPDATE OPTMODES TO SHOW BIT CHANGES
006954,001045: 
006955,001046: 06,3026           30373                           CA       C31FLWRD                              
006956,001047: 06,3027           75012                           MASK     OCTHIRTY                              
006957,001048: 06,3030           00006                           EXTEND                                         
006958,001049: 06,3031           13037                           BZF      +6                                    
006959,001050: 06,3032           54001                           TS       L                                     #  USE FAILWORD INDICATORS
006960,001051: 06,3033           45012                           CS       OCTHIRTY                              
006961,001052: 06,3034           71327                           MASK     OPTMODES                              
006962,001053: 06,3035           60001                           AD       L                                     
006963,001054: 06,3036           55327                           TS       OPTMODES                              
006964,001055: 06,3037           41327                           CS       OPTMODES                              #  SAMPLE CURRENT SWITCH SETTING
006965,001056: 06,3040           75012                           MASK     OCTHIRTY                              
006966,001057: 06,3041           00006                           EXTEND                                         
006967,001058: 06,3042           13047                           BZF      SETSAMP                               #  MANUAL-SET ZERO IN SWSAMPLE
006968,001059: 
006969,001060: 06,3043           74775                           MASK     OPMD1BIT                              #  SEE IF CSC
006970,001061: 06,3044           10000                           CCS      A                                     
006971,001062: 06,3045           03047                           TC       +2                                    #  CSC-SET SWSAMPLE POS
006972,001063: 06,3046           37702                           CAF      NEGONE                                #  ZOPTICS-SET SWSAMPLE (-1)
006973,001064: 06,3047           55346        SETSAMP            TS       SWSAMPLE                              #  CURRENT OPTICS SWITCH SETTING
006974,001065: 
006975,001066: 06,3050           11320        PROCESSW           CCS      DESOPMOD                              #  BRANCH ON PREVIOUS SETTING
006976,001067: 06,3051           03143                           TC       CSCDES                                #  CSC
006977,001068: 06,3052           03115                           TC       MANUDES                               #  MANUAL
006978,001069: 06,3053           11346        ZOPTDES            CCS      SWSAMPLE                              #  IS SWITCH STILL AT ZOPTICS
006979,001070: 06,3054           03132                           TC       ZTOCSC                                #  NOW AT CSC
006980,001071: 06,3055           03071                           TC       ZTOMAN                                #  MANUAL
006981,001072: 06,3056           03101                           TC       ZOPFINI                               #  ZOPTICS-SEE IF ZOPT PROCESSING
006982,001073: 06,3057           03124                           TC       SETDESMD                              #  ZOPT NOT PROCESSING-NO ACTION
006983,001074: 
006984,001075: 06,3060           11322                           CCS      ZOPTCNT                               #  ZOPT PROCESSING-CHECK COUNTER
006985,001076: 06,3061           03123                           TC       SETCNT                                #  32 SAMPLE NOT FINISHED-SET COUNTER
006986,001077: 06,3062           35001        SETZOEND           CAF      BIT1                                  #  32 SAMPLE WAIT COMPLETED-SET UP ENDZOPT
006987,001078: 06,3063           00006                           EXTEND                                         
006988,001079: 06,3064           05012                           WOR      CHAN12                                #  SEND OCDU ZERO
006989,001080: 06,3065           34124                           CAF      200MS                                 #  HOLD FOR 200MS
006990,001081: 06,3066           05236                           TC       TWIDDLE                               
006991,001082: 06,3067           03166                           ADRES    ENDZOPT                               
006992,001083: 06,3070           03124                           TC       SETDESMD                              
006993,001084: 06,3071           03101        ZTOMAN             TC       ZOPFINI                               #  ZOP TO MANUAL-IS ZOPT DONE
006994,001085: 06,3072           03154                           TC       CSCTOMAN                              #  YES
006995,001086: 06,3073           05644        ZOPALARM           TC       ALARM                                 #  ALARM-SWITCHED ALTERED WHILE ZOPTICS
006996,001087: 06,3074           00116                           OCT      00116                                 
006997,001088: 06,3075           35006                           CAF      OCT13                                 #  PROCESSING-SET RETURN OPTION
006998,001089: 06,3076           55321                           TS       WTOPTION                              
006999,001090: 
007000,001091: 06,3077           03104                           TC       CANZOPT                               #  CANCEL ZOPT
007001,001092: 
007002,001093: 06,3100           03154                           TC       CSCTOMAN                              
007003,001094:                                                                                                  #  BIT 1 OF OPTMODES HAS BEEN ELIMINATED.
007004,001095:                                                                                                  #  IF T4RUPT TIMING IS REDUCED, IT WILL
007005,001096:                                                                                                  #  BE NECESSARY TO REINSTATE THE BIT AS
007006,001097:                                                                                                  #  BEFORE, BUT PREVENT OPTICS LOCKOUT.
007007,001098: 06,3101           34777        ZOPFINI            CAF      ZOPTCS                                
007008,001099: 06,3102           71327        ZOPFIN2            MASK     OPTMODES                              #  RETURNS TO L+1 PROCESSING AND
007009,001100: 06,3103           15624                           TCF      INCRQCK                               #  L+2 IF NOT
007010,001101: 06,3104           34777        CANZOPT            CAF      ZOPTCS                                #  CANCEL ZERO OPTICS
007011,001102: 06,3105           65000                           AD       OCDUINHT                              
007012,001103: 06,3106           40000                           COM                                            
007013,001104: 06,3107           71327                           MASK     OPTMODES                              #  ZERO ZOPT PROCESSING BIT-ENABLE OCDUFAIL
007014,001105: 06,3110           55327                           TS       OPTMODES                              
007015,001106: 06,3111           45001                           CS       BIT1                                  #  MAKE SURE ZERO OCDU IS OFF
007016,001107: 06,3112           00006                           EXTEND                                         
007017,001108: 06,3113           03012                           WAND     CHAN12                                
007018,001109: 06,3114           00002                           TC       Q                                     
007019,001110: 
007020,001111: 06,3115           11346        MANUDES            CCS      SWSAMPLE                              #  SEE IF SWITCH STILL IN MANUAL MODE
007021,001112: 06,3116           03137                           TC       MANTOCSC                              #  NOW AT CSC
007022,001113: 06,3117           03127                           TC       MANTOMAN                              #  STILL MANUAL
007023,001114: 06,3120           11321                           CCS      WTOPTION                              #  ZOPTICS-LOOK AT ZOPTICS RETURN OPTION
007024,001115: 06,3121           03150                           TC       CSCTOZOP   +2                         #  5 SEC RETURN GOOD- CONTINUE ZOPTICS
007025,001116: 06,3122           03146                           TC       CSCTOZOP                              
007026,001117: 06,3123           55322        SETCNT             TS       ZOPTCNT                               
007027,001118: 06,3124           31346        SETDESMD           CA       SWSAMPLE                              #  SET CURRENT SWITCH INDICATOR- RESUME
007028,001119: 06,3125           55320                           TS       DESOPMOD                              
007029,001120: 06,3126           05336                           TC       RESUME                                
007030,001121: 06,3127           11321        MANTOMAN           CCS      WTOPTION                              #  DECREMENT RETURN OPTION TIME
007031,001122: 06,3130           55321                           TS       WTOPTION                              
007032,001123: 06,3131           03124                           TC       SETDESMD                              
007033,001124: 
007034,001125: 06,3132           03101        ZTOCSC             TC       ZOPFINI                               #  SEE IF ZOPT PROCESSING
007035,001126: 06,3133           03142                           TC       MANTOCSC   +3                         #  NO- RETURN TO COARS OPT
007036,001127: 06,3134           05644                           TC       ALARM                                 #  ZOPT PROCESSING- ALARM
007037,001128: 06,3135           00116                           OCT      00116                                 
007038,001129: 06,3136           03104                           TC       CANZOPT                               #  CANCEL ZOPT
007039,001130: 06,3137           35003        MANTOCSC           CAF      ZERO                                  #  CANCEL ZOPT RETURN OPTION IF SET
007040,001131: 06,3140           55321                           TS       WTOPTION                              
007041,001132: 06,3141           55322                           TS       ZOPTCNT                               
007042,001133: 
007043,001134: 06,3142           03154                 +3        TC       CSCTOMAN                              
007044,001135: 06,3143           11346        CSCDES             CCS      SWSAMPLE                              #  SEE IF SWITCH STILL AT CSC
007045,001136: 06,3144           03124                           TC       SETDESMD                              #  STILL AT CSC
007046,001137: 06,3145           03154                           TC       CSCTOMAN                              #  MANUAL
007047,001138: 06,3146           34774        CSCTOZOP           CAF      OCT40                                 #  ZOPTICS-INITIALIZE FOR ZOPT
007048,001139: 06,3147           55322                           TS       ZOPTCNT                               
007049,001140: 06,3150           03210                 +2        TC       INITZOPT                              
007050,001141: 06,3151           04077                           TC       NOOPRATE                              
007051,001142: 06,3152           03254                           TC       ECDISAB                               
007052,001143: 06,3153           03124                           TC       SETDESMD                              
007053,001144: 06,3154           11313        CSCTOMAN           CCS      OPTIND                                #  IS THE OPTICS IN USE
007054,001145: 06,3155           03161                           TC       CANCOARS                              #  YES DISABLE OPTICS ERR CNTRS, SET TVC
007055,001146: 06,3156           03161                           TC       CANCOARS                              #  ENABLE BIT IF IN MANUAL AND REENABLE
007056,001147: 06,3157           03160                           TC       +1                                    #  OPTICS ERR CNTRS
007057,001148: 06,3160           03124                           TC       SETDESMD                              #  NO NORMAL EXIT
007058,001149: 06,3161           03254        CANCOARS           TC       ECDISAB                               #  DISABLE OP ERR CNTRS
007059,001150: 06,3162           36211                           CA       SIX                                   #  ENABLE ERR CNTRS AFTER 60 MS
007060,001151: 06,3163           05236                           TC       TWIDDLE                               
007061,001152: 06,3164           03260                           ADRES    ECENAB                                
007062,001153: 06,3165           03124                           TC       SETDESMD                              
007063,001154: 06,3166           35003        ENDZOPT            CA       ZERO                                  
007064,001155: 06,3167           54036                           TS       CDUS                                  #  ZERO IN CDUS, -20 IN CDUT
007065,001156: 06,3170           55317                           TS       ZONE                                  #  INITIALIZE SHAFT MONITOR ZONE
007066,001157: 06,3171           43666                           CS       20DEGS                                
007067,001158: 06,3172           54035                           TS       CDUT                                  
007068,001159: 06,3173           45001                           CS       BIT1                                  #  TURN OFF ZERO OCDU
007069,001160: 06,3174           00006                           EXTEND                                         
007070,001161: 06,3175           03012                           WAND     CHAN12                                
007071,001162: 06,3176           34124                           CAF      200MS                                 #  DELAY 200MS FOR CDUS TO RESYNCHRONIZE
007072,001163: 06,3177           05273                           TC       VARDELAY                              
007073,001164: 
007074,001165: 06,3200           41327                           CS       OPTMODES                              #  SHOW ZOPTICS SINCE LAST FRESH START
007075,001166: 06,3201           74770                           MASK     ZROPTFIN                              #  OR RESTART
007076,001167: 06,3202           27327                           ADS      OPTMODES                              
007077,001168: 
007078,001169: 06,3203           46211                           CS       SIX                                   
007079,001170: 06,3204           71327                           MASK     OPTMODES                              
007080,001171: 06,3205           55327                           TS       OPTMODES                              
007081,001172: 
007082,001173: 06,3206           03216                           TC       OCDUFTST                              #  CHECK OCDU FAIL BIT AFTER ENABLE
007083,001174: 
007084,001175: 06,3207           05327                           TC       TASKOVER                              
007085,001176: 
007086,001177: 06,3210           35003        INITZOPT           CAF      ZERO                                  #  INITIALIZE ZOPTICS-INHIBIT OCDUFAIL
007087,001178: 06,3211           55321                           TS       WTOPTION                              #  AND SHOW OPTICS PROCESSING
007088,001179: 06,3212           41327                           CS       OPTMODES                              #  SET ZERO OPTICS PROCESSING
007089,001180: 06,3213           76211                           MASK     SIX                                   #      OPTICS CDU FAIL INHIBITED
007090,001181: 06,3214           27327                           ADS      OPTMODES                              
007091,001182: 06,3215           00002                           TC       Q                                     
007092,001183: 
007093,001184: 06,3216           34773        OCDUFTST           CAF      BIT7                                  #  SEE IF OCDUFAIL ON OR OFF
007094,001185: 06,3217           00006                           EXTEND                                         
007095,001186: 06,3220           02030                           RAND     CHAN30                                
007096,001187: 06,3221           10000                           CCS      A                                     
007097,001188: 06,3222           13244                           TCF      OPFAILOF                              #  OCDUFAIL LIGHT OFF
007098,001189: 
007099,001190: 06,3223           35000                           CAF      OCDUINHT                              #  OCDUFAIL LIGHT ON UNLESS INHIBITED
007100,001191: 06,3224           71327                           MASK     OPTMODES                              
007101,001192: 06,3225           10000                           CCS      A                                     
007102,001193: 06,3226           00002                           TC       Q                                     #  OCDUFAIL INHIBITED
007103,001194: 
007104,001195: 06,3227           34772        OPFAILON           CAF      BIT8                                  #  ON BIT
007105,001196: 06,3230           61231                           AD       DSPTAB     +11D                       
007106,001197: 06,3231           74772                           MASK     BIT8                                  
007107,001198: 06,3232           00006        SETOFF             EXTEND                                         
007108,001199: 06,3233           16711                           BZF      TCQ                                   #  NO CHANGE
007109,001200: 
007110,001201: 06,3234           54001                           TS       L                                     
007111,001202: 06,3235           31231                           CA       DSPTAB     +11D                       
007112,001203: 06,3236           00006                           EXTEND                                         
007113,001204: 06,3237           06001                           RXOR     LCHAN                                 
007114,001205: 06,3240           74761                           MASK     POSMAX                                
007115,001206: 06,3241           64763                           AD       BIT15                                 #  SHOW ACTION WANTED
007116,001207: 06,3242           55231                           TS       DSPTAB     +11D                       
007117,001208: 06,3243           00002                           TC       Q                                     
007118,001209: 
007119,001210: 06,3244           35001        OPFAILOF           CAF      LMPTSTBT                              #  DONT TURN OFF IF LAMP TEST
007120,001211: 06,3245           71324                           MASK     IMODES33                              
007121,001212: 06,3246           10000                           CCS      A                                     
007122,001213: 06,3247           00002                           TC       Q                                     #  LAMP TEST IN PROGRESS
007123,001214: 
007124,001215: 06,3250           34772                           CAF      BIT8                                  #  TURN OFF OCDUFAIL LIGHT
007125,001216: 06,3251           71231                           MASK     DSPTAB     +11D                       
007126,001217: 06,3252           13232                           TCF      SETOFF                                
007127,001218: 
007128,001219: 06,3253           24002        OPDISAB            INCR     Q                                     
007129,001220: 06,3254           45000        ECDISAB            CS       BIT2                                  
007130,001221: 06,3255           00006                           EXTEND                                         
007131,001222: 06,3256           03012                           WAND     CHAN12                                
007132,001223: 06,3257           00002                           TC       Q                                     
007133,001224: 06,3260           31346        ECENAB             CA       SWSAMPLE                              
007134,001225: 06,3261           00006                           EXTEND                                         
007135,001226: 06,3262           13264                           BZF      +2                                    #  MANUAL SET TVC ENABLE
007136,001227: 06,3263           13267                           TCF      ECENAB1                               
007137,001228: 06,3264           34772                           CAF      BIT8                                  
007138,001229: 06,3265           00006                           EXTEND                                         
007139,001230: 06,3266           05012                           WOR      CHAN12                                
007140,001231: 06,3267           35000        ECENAB1            CAF      BIT2                                  
007141,001232: 06,3270           00006                           EXTEND                                         
007142,001233: 06,3271           05012                           WOR      CHAN12                                
007143,001234: 06,3272           05327                           TC       TASKOVER                              
007144,001235: 06,3273     5006               OCT13              =        ELEVEN                                
007145,001236: 06,3273     5012               OCTHIRTY           EQUALS   BITS4&5                               
007146,001237: 06,3273     4774               OCT40              EQUALS   BIT6                                  
007147,001238: 06,3273     4124               200MS              EQUALS   OCT24                                 
007148,001239: 
007149,001240:                                                                                                  #  OPTICS CDU DRIVING PROGRAM
007150,001241: 
007151,001242: 10,2000                                           SETLOC   OPTDRV                                
007152,001243: 10,2000                                           BANK                                           
007153,001244: 10,2000                                           COUNT*   $$/SXT                                
007154,001245: 
007155,001246:                                                                                                  #  SHAFT STOP MONITOR-ZONE UPDATE
007156,001247: 
007157,001248: 10,2000           30036        OPTDRIVE           CA       CDUS                                  #  GRAB OPTIC SHAFT CDU
007158,001249: 10,2001           54001                           TS       L                                     
007159,001250: 10,2002           10000                           CCS      A                                     #  GET ABS(CDUS)
007160,001251: 10,2003           67673                           AD       13,14,15                              
007161,001252: 10,2004           12006                           TCF      +2                                    #  ABS(CDUS) - 45 DEG
007162,001253: 10,2005           12003                           TCF      -2                                    
007163,001254: 10,2006           00006                           EXTEND                                         
007164,001255: 10,2007           62016                           BZMF     OZONE                                 #  LESS THAN 45 DEG-SET ZONE 0
007165,001256: 10,2010           31317                           CA       ZONE                                  #  IF ZONE ZERO, CHANGE TO + OR - OTHERWISE
007166,001257: 10,2011           00006                           EXTEND                                         #  DONT MESS WITH ZONE
007167,001258: 10,2012           12014                           BZF      +2                                    
007168,001259: 10,2013           12020                           TCF      CONTDRVE                              #  JUST CONTINUE
007169,001260: 10,2014           56001                           XCH      L                                     #  GREATER THAN 45 DEG-SET ZONE TO SIGN CDU
007170,001261: 10,2015           12017                           TCF      OZONE      +1                         
007171,001262: 10,2016           35003        OZONE              CAF      ZERO                                  #  ABS(CDUS) LESS THEN 90 DEG-ZONE ZERO
007172,001263: 10,2017           55317                           TS       ZONE                                  
007173,001264: 10,2020                                           COUNT*   $$/T4RPT                              
007174,001265: 10,2020           11313        CONTDRVE           CCS      OPTIND                                
007175,001266: 10,2021           02025                           TC       +4                                    #  WORK COARS OPTICS
007176,001267: 10,2022           02025                           TC       +3                                    #  WORK COARS OPTICS
007177,001268: 10,2023           04077                           TC       NOOPRATE                              #  NO OPT  DISABLE   TVC
007178,001269: 10,2024           05336                           TC       RESUME                                #  NO OPT
007179,001270: 
007180,001271: 10,2025           31346                           CA       SWSAMPLE                              #  SEE IF SWITCH AT CMC
007181,001272: 10,2026           00006                           EXTEND                                         
007182,001273: 10,2027           12214                           BZF      TVCBCK                                
007183,001274: 10,2030           00006                           EXTEND                                         
007184,001275: 10,2031           65336                           BZMF     RESUME                                
007185,001276: 10,2032           34770        RATEDRV1           CAF      ZROPTFIN                              #  SEE IF OCDUS ZEROED SINCE LAST FSTART
007186,001277: 10,2033           71327                           MASK     OPTMODES                              
007187,001278: 10,2034           10000                           CCS      A                                     
007188,001279: 10,2035           02040                           TC       +3                                    
007189,001280: 10,2036           05644                           TC       ALARM                                 #  OPTICS NOT ZEROED
007190,001281: 10,2037           00120                           OCT      00120                                 
007191,001282: 
007192,001283: 10,2040           35000                           CA       BIT2                                  #  SEE IF ERR CNTS ENABLED
007193,001284: 10,2041           00006                           EXTEND                                         
007194,001285: 10,2042           02012                           RAND     CHAN12                                
007195,001286: 10,2043           00006                           EXTEND                                         
007196,001287: 10,2044           12202                           BZF      SETBIT                                #  CNTS NOT ENABLED-DO IT AND RESUME
007197,001288: 
007198,001289: 10,2045           35001                           CAF      ONE                                   #  INITIALIZE OPTIND
007199,001290: 10,2046           55313        OPT2               TS       OPTIND                                
007200,001291: 10,2047           51313        GETOPCMD           INDEX    OPTIND                                
007201,001292: 10,2050           31302                           CA       DESOPTT                               #  PICK UP DESIRED OPT ANGLE
007202,001293: 10,2051           00006                           EXTEND                                         
007203,001294: 10,2052           51313                           INDEX    OPTIND                                
007204,001295: 10,2053           20035                           MSU      CDUT                                  #  GET DIFFERENCE
007205,001296: 10,2054           00006                           EXTEND                                         
007206,001297: 10,2055           74765                           MP       BIT13                                 
007207,001298: 10,2056           56001                           XCH      L                                     
007208,001299: 10,2057           60000                           DOUBLE                                         
007209,001300: 10,2060           54061                           TS       ITEMP1                                
007210,001301: 10,2061           12063                           TCF      +2                                    #  NO OVFL
007211,001302: 
007212,001303: 10,2062           26001                           ADS      L                                     #  WITH OVFL
007213,001304: 10,2063           51313        STORCMD            INDEX    OPTIND                                
007214,001305: 10,2064           23315                           LXCH     COMMANDO                              #  STORE COMMAND
007215,001306: 10,2065           11313                           CCS      OPTIND                                
007216,001307: 10,2066           12136                           TCF      TRUNCMD                               #  GET TRUN COMMAND
007217,001308: 10,2067           54061                           TS       ITEMP1                                #  INITIALIZE SEND INDICATOR TO ZERO
007218,001309: 10,2070                                           COUNT*   $$/SXT                                
007219,001310: 
007220,001311:                                                                                                  #  SHAFT STOP AVOIDANCE
007221,001312: 
007222,001313: 10,2070           10036                           CCS      CDUS                                  #  IF CDUS GREATER THAN + OR - 90 DEG CHECK
007223,001314: 10,2071           64762                           AD       NEG1/2                                #  FOR POSSIBLE STOP PROBLEM
007224,001315: 10,2072           12074                           TCF      +2                                    
007225,001316: 10,2073           12071                           TCF      -2                                    
007226,001317: 10,2074           00006                           EXTEND                                         
007227,001318: 10,2075           62122                           BZMF     CMDSETUP                              #  CDUS LESS THAN 90 DEG, NO PROBLEMS
007228,001319: 
007229,001320: 10,2076           31317                           CA       ZONE                                  
007230,001321: 10,2077           00006                           EXTEND                                         
007231,001322: 10,2100           12122                           BZF      CMDSETUP                              #  ZONE=3, NORMAL COMMAND
007232,001323: 10,2101           74763                           MASK     BIT15                                 #  GRAB SIGN OF ZONE
007233,001324: 10,2102           54001                           TS       L                                     
007234,001325: 10,2103           31316                           CA       COMMANDO   +1                         
007235,001326: 10,2104           74763                           MASK     BIT15                                 #  GRAB SIGN OF SHAFT COMMAND
007236,001327: 10,2105           00006                           EXTEND                                         
007237,001328: 10,2106           06001                           RXOR     LCHAN                                 
007238,001329: 10,2107           10000                           CCS      A                                     
007239,001330: 10,2110           12122                           TCF      CMDSETUP                              #  SIGN ZONE NOT EQUAL TO SIGN COMMAND
007240,001331: 10,2111           11303                           CCS      DESOPTS                               #  SEE IF DESOPTS BETWEEN -90 AND +90
007241,001332: 10,2112           64762                           AD       NEG1/2                                
007242,001333: 10,2113           12115                           TCF      +2                                    #  ABS(DESOPTS) - 90 DEG
007243,001334: 10,2114           12112                           TCF      -2                                    
007244,001335: 10,2115           00006                           EXTEND                                         
007245,001336: 10,2116           62120                           BZMF     +2                                    #  DESOPTS IN FIRST OR FOURTH QUAD
007246,001337: 10,2117           12122                           TCF      CMDSETUP                              
007247,001338: 10,2120           41316                           CS       COMMANDO   +1                         #  REVERSE REGULAR COMMAND
007248,001339: 10,2121           55316                           TS       COMMANDO   +1                         
007249,001340: 10,2122                                           COUNT*   $$/T4RPT                              
007250,001341: 
007251,001342: 10,2122           31346        CMDSETUP           CA       SWSAMPLE                              
007252,001343: 10,2123           00006                           EXTEND                                         
007253,001344: 10,2124           12210                           BZF      RATEDRV2                              
007254,001345: 10,2125           04077                           TC       NOOPRATE                              #  DISABLE   TVC DAP BIT
007255,001346: 10,2126           35001                           CAF      ONE                                   #  SET OPTIND
007256,001347: 10,2127           55313        CMDSET             TS       OPTIND                                
007257,001348: 10,2130           50000                           INDEX    A                                     
007258,001349: 10,2131           11315                           CCS      COMMANDO                              #  GET SIGN OF COMMAND
007259,001350: 10,2132           02151                           TC       POSOPCMD                              
007260,001351: 10,2133           02156                           TC       NEXTOPT    +1                         #  ZERO COMMAND-SKIP SEND INDICATOR
007261,001352: 10,2134           02166                           TC       NEGOPCMD                              
007262,001353: 10,2135           02156                           TC       NEXTOPT    +1                         #  ZERO COMMAND
007263,001354: 
007264,001355: 10,2136           55313        TRUNCMD            TS       OPTIND                                
007265,001356: 10,2137           40035                           CS       CDUT                                  #  IF COMMAND GREATER THAN 45 DEG-COMMAND
007266,001357: 10,2140           61302                           AD       DESOPTT                               #  45 DEG
007267,001358: 10,2141           54002                           TS       Q                                     
007268,001359: 10,2142           02047                           TC       GETOPCMD                              #  LESS THAN 45 DEG-NORMAL OPERATION
007269,001360: 
007270,001361: 10,2143           10000                           CCS      A                                     #  GREATER THAN 45 DEG-USE OPSMAX WITH
007271,001362: 10,2144           34761                           CA       POSMAX                                #  CORRECT SIGN
007272,001363: 10,2145           02147                           TC       +2                                    
007273,001364: 10,2146           44761                           CS       POSMAX                                
007274,001365: 10,2147           54001                           TS       L                                     
007275,001366: 10,2150           02063                           TC       STORCMD                               
007276,001367: 10,2151           62207        POSOPCMD           AD       MAXPLS1                               
007277,001368: 10,2152           00006                           EXTEND                                         
007278,001369: 10,2153           62173                           BZMF     DELOPCMD                              #  COMMAND LESS THAN MAX PULSE
007279,001370: 10,2154           42206                           CS       MAXPLS                                #  GREATER THAN MAX PULSE-USE MAX PULSE
007280,001371: 
007281,001372: 10,2155           24061        NEXTOPT            INCR     ITEMP1                                #  SET SEND INDICATOR
007282,001373: 10,2156           65002                 +1        AD       NEG0                                  #  MAKE SURE ZERO COMMAND IS -ZERO
007283,001374: 10,2157           51313                           INDEX    OPTIND                                
007284,001375: 10,2160           54053                           TS       CDUTCMD                               #  STORE PULSE IN SEND REG
007285,001376: 
007286,001377: 10,2161           11313                           CCS      OPTIND                                
007287,001378: 10,2162           02127                           TC       CMDSET                                #  GET NEXT OPT
007288,001379: 10,2163           10061                           CCS      ITEMP1                                #  ARE ANY PULSES TO GO
007289,001380: 10,2164           12176                           TCF      SENDOCMD                              #  YES-SEND EM
007290,001381: 10,2165           05336                           TC       RESUME                                #  NO
007291,001382: 
007292,001383: 10,2166           62207        NEGOPCMD           AD       MAXPLS1                               
007293,001384: 10,2167           00006                           EXTEND                                         
007294,001385: 10,2170           62173                           BZMF     DELOPCMD                              #  LESS THAN MAX PULSE
007295,001386: 10,2171           32206                           CA       MAXPLS                                #  MAX PULSES
007296,001387: 10,2172           12155                           TCF      NEXTOPT                               
007297,001388: 10,2173           51313        DELOPCMD           INDEX    OPTIND                                
007298,001389: 10,2174           57315                           XCH      COMMANDO                              #  SET UP SMALL COMMAND
007299,001390: 10,2175           12155                           TCF      NEXTOPT                               
007300,001391: 
007301,001392: 10,2176           35062        SENDOCMD           CAF      11,12                                 #  SEND OCDU DRIVE COMMANDS
007302,001393: 10,2177           00006                           EXTEND                                         
007303,001394: 10,2200           05014                           WOR      CHAN14                                
007304,001395: 10,2201           05336                           TC       RESUME                                
007305,001396: 
007306,001397: 10,2202           35000        SETBIT             CAF      BIT2                                  #  ENABLE OCDU ERR CNTS
007307,001398: 10,2203           00006                           EXTEND                                         
007308,001399: 10,2204           05012                           WOR      CHAN12                                
007309,001400: 10,2205           05336                           TC       RESUME                                #  START COARS NEXT TIME AROUND
007310,001401: 
007311,001402: 10,2206           77654        MAXPLS             DEC      -83        B-14                       #  WAS -165
007312,001403: 10,2207           77655        MAXPLS1            DEC      -82        B-14                       #  WAS -164
007313,001404: 10,2210     5062               11,12              EQUALS   PRIO6                                 
007314,001405: 10,2210           45003        RATEDRV2           CS       ZERO                                  
007315,001406: 10,2211           54001                           TS       L                                     
007316,001407: 10,2212           52054                           DXCH     CDUTCMD                               
007317,001408: 10,2213           02176                           TC       SENDOCMD                              
007318,001409: 10,2214           34772        TVCBCK             CAF      BIT8                                  #  IS TVC BIT ENABLED
007319,001410: 10,2215           00006                           EXTEND                                         
007320,001411: 10,2216           02012                           RAND     CHAN12                                
007321,001412: 10,2217           00006                           EXTEND                                         
007322,001413: 10,2220           12222                           BZF      +2                                    
007323,001414: 10,2221           02032                           TC       RATEDRV1                              
007324,001415: 10,2222           34772                           CAF      BIT8                                  #  NO TURN IT ON
007325,001416: 10,2223           00006                           EXTEND                                         
007326,001417: 10,2224           05012                           WOR      CHAN12                                
007327,001418: 10,2225           05336                           TC       RESUME                                
007328,001419:    4000                                           SETLOC   STOPRAT                               
007329,001420:    4000                                           BANK                                           
007330,001421:    4077                                           COUNT*   $$/T4RPT                              
007331,001422:    4077           44772        NOOPRATE           CS       BIT8                                  
007332,001423:    4100           00006                           EXTEND                                         
007333,001424:    4101           03012                           WAND     CHAN12                                
007334,001425:    4102           00002                           TC       Q                                     

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