Source Code

This is an attempt to recreate Luminary 99 Rev 2, otherwise known as LUM99R2, from Luminary 99 Rev 1 and ephemeris data from Luminary 116. The differences are confined to the last 10-12 lines of the CONTROLLED CONSTANTS. Luminary 99 Rev 1 source-code was transcribed from a printout in the MIT Museum, while Luminary 116 source code was transcribed from a printout belonging to Don Eyles. AGC developer James Kernan, the "rope mother" for the Apollo 11 Lunar Module's AGC, explains as follows: "At the last minute, Dan Lickly, our chief engineer, appeared with ephemerides updates and it took two tries to get it right. The result was that we created Lum99 Revision 1 and Lum99 Revision 2." It is suspected that the former is what's in the MIT Museum, and the latter is what we are trying to recreate here. As for which revision actually flew in Apollo 11, all of the other available surviving evidence points to Rev 1 rather than to Rev 2, so we're just not sure!

006182,000002:                                                                                                  ## Copyright:   Public domain.
006183,000003:                                                                                                  ## Filename:    T4RUPT_PROGRAM.agc
006184,000004:                                                                                                  ## Purpose:     Part of the source code for Luminary 1A build 099.
006185,000005:                                                                                                  ##              It is part of the source code for the Lunar Module's (LM)
006186,000006:                                                                                                  ##              Apollo Guidance Computer (AGC), for Apollo 11.
006187,000007:                                                                                                  ## Assembler:   yaYUL
006188,000008:                                                                                                  ## Contact:     Hartmuth Gutsche <hgutsche@xplornet.com>.
006189,000009:                                                                                                  ## Website:     www.ibiblio.org/apollo.
006190,000010:                                                                                                  ## Pages:       155-189
006191,000011:                                                                                                  ## Mod history: 2009-05-19 HG   Transcribed from page images.
006192,000012:                                                                                                  ##              2010-12-31 JL   Fixed page number comment.
006193,000013:                                                                                                  ##              2011-01-06 JL   Fixed indentation of TNONTEST. Fixed pseudo-label indentation.
006194,000014:                                                                                                  ##              2016-12-13 RSB  Proofed text comments with octopus/ProoferComments
006195,000015:                                                                                                  ##                              and corrected the errors found.
006196,000016:                                                                                                  ##              2017-01-26 RSB  Back-ported comment-text fixes found while
006197,000017:                                                                                                  ##                              proofing corresponding Luminary 69 file.        
006198,000018:                                                                                                  ##              2017-01-28 RSB  WTIH -> WITH.
006199,000019:                                                                                                  ##              2017-02-08 RSB  Comment-text fixes identified while proofing Artemis 72.
006200,000020:                                                                                                  ##              2017-03-03 RSB  Snapshot of Luminary 99 Rev 1. 
006201,000021:                                                                                                  ##              2017-03-03 RSB  Fixed comment-text errors identified while proofing
006202,000022:                                                                                                  ##                              Luminary 116.
006203,000023: 

Page 155

006205,000025: 12,2000                                           BANK     12                                    
006206,000026: 06,2000                                           SETLOC   T4RUP                                 
006207,000027: 06,2000                                           BANK                                           
006208,000028: 
006209,000029: 06,2000  E6,1414                                  EBANK=   M11                                   
006210,000030: 06,2000                                           COUNT*   $$/T4RPT                              
006211,000031: 06,2000           54016        T4RUPT             TS       BANKRUPT                              
006212,000032: 
006213,000033: 06,2001           00006                           EXTEND                                         
006214,000034: 06,2002           22012                           QXCH     QRUPT                                 
006215,000035: 
006216,000036: 06,2003           11313                           CCS      DSRUPTSW                              #  GOES 7(-1)0 AROUND AND AROUND
006217,000037: 06,2004           12010                           TCF      NORMT4     +1                         
006218,000038: 06,2005           12007                           TCF      NORMT4                                
006219,000039: 
006220,000040: 06,2006           12134                           TCF      QUIKDSP                               
006221,000041: 
006222,000042: 06,2007           34757        NORMT4             CAF      SEVEN                                 
006223,000043: 06,2010           54070                           TS       RUPTREG1                              
006224,000044: 06,2011           55313                           TS       DSRUPTSW                              
006225,000045: 
006226,000046:    4066                                           BLOCK    02                                    
006227,000047:    4000                                           SETLOC   FFTAG10                               
006228,000048:    4000                                           BANK                                           
006229,000049: 
006230,000050:    4066                                           COUNT*   $$/T4RPT                              
006231,000051:    4066     7727               100MRUPT           =        OCT37766                              #  (DEC 16374)
006232,000052:                                                                                                  #  RELTAB IS A PACKED TABLE. RELAYWORD CODE IN UPPER 4 BITS, RELAY CODE
006233,000053:                                                                                                  #  IN LOWER 5 BITS.
006234,000054: 
006235,000055:    4066           04025        RELTAB             OCT      04025                                 
006236,000056:    4067           10003                           OCT      10003                                 
006237,000057:    4070           14031                           OCT      14031                                 
006238,000058:    4071           20033                           OCT      20033                                 
006239,000059:    4072           24017                           OCT      24017                                 
006240,000060:    4073           30036                           OCT      30036                                 
006241,000061:    4074           34034                           OCT      34034                                 
006242,000062:    4075           40023                           OCT      40023                                 
006243,000063:    4076           44035                           OCT      44035                                 
006244,000064:    4077           50037                           OCT      50037                                 
006245,000065:    4100           54000                           OCT      54000                                 
006246,000066:    4101           60000        RELTAB11           OCT      60000                                 
006247,000067: 

Page 156

006249,000069:                                                                                                  #  SWITCHED-BANK PORTION.
006250,000070: 
006251,000071: 12,2000                                           BANK     12                                    
006252,000072: 06,2000                                           SETLOC   T4RUP                                 
006253,000073: 06,2000                                           BANK                                           
006254,000074: 
006255,000075: 06,2012                                           COUNT*   $$/T4RPT                              
006256,000076: 06,2012           11036        CDRVE              CCS      DSPTAB     +11D                       
006257,000077: 06,2013           02063                           TC       DSPOUT                                
006258,000078: 06,2014           02063                           TC       DSPOUT                                
006259,000079: 
006260,000080: 06,2015           57036                           XCH      DSPTAB     +11D                       
006261,000081: 06,2016           74356                           MASK     LOW11                                 
006262,000082: 06,2017           55036                           TS       DSPTAB     +11D                       
006263,000083: 06,2020           64101                           AD       RELTAB11                              
006264,000084: 06,2021           00006                           EXTEND                                         
006265,000085: 06,2022           01010                           WRITE    OUT0                                  
006266,000086: 06,2023           02071                           TC       HANG20                                
006267,000087: 

Page 157

006269,000089:                                                                                                  #  DSPOUT PROGRAM. PUTS OUT DISPLAYS.
006270,000090: 
006271,000091: 06,2024           55016        DSPOUTSB           TS       NOUT                                  
006272,000092: 06,2025           44755                           CS       ZERO                                  
006273,000093: 06,2026           54073                           TS       DSRUPTEM                              #  SET TO -0 FOR 1ST PASS THRU DSPTAB
006274,000094: 06,2027           56776                           XCH      DSPCNT                                
006275,000095: 06,2030           64754                           AD       NEG0                                  #  TO PREVENT +0
006276,000096: 06,2031           54776                           TS       DSPCNT                                
006277,000097: 06,2032           50776        DSPSCAN            INDEX    DSPCNT                                
006278,000098: 06,2033           11023                           CCS      DSPTAB                                
006279,000099: 06,2034           10776                           CCS      DSPCNT                                #  IF DSPTAB ENTRY +, SKIP
006280,000100: 06,2035           12030                           TCF      DSPSCAN    -2                         #  IF DSPCNT +, TRY AGAIN
006281,000101: 06,2036           12047                           TCF      DSPLAY                                #  IF DSPTAB ENTRY -, DISPLAY
006282,000102: 06,2037           00012        TABLNTH            OCT      12                                    #  DEC 10  LENGTH OF DSPTAB
006283,000103: 06,2040           10073                           CCS      DSRUPTEM                              #  IF DSRUPTEM=+0, 2ND PASS THRU DSPTAB
006284,000104: 06,2041           37764        120MRUPT           DEC      16372      B-14                       #  (DSPCNT = 0).  +0 INTO NOUT.
006285,000105: 06,2042           55016                           TS       NOUT                                  
006286,000106: 06,2043           00002                           TC       Q                                     
006287,000107: 06,2044           54073                           TS       DSRUPTEM                              #  IF DSRUPTEM=-0, 1ST PASS THRU DSPTAB
006288,000108: 06,2045           32037                           CAF      TABLNTH                               #  (DSPCNT=0).+0 INTO DSRUPTEM. PASS AGAIN
006289,000109: 06,2046           12031                           TCF      DSPSCAN    -1                         
006290,000110: 
006291,000111: 06,2047           64753        DSPLAY             AD       ONE                                   
006292,000112: 06,2050           50776                           INDEX    DSPCNT                                
006293,000113: 06,2051           55023                           TS       DSPTAB                                #  REPLACE POSITIVELY
006294,000114: 06,2052           74356                           MASK     LOW11                                 #  REMOVE BITS 12 TO 15
006295,000115: 06,2053           54073                           TS       DSRUPTEM                              
006296,000116: 06,2054           34350                           CAF      HI5                                   
006297,000117: 06,2055           50776                           INDEX    DSPCNT                                
006298,000118: 06,2056           74066                           MASK     RELTAB                                #  PICK UP BITS 12 TO 15 OF RELTAB ENTRY
006299,000119: 06,2057           60073                           AD       DSRUPTEM                              
006300,000120: 06,2060           00006                           EXTEND                                         
006301,000121: 06,2061           01010                           WRITE    OUT0                                  
006302,000122: 
006303,000123: 06,2062           16737                           TCF      Q+1                                   
006304,000124: 
006305,000125: 06,2063           10101        DSPOUT             CCS      FLAGWRD5                              #  IS DSKY FLAG ON
006306,000126: 06,2064           34755                           CAF      ZERO                                  #  NO
006307,000127: 06,2065           12130                           TCF      NODSPOUT                              #  NO
006308,000128: 06,2066           11016                           CCS      NOUT                                  #  YES
006309,000129: 06,2067           02024                           TC       DSPOUTSB                              
006310,000130: 06,2070           12130                           TCF      NODSPOUT                              #  NO DISPLAY REQUESTS
006311,000131: 
006312,000132: 06,2071           42171        HANG20             CS       14,11,9                               
006313,000133: 06,2072           27313                           ADS      DSRUPTSW                              
006314,000134: 
006315,000135: 06,2073           37731                           CAF      20MRUPT                               
006316,000136: 
006317,000137: 06,2074           54027        SETTIME4           TS       TIME4                                 
006318,000138: 

Page 158

006320,000140:                                                                                                  #  THE STATUS OF THE PROCEED PUSHBUTTON IS MONITORED EVERY 120 MILLISECONDS VIA THE CHANNEL 32 BIT 14 INBIT.
006321,000141:                                                                                                  #   THE STATE OF THIS INBIT IS COMPARED WITH ITS STATE DURING THE PREVIOUS T4RUPT AND IS PROCESSED AS FOLLOWS.
006322,000142:                                                                                                  #        IF PREV ON AND NOW ON   - BYPASS
006323,000143:                                                                                                  #        IF PREV ON AND NOW OFF  - UPDATE IMODES33
006324,000144:                                                                                                  #        IF PREV OFF AND NOW ON  - UPDATE IMODES33 AND PROCESS VIA PINBALL
006325,000145:                                                                                                  #        IF PREV OFF AND NOW OFF - BYPASS
006326,000146:                                                                                                  #  THE LOGIC EMPLOYED REQUIRES ONLY 9 MCT (APPROX. 108 MICROSECONDS) OF COMPUTER TIME WHEN NO CHANGES OCCUR.
006327,000147: 
006328,000148: 06,2075           31303        PROCEEDE           CA       IMODES33                              #  MONITIOR FOR PROCEED BUTTON
006329,000149: 06,2076           00006                           EXTEND                                         
006330,000150: 06,2077           06032                           RXOR     CHAN32                                
006331,000151: 06,2100           74736                           MASK     BIT14                                 
006332,000152: 06,2101           00006                           EXTEND                                         
006333,000153: 06,2102           12116                           BZF      T4JUMP                                #  NO CHANGE
006334,000154: 
006335,000155: 06,2103           23303                           LXCH     IMODES33                              
006336,000156: 06,2104           00006                           EXTEND                                         
006337,000157: 06,2105           06001                           RXOR     LCHAN                                 
006338,000158: 06,2106           55303                           TS       IMODES33                              #  UPDATE IMODES33
006339,000159: 06,2107           74736                           MASK     BIT14                                 
006340,000160: 06,2110           10000                           CCS      A                                     
006341,000161: 06,2111           12116                           TCF      T4JUMP                                #  WAS ON - NOW OFF
006342,000162: 
006343,000163: 06,2112           34355                           CAF      CHRPRIO                               #  WAS OFF - NOW ON
006344,000164: 06,2113           05072                           TC       NOVAC                                 
006345,000165: 06,2114     0777                                  EBANK=   DSPCOUNT                              
006346,000166: 06,2114           03452 60101                     2CADR    PROCKEY                               
006347,000167: 

Page 159

006349,000169:                                                                                                  #  JUMP TO APPROPRIATE ONCE-PER SECOND (.96 SEC ACTUALLY) ACTIVITY
006350,000170: 
006351,000171: 06,2116           50070        T4JUMP             INDEX    RUPTREG1                              
006352,000172: 06,2117           12120                           TCF      +1                                    
006353,000173: 
006354,000174: 06,2120           03156                           TC       RCSMONIT                              
006355,000175: 06,2121           13006                           TCF      RRAUTCHK                              
006356,000176: 06,2122           12172                           TCF      IMUMON                                
006357,000177: 06,2123           13132                           TCF      DAPT4S                                
006358,000178: 06,2124           03156                           TC       RCSMONIT                              
006359,000179: 06,2125           13006                           TCF      RRAUTCHK                              
006360,000180: 06,2126           12172                           TCF      IMUMON                                
006361,000181: 06,2127           13132                           TCF      DAPT4S                                
006362,000182: 
006363,000183: 06,2130     7731               20MRUPT            =        OCT37776                              #  (DEC 16382)
006364,000184: 

Page 160

006366,000186:                                                                                                  #  ADDITIONAL ROUTINES FOR 20MS. KEYBOARD ACTIVITY
006367,000187: 
006368,000188: 06,2130           00006        NODSPOUT           EXTEND                                         
006369,000189: 06,2131           01010                           WRITE    OUT0                                  
006370,000190: 
006371,000191: 06,2132           32041                           CAF      120MRUPT                              # SET FOR NEXT CDRIVE
006372,000192: 06,2133           12074                           TCF      SETTIME4                              
006373,000193: 
006374,000194: 06,2134           34736        QUIKDSP            CAF      BIT14                                 
006375,000195: 06,2135           71313                           MASK     DSRUPTSW                              
006376,000196: 06,2136           00006                           EXTEND                                         
006377,000197: 06,2137           12165                           BZF      QUIKOFF                               #  WROTE LAST TIME, NOW TURN OFF RELAYS.
006378,000198: 
006379,000199: 06,2140           11016                           CCS      NOUT                                  
006380,000200: 06,2141           02024                           TC       DSPOUTSB                              
006381,000201: 06,2142           12152                           TCF      NODSPY                                #  NOUT=0 OR BAD RETURN FROM DSPOUTSB
006382,000202: 06,2143           44736                           CS       BIT14                                 #  GOOD RETURN (WE DISPLAYED SOMETHING)
006383,000203: 06,2144           27313        QUIKRUPT           ADS      DSRUPTSW                              
006384,000204: 
006385,000205: 06,2145           37731                           CAF      20MRUPT                               
006386,000206: 06,2146           54027                           TS       TIME4                                 
006387,000207: 
006388,000208: 06,2147           34743                           CAF      BIT9                                  
006389,000209: 06,2150           27313                           ADS      DSRUPTSW                              
006390,000210: 
006391,000211: 06,2151           05270                           TC       RESUME                                
006392,000212: 
006393,000213: 06,2152           00006        NODSPY             EXTEND                                         
006394,000214: 06,2153           01010                           WRITE    OUT0                                  
006395,000215: 
006396,000216: 06,2154           37731        SYNCT4             CAF      20MRUPT                               
006397,000217: 06,2155           26027                           ADS      TIME4                                 
006398,000218: 
006399,000219: 06,2156           34743                           CAF      BIT9                                  
006400,000220: 06,2157           27313                           ADS      DSRUPTSW                              
006401,000221: 
006402,000222: 06,2160           11313                           CCS      DSRUPTSW                              
006403,000223: 06,2161           05270                           TC       RESUME                                
006404,000224: 06,2162           37737        OCT37737           OCT      37737                                 
006405,000225: 06,2163           02154                           TC       SYNCT4                                
006406,000226: 06,2164           05270                           TC       RESUME                                
006407,000227: 
006408,000228: 06,2165           00006        QUIKOFF            EXTEND                                         
006409,000229: 06,2166           01010                           WRITE    OUT0                                  
006410,000230: 06,2167           34736                           CAF      BIT14                                 #  RESET DSRUPTSW TO SEND DISPLAY NEXT PASS
006411,000231: 06,2170           12144                           TCF      QUIKRUPT                              
006412,000232: 
006413,000233: 06,2171           22400        14,11,9            OCT      22400                                 
006414,000234: 

Page 161

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

Page 162

006467,000287: 06,2210           62514                           BZMF     TLIM                                  #  CHANGE IN IMU TEMP.
006468,000288: 06,2211           12213                           TCF      NXTIFBIT                              #  BEGIN BIT SCAN.
006469,000289: 
006470,000290: 06,2212           64753                 -1        AD       ONE                                   #  (RE-ENTERS HERE FROM NXTIFAIL.)
006471,000291: 06,2213           24070        NXTIFBIT           INCR     RUPTREG1                              #  ADVANCE BIT POSITION NUMBER.
006472,000292: 06,2214           60000                 +1        DOUBLE                                         
006473,000293: 06,2215           54000                           TS       A                                     #  SKIP IF OVERFLOW.
006474,000294: 06,2216           12213                           TCF      NXTIFBIT                              #  LOOK FOR BIT.
006475,000295: 
006476,000296: 06,2217           56071                           XCH      RUPTREG2                              #  SAVE OVERFLOW-CORRECTED DATA.
006477,000297: 06,2220           50070                           INDEX    RUPTREG1                              #  SELECT NEW VALUE OF THIS BIT.
006478,000298: 06,2221           34736                           CAF      BIT14                                 
006479,000299: 06,2222           71302                           MASK     IMODES30                              
006480,000300: 06,2223           50070                           INDEX    RUPTREG1                              
006481,000301: 06,2224           02755                           TC       IFAILJMP                              
006482,000302: 
006483,000303: 06,2225           10071        NXTIFAIL           CCS      RUPTREG2                              #  PROCESS ANY ADDITIONAL CHANGES.
006484,000304: 06,2226           12212                           TCF      NXTIFBIT   -1                         
006485,000305: 

Page 163

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

Page 164

006538,000358: 06,2230           74745                           MASK     BIT7                                  #  IS TIME TO ACT ON A TURN-ON SEQUENCE.
006539,000359: 06,2231           10000                           CCS      A                                     
006540,000360: 06,2232           12374                           TCF      C33TEST                               #  NO - EXAMINE CHANNEL 33.
006541,000361: 
006542,000362: 06,2233           34744                           CAF      BIT8                                  #  SEE IF FIRST SAMPLE OR SECOND.
006543,000363: 06,2234           71302                           MASK     IMODES30                              
006544,000364: 06,2235           10000                           CCS      A                                     
006545,000365: 06,2236           12242                           TCF      PROCTNON                              #  REACT AFTER SECOND SAMPLE.
006546,000366: 
006547,000367: 06,2237           34744                           CAF      BIT8                                  #  IF FIRST SAMPLE, SET BIT TO REACT NEXT
006548,000368: 06,2240           27302                           ADS      IMODES30                              #  TIME.
006549,000369: 06,2241           12374                           TCF      C33TEST                               
006550,000370: 
006551,000371:                                                                                                  #  PROCESS IMU TURN-ON REQUESTS AFTER WAITING 1 SAMPLE FOR ALL SIGNALS TO ARRIVE.
006552,000372: 
006553,000373: 06,2242           42777        PROCTNON           CS       BITS7&8                               
006554,000374: 06,2243           71302                           MASK     IMODES30                              
006555,000375: 06,2244           55302                           TS       IMODES30                              
006556,000376: 06,2245           74736                           MASK     BIT14                                 #  SEE IF TURN-ON REQUEST.
006557,000377: 06,2246           10000                           CCS      A                                     
006558,000378: 06,2247           12347                           TCF      OPONLY                                #  OPERATE ON ONLY.
006559,000379: 
006560,000380: 06,2250           41302                           CS       IMODES30                              #  IF TURN-ON REQUEST, WE SHOULD HAVE IMU
006561,000381: 06,2251           74743                           MASK     BIT9                                  #  OPERATE.
006562,000382: 06,2252           10000                           CCS      A                                     
006563,000383: 06,2253           12256                           TCF      +3                                    
006564,000384: 
006565,000385: 06,2254           05567                           TC       ALARM                                 #  ALARM IF NOT.
006566,000386: 06,2255           00213                           OCT      213                                   
006567,000387: 
006568,000388: 06,2256           02735                 +3        TC       CAGESUB                               
006569,000389: 06,2257           33005                           CAF      90SECS                                
006570,000390: 06,2260           05203                           TC       WAITLIST                              
006571,000391: 06,2261  E6,1414                                  EBANK=   M11                                   
006572,000392: 06,2261           02266 14106                     2CADR    ENDTNON                               
006573,000393: 
006574,000394: 06,2263           12374                           TCF      C33TEST                               
006575,000395: 
006576,000396: 06,2264           33005        RETNON             CAF      90SECS                                
006577,000397: 06,2265           05224                           TC       VARDELAY                              
006578,000398: 
006579,000399: 06,2266           44752        ENDTNON            CS       BIT2                                  #  RESET TURN-ON REQUEST FAIL BIT.
006580,000400: 06,2267           71302                           MASK     IMODES30                              
006581,000401: 06,2270           57302                           XCH      IMODES30                              
006582,000402: 06,2271           74752                           MASK     BIT2                                  #  IF IT WAS OFF, SEND ISS DELAY COMPLETE.
006583,000403: 06,2272           00006                           EXTEND                                         
006584,000404: 06,2273           12306                           BZF      ENDTNON2                              
006585,000405: 
006586,000406: 06,2274           34736                           CAF      BIT14                                 #  IF IT WAS ON AND TURN-ON REQUEST NOW

Page 165

006588,000408: 06,2275           71302                           MASK     IMODES30                              #  PRESENT, RE-ENTER 90 SEC DELAY IN WL.
006589,000409: 06,2276           00006                           EXTEND                                         
006590,000410: 06,2277           12264                           BZF      RETNON                                
006591,000411: 
006592,000412: 06,2300           40074                           CS       FLAGWRD0                              #  IF IT IS NOT ON NOW, SEE IF A PROG WAS
006593,000413: 06,2301           74744                           MASK     IMUSEBIT                              #  WAITING.
006594,000414: 06,2302           10000                           CCS      A                                     
006595,000415: 06,2303           15261                           TCF      TASKOVER                              
006596,000416: 06,2304           04635                           TC       POSTJUMP                              
006597,000417: 06,2305           17637                           CADR     IMUBAD                                #  UNSUCCESSFUL TURN-ON.
006598,000418: 
006599,000419: 06,2306           34735        ENDTNON2           CAF      BIT15                                 #  SEND ISS DELAY COMPLETE.
006600,000420: 06,2307           00006                           EXTEND                                         
006601,000421: 06,2310           05012                           WOR      CHAN12                                
006602,000422: 
006603,000423: 06,2311           04674                           TC       IBNKCALL                              #  TURN OFF NO ATT LAMP.
006604,000424: 06,2312           17266                           CADR     NOATTOFF                              
006605,000425: 
006606,000426: 06,2313           05457        UNZ2               TC       ZEROICDU                              
006607,000427: 
006608,000428: 06,2314           44763                           CS       BITS4&5                               #  REMOVE ZERO AND COARSE.
006609,000429: 06,2315           00006                           EXTEND                                         
006610,000430: 06,2316           03012                           WAND     CHAN12                                
006611,000431: 
006612,000432: 06,2317           34741                           CAF      BIT11                                 #  WAIT 10 SECS FOR CTRS TO FIND GIMBALS
006613,000433: 06,2320           05224                           TC       VARDELAY                              
006614,000434: 
006615,000435: 06,2321           42774        ISSUP              CS       OCT54                                 #  REMOVE CAGING, IMU FAIL INHIBIT, AND
006616,000436: 06,2322           71302                           MASK     IMODES30                              #  ICDUFAIL INHIBIT FLAGS.
006617,000437: 06,2323           55302                           TS       IMODES30                              
006618,000438: 
006619,000439: 06,2324           44746                           CS       BIT6                                  #  ENABLE DAP
006620,000440: 06,2325           71303                           MASK     IMODES33                              
006621,000441: 06,2326           55303                           TS       IMODES33                              
006622,000442: 
006623,000443: 06,2327           40076                           CS       FLAGWRD2                              #  TEST DRIFTFLG: IF ON, DO NOTHING BECAUSE
006624,000444: 06,2330           74735                           MASK     DRFTBIT                               #  IMUCOMP SHOULD BE ALL SET UP (RESTART
006625,000445: 06,2331           00006                           EXTEND                                         #  WITH IMUSE DOWN).  IF OFF, SET DRIFTFLG
006626,000446: 06,2332           12336                           BZF      +4                                    #  AND 1/PIPADT TO GET FREEFALL IMUCOMP
006627,000447: 06,2333           26076                           ADS      FLAGWRD2                              #  GOING (FRESH START OR ISS TURN-ON).
006628,000448: 06,2334           30025                           CA       TIME1                                 
006629,000449: 06,2335           57075                           XCH      1/PIPADT                              #  CANNOT GET HERE IF RESTART WITH IMUSE UP
006630,000450: 
006631,000451: 06,2336           02703                           TC       SETISSW                               #  ISS WARNING MIGHT HAVE BEEN INHIBITED.
006632,000452: 
006633,000453: 06,2337           44735                           CS       BIT15                                 #  REMOVE IMU DELAY COMPLETE DISCRETE.
006634,000454: 06,2340           00006                           EXTEND                                         
006635,000455: 06,2341           03012                           WAND     CHAN12                                
006636,000456: 
006637,000457: 06,2342           35003                           CAF      4SECS                                 #  DONT ENABLE PROG ALARM ON PIP FAIL FOR

Page 166

006639,000459: 06,2343           05203                           TC       WAITLIST                              #  ANOTHER 4 SECS.
006640,000460: 06,2344  E3,1474                                  EBANK=   CDUIND                                
006641,000461: 06,2344           03254 16103                     2CADR    PFAILOK                               
006642,000462: 
006643,000463: 06,2346           15261                           TCF      TASKOVER                              
006644,000464: 
006645,000465: 06,2347           34750        OPONLY             CAF      BIT4                                  #  IF OPERATE ON ONLY, AND WE ARE IN COARSE
006646,000466: 06,2350           00006                           EXTEND                                         #  ALIGN, DONT ZERO THE CDUS BECAUSE WE
006647,000467: 06,2351           02012                           RAND     CHAN12                                #  MIGHT BE IN GIMBAL LOCK
006648,000468: 06,2352           10000                           CCS      A                                     
006649,000469: 06,2353           12374                           TCF      C33TEST                               
006650,000470: 
006651,000471: 06,2354           34744                           CAF      IMUSEBIT                              #  OTHERWISE, ZERO THE COUNTERS.
006652,000472: 06,2355           70074                           MASK     FLAGWRD0                              #  UNLESS SOMEONE IS USING THE IMU.
006653,000473: 06,2356           10000                           CCS      A                                     
006654,000474: 06,2357           12374                           TCF      C33TEST                               
006655,000475: 
006656,000476: 06,2360           02746                           TC       CAGESUB2                              #  SET TURNON FLAGS.
006657,000477: 
006658,000478: 06,2361           04674        ISSZERO            TC       IBNKCALL                              #  TURN OFF NO ATT LAMP
006659,000479: 06,2362           17266                           CADR     NOATTOFF                              #      IMU CAGE OFF ENTRY
006660,000480: 
006661,000481: 06,2363           34747                           CAF      BIT5                                  #  ISS CDU ZERO
006662,000482: 06,2364           00006                           EXTEND                                         
006663,000483: 06,2365           05012                           WOR      CHAN12                                
006664,000484: 
006665,000485: 06,2366           05457                           TC       ZEROICDU                              
006666,000486: 06,2367           34746                           CAF      BIT6                                  #  WAIT 300 MS FOR AGS TO RECEIVE SIGNAL.
006667,000487: 06,2370           05203                           TC       WAITLIST                              
006668,000488: 06,2371  E6,1414                                  EBANK=   M11                                   
006669,000489: 06,2371           02313 14106                     2CADR    UNZ2                                  
006670,000490: 
006671,000491: 06,2373           12374                           TCF      C33TEST                               
006672,000492: 

Page 167

006674,000494:                                                                                                  #  PROGRAM NAME:  C33TEST
006675,000495: 
006676,000496:                                                                                                  #  FUNCTIONAL DESCRIPTION:  THIS PROGRAM MONITORS THREE FLIP-FLOP INBITS OF CHANNEL 33 AND CALLS THE APPROPRIATE
006677,000497:                                                                                                  #  SUBROUTINE TO PROCESS A CHANGE.  IT IS ANALOGOUS TO IMUMON, WHICH MONITORS CHANNEL 30, EXCEPT THAT IT READS
006678,000498:                                                                                                  #  CHANNEL 33 WITH A WAND INSTRUCTION BECAUSE A 'WRITE' PULSE IS REQUIRED TO RESET THE FLIP-FLOPS.  THE BITS
006679,000499:                                                                                                  #  PROCESSED AND THE SUBROUTINES CALLED ARE:
006680,000500:                                                                                                  #        BIT     FUNCTION                SUBROUTINE
006681,000501:                                                                                                  #        ---     --------                ----------
006682,000502:                                                                                                  #         13     PIPA FAIL               PIPFAIL
006683,000503:                                                                                                  #         12     DOWNLINK TOO FAST       DNTMFAST
006684,000504:                                                                                                  #         11     UPLINK TOO FAST         UPTMFAST
006685,000505: 
006686,000506:                                                                                                  #  UPON ENTRY TO THE SUBROUTINE, THE NEW BIT STATE IS IN A.
006687,000507: 
006688,000508:                                                                                                  #  CALLING SEQUENCE:  EVERY 480 MILLISECONDS AFTER TNONTEST.
006689,000509: 
006690,000510:                                                                                                  #  JOBS OR TASKS INITIATED:  NONE.
006691,000511: 
006692,000512:                                                                                                  #  SUBROUTINES CALLED:  PIPFAIL, DNTMFAST AND UPTMFAST ON BIT CHANGES.
006693,000513: 
006694,000514:                                                                                                  #  ERASABLE INITIALIZATION:  C(IMODES33) = OCT 16000 ON A FRESH START OR RESTART, THEREFORE, THESE ALARMS WILL
006695,000515:                                                                                                  #  REAPPEAR IF THE CONDITIONS PERSIST.
006696,000516: 
006697,000517:                                                                                                  #  ALARMS:  NONE.
006698,000518: 
006699,000519:                                                                                                  #  EXIT:  GLOCKMON.
006700,000520: 
006701,000521:                                                                                                  #  OUTPUT:  UPDATED BITS 13, 12 AND 11 OF IMODES33 WITH CHANGES PROCESSED.
006702,000522: 
006703,000523: 06,2374           31303        C33TEST            CA       IMODES33                              #  SEE IF RELEVANT CHAN33 BITS HAVE
006704,000524: 06,2375           75026                           MASK     33RDMSK                               
006705,000525: 06,2376           54001                           TS       L                                     #  CHANGED.
006706,000526: 06,2377           35026                           CAF      33RDMSK                               
006707,000527: 06,2400           00006                           EXTEND                                         
006708,000528: 06,2401           03033                           WAND     CHAN33                                #  RESETS FLIP-FLOP INPUTS
006709,000529: 06,2402           00006                           EXTEND                                         
006710,000530: 06,2403           06001                           RXOR     LCHAN                                 
006711,000531: 06,2404           00006                           EXTEND                                         
006712,000532: 06,2405           12434                           BZF      GLOCKMON                              #  ON NO CHANGE.
006713,000533: 
006714,000534: 06,2406           54070                           TS       RUPTREG1                              #  SAVE BITS WHICH HAVE CHANGED.
006715,000535: 06,2407           23303                           LXCH     IMODES33                              
006716,000536: 06,2410           00006                           EXTEND                                         
006717,000537: 06,2411           06001                           RXOR     LCHAN                                 
006718,000538: 06,2412           55303                           TS       IMODES33                              #  UPDATED IMODES33.
006719,000539: 
006720,000540: 06,2413           34755                           CAF      ZERO                                  
006721,000541: 06,2414           56070                           XCH      RUPTREG1                              
006722,000542: 06,2415           60000                           DOUBLE                                         

Page 168

006724,000544: 06,2416           12421                           TCF      NXTIBT     +1                         #  SCAN FOR BIT CHANGES.
006725,000545: 
006726,000546: 06,2417           64753                 -1        AD       ONE                                   
006727,000547: 06,2420           24070        NXTIBT             INCR     RUPTREG1                              
006728,000548: 06,2421           60000                 +1        DOUBLE                                         
006729,000549: 06,2422           54000                           TS       A                                     #  (CODING IDENTICAL TO CHAN 30).
006730,000550: 06,2423           12420                           TCF      NXTIBT                                
006731,000551: 
006732,000552: 06,2424           56071                           XCH      RUPTREG2                              
006733,000553: 06,2425           50070                           INDEX    RUPTREG1                              #  GET NEW VALUE OF BIT WHICH CHANGED.
006734,000554: 06,2426           34737                           CAF      BIT13                                 
006735,000555: 06,2427           71303                           MASK     IMODES33                              
006736,000556: 06,2430           50070                           INDEX    RUPTREG1                              
006737,000557: 06,2431           02763                           TC       C33JMP                                
006738,000558: 06,2432           10071        NXTFL33            CCS      RUPTREG2                              #  PROCESS POSSIBLE ADDITIONAL CHANGES.
006739,000559: 06,2433           12417                           TCF      NXTIBT     -1                         
006740,000560: 

Page 169

006742,000562:                                                                                                  #  PROGRAM NAME:  GLOCKMON
006743,000563: 
006744,000564:                                                                                                  #  FUNCTIONAL DESCRIPTION:  THIS PROGRAM MONITORS THE CDUZ COUNTER TO DETERMINE WHETHER THE ISS IS IN GIMBAL LOCK
006745,000565:                                                                                                  #  AND TAKES ACTION IF IT IS.  THREE REGIONS OF MIDDLE GIMBAL ANGLE (MGA) ARE USED:
006746,000566: 
006747,000567:                                                                                                  #        1) ABS(MGA) LESS THAN OR EQUAL TO 70 DEGREES - NORMAL MODE.
006748,000568:                                                                                                  #        2) ABS(MGA) GREATER THAN 70 DEGREES AND LESS THAN OR EQUAL TO 85 DEGREES - GIMBAL LOCK LAMP TURNED ON.
006749,000569:                                                                                                  #        3) ABS(MGA) GREATER THAN 85 DEGREES - ISS PUT IN COARSE ALIGN AND NO ATT LAMP TURNED ON.
006750,000570: 
006751,000571:                                                                                                  #  CALLING SEQUENCE:  EVERY 480 MILLISECONDS AFTER C33TEST.
006752,000572: 
006753,000573:                                                                                                  #  JOBS OR TASKS INITIATED:  NONE.
006754,000574: 
006755,000575:                                                                                                  #  SUBROUTINES CALLED:   1) SETCOARS WHEN ABS(MGA) GREATER THAN 85 DEGREES AND ISS NOT IN COARSE ALIGN.
006756,000576:                                                                                                  #                        2) LAMPTEST BEFORE TURNING OFF GIMBAL LOCK LAMP.
006757,000577: 
006758,000578:                                                                                                  #  ERASABLE INITIALIZATION:
006759,000579:                                                                                                  #                1) FRESH START OR RESTART WITH NO GROUPS ACTIVE:  C(CDUZ) = 0, IMODES30 BIT 6 = 0, IMODES33 BIT 1 =  0.
006760,000580:                                                                                                  #                2) RESTART WITH GROUPS ACTIVE:  SAME AS FRESH START EXCEPT C(CDUZ) NOT CHANGED SO GIMBAL MONITOR
006761,000581:                                                                                                  #                                                PROCEEDS AS BEFORE.
006762,000582: 
006763,000583:                                                                                                  #  ALARMS:       1) MGA REGION (2) CAUSES GIMBAL LOCK LAMP TO BE LIT.
006764,000584:                                                                                                  #                2) MGA REGION (3) CAUSES THE ISS TO BE PUT IN COARSE ALIGN AND THE NO ATT LAMP TO BE LIT IF EITHER NOT
006765,000585:                                                                                                  #                   SO ALREADY.
006766,000586: 
006767,000587: 06,2434           10034        GLOCKMON           CCS      CDUZ                                  
006768,000588: 06,2435           12441                           TCF      GLOCKCHK                              #  SEE IF MAGNITUDE OF MGA IS GREATER THAN
006769,000589: 06,2436           12465                           TCF      SETGLOCK                              #  70 DEGREES.
006770,000590: 06,2437           12441                           TCF      GLOCKCHK                              
006771,000591: 06,2440           12465                           TCF      SETGLOCK                              
006772,000592: 
006773,000593: 06,2441           62512        GLOCKCHK           AD       -70DEGS                               
006774,000594: 06,2442           00006                           EXTEND                                         
006775,000595: 06,2443           62464                           BZMF     SETGLOCK   -1                         #  NO LOCK.
006776,000596: 
006777,000597: 06,2444           62513                           AD       -15DEGS                               #  SEE IF ABS(MGA) GREATER THAN 85 DEGREES.
006778,000598: 06,2445           00006                           EXTEND                                         
006779,000599: 06,2446           62462                           BZMF     NOGIMRUN                              
006780,000600: 
006781,000601: 06,2447           34750                           CAF      BIT4                                  #  IF SO, SYSTEM SHOULD BE IN COARSE ALIGN
006782,000602: 06,2450           00006                           EXTEND                                         #  TO PREVENT GIMBAL RUNAWAY.
006783,000603: 06,2451           02012                           RAND     CHAN12                                
006784,000604: 06,2452           10000                           CCS      A                                     
006785,000605: 06,2453           12462                           TCF      NOGIMRUN                              
006786,000606: 
006787,000607: 06,2454           04674                           TC       IBNKCALL                              
006788,000608: 06,2455           17144                           CADR     SETCOARS                              
006789,000609: 
006790,000610: 06,2456           36242                           CAF      SIX                                   #  ENABLE ISS ERROR COUNTERS IN 60 MS
006791,000611: 06,2457           05203                           TC       WAITLIST                              

Page 170

006793,000613: 06,2460  E3,1474                                  EBANK=   CDUIND                                
006794,000614: 06,2460           03140 16103                     2CADR    CA+ECE                                
006795,000615: 
006796,000616: 06,2462           34746        NOGIMRUN           CAF      BIT6                                  #  TURN ON GIMBAL LOCK LAMP.
006797,000617: 06,2463           12465                           TCF      SETGLOCK                              
006798,000618: 
006799,000619: 06,2464           34755                 -1        CAF      ZERO                                  
006800,000620: 06,2465           61036        SETGLOCK           AD       DSPTAB     +11D                       #  SEE IF PRESENT STATE OF GIMBAL LOCK LAMP
006801,000621: 06,2466           74746                           MASK     BIT6                                  #  AGREES WITH DESIRED STATE BY HALF ADDING
006802,000622: 06,2467           00006                           EXTEND                                         #  THE TWO.
006803,000623: 06,2470           15270                           BZF      GLOCKOK                               #  OK AS IS.
006804,000624: 
006805,000625: 06,2471           71036                           MASK     DSPTAB     +11D                       #  IF OFF, DONT TURN ON IF IMU BEING CAGED.
006806,000626: 06,2472           10000                           CCS      A                                     
006807,000627: 06,2473           12507                           TCF      GLAMPTST                              #  TURN OFF UNLESS LAMP TEST IN PROGRESS.
006808,000628: 
006809,000629: 06,2474           34746                           CAF      BIT6                                  
006810,000630: 06,2475           71302                           MASK     IMODES30                              
006811,000631: 06,2476           10000                           CCS      A                                     
006812,000632: 06,2477           15270                           TCF      GLOCKOK                               
006813,000633: 
006814,000634: 06,2500           41036        GLINVERT           CS       DSPTAB     +11D                       #  INVERT GIMBAL LOCK LAMP.
006815,000635: 06,2501           74746                           MASK     BIT6                                  
006816,000636: 06,2502           64735                           AD       BIT15                                 #  TO INDICATE CHANGE IN DSPTAB +11D.
006817,000637: 06,2503           57036                           XCH      DSPTAB     +11D                       
006818,000638: 06,2504           72162                           MASK     OCT37737                              
006819,000639: 06,2505           27036                           ADS      DSPTAB     +11D                       
006820,000640: 06,2506           15270                           TCF      GLOCKOK                               
006821,000641: 
006822,000642: 06,2507           02766        GLAMPTST           TC       LAMPTEST                              #  TURN OFF UNLESS LAMP TEST IN PROGRESS.
006823,000643: 06,2510           15270                           TCF      GLOCKOK                               
006824,000644: 06,2511           12500                           TCF      GLINVERT                              
006825,000645: 
006826,000646: 06,2512           63434        -70DEGS            DEC      -.38888                               #  -70 DEGREES SCALED IN HALF-REVOLUTIONS.
006827,000647: 06,2513           75252        -15DEGS            DEC      -.08333                               
006828,000648: 

Page 171

006830,000650:                                                                                                  #  PROGRAM NAME:  TLIM.
006831,000651: 
006832,000652:                                                                                                  #  FUNCTIONAL DESCRIPTION:  THIS PROGRAM MAINTAINS THE TEMP LAMP (BIT 4 OF CHANNEL 11) ON THE DSKY TO AGREE WITH
006833,000653:                                                                                                  #  THE TEMP SIGNAL FROM THE ISS (BIT 15 OF CHANNEL 30).  HOWEVER, THE LIGHT WILL NOT BE TURNED OFF IF A LAMP TEST
006834,000654:                                                                                                  #  IS IN PROGRESS.
006835,000655: 
006836,000656:                                                                                                  #  CALLING SEQUENCE:  CALLED BY IMUMON ON A CHANGE OF BIT 15 OF CHANNEL 30.
006837,000657: 
006838,000658:                                                                                                  #  JOBS OR TASKS INITIATED:  NONE.
006839,000659: 
006840,000660:                                                                                                  #  SUBROUTINES CALLED:  LAMPTEST.
006841,000661: 
006842,000662:                                                                                                  #  ERASABLE INITIALIZATION:  FRESH START AND RESTART TURN THE TEMP LAMP OFF.
006843,000663: 
006844,000664:                                                                                                  #  ALARMS:  TEMP LAMP TURNED ON WHEN IMU TEMP GOES OUT OF LIMITS.
006845,000665: 
006846,000666:                                                                                                  #  EXIT:  NXTIFAIL.
006847,000667: 
006848,000668:                                                                                                  #  OUTPUT:  SERVICE OF TEMP LAMP.                  IN A, EXCEPT FOR TLIM.
006849,000669: 
006850,000670: 06,2514           74733        TLIM               MASK     POSMAX                                #  REMOVE BIT FROM WORD OF CHANGES AND SET
006851,000671: 06,2515           54071                           TS       RUPTREG2                              #  DSKY TEMP LAMP ACCORDINGLY.
006852,000672: 
006853,000673: 06,2516           11302                           CCS      IMODES30                              
006854,000674: 06,2517           12525                           TCF      TEMPOK                                
006855,000675: 06,2520           12525                           TCF      TEMPOK                                
006856,000676: 
006857,000677: 06,2521           34750                           CAF      BIT4                                  #  TURN ON LAMP.
006858,000678: 06,2522           00006                           EXTEND                                         
006859,000679: 06,2523           05011                           WOR      DSALMOUT                              
006860,000680: 06,2524           12225                           TCF      NXTIFAIL                              
006861,000681: 
006862,000682: 06,2525           02766        TEMPOK             TC       LAMPTEST                              #  IF TEMP NOW OK, DONT TURN OFF LAMP IF
006863,000683: 06,2526           12225                           TCF      NXTIFAIL                              #  LAMP TEST IN PROGRESS.
006864,000684: 
006865,000685: 06,2527           44750                           CS       BIT4                                  
006866,000686: 06,2530           00006                           EXTEND                                         
006867,000687: 06,2531           03011                           WAND     DSALMOUT                              #  TURN OFF LAMP
006868,000688: 06,2532           12225                           TCF      NXTIFAIL                              
006869,000689: 

Page 172

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

Page 173

006924,000744: 06,2556           41302        ITURNON2           CS       IMODES30                              #  SET BIT7 TO INDICATE WAIT OF 1 SAMPLE
006925,000745: 06,2557           74745                           MASK     BIT7                                  
006926,000746: 06,2560           27302                           ADS      IMODES30                              
006927,000747: 06,2561           32564                           CAF      RRINIT                                
006928,000748: 06,2562           54110                           TS       RADMODES                              
006929,000749: 06,2563           12225                           TCF      NXTIFAIL                              
006930,000750: 
006931,000751: 06,2564           00102        RRINIT             OCT      00102                                 
006932,000752: 

Page 174

006934,000754:                                                                                                  #  PROGRAM NAME:  IMUCAGE.
006935,000755: 
006936,000756:                                                                                                  #  FUNCTIONAL DESCRIPTION:  THIS PROGRAM PROCESSES CHANGES OF THE IMUCAGE INBIT, CHANNEL 30 BIT 11.  IF THE BIT
006937,000757:                                                                                                  #  CHANGES TO 0 (CAGE BUTTON PRESSED), THE ISS IS CAGED (ICDU ZERO + COARSE ALIGN + NO ATT LAMP) UNTIL THE
006938,000758:                                                                                                  #  ASTRONAUT SELECTS ANOTHER PROGRAM TO ALIGN THE ISS.  ANY PULSE TRAINS TO THE ICDU'S AND GYRO'S ARE TERMINATED,
006939,000759:                                                                                                  #  THE ASSOCIATED OUTCOUNTERS ARE ZEROED AND THE GYRO'S ARE DE-SELECTED.  NO ACTION OCCURS WHEN THE BUTTON IS
006940,000760:                                                                                                  #  RELEASED (INBIT CHANGES TO 1).
006941,000761: 
006942,000762:                                                                                                  #  CALLING SEQUENCE:  BY IMUMON WHEN IMU CAGE BIT CHANGES.
006943,000763: 
006944,000764:                                                                                                  #  JOBS OR TASKS INITIATED:  NONE.
006945,000765: 
006946,000766:                                                                                                  #  SUBROUTINES CALLED:  CAGESUB.
006947,000767: 
006948,000768:                                                                                                  #  ERASABLE INITIALIZATION:  FRESH START AND RESTART SET BIT 11 OF IMODES30 TO 1.
006949,000769: 
006950,000770:                                                                                                  #  ALARMS: NONE.
006951,000771: 
006952,000772:                                                                                                  #  EXIT:  NXTIFAIL.
006953,000773: 
006954,000774:                                                                                                  #  OUTPUT:  ISS CAGED, COUNTERS ZEROED, PULSE TRAINS TERMINATED AND NO ATT LAMP LIT.
006955,000775: 
006956,000776: 06,2565           10000        IMUCAGE            CCS      A                                     #  NO ACTION IF GOING OFF.
006957,000777: 06,2566           12361                           TCF      ISSZERO                               
006958,000778: 06,2567           43002                           CS       OCT77000                              #  TERMINATE ICDU, RCDU, GYRO PULSE TRAINS
006959,000779: 06,2570           00006                           EXTEND                                         
006960,000780: 06,2571           03014                           WAND     CHAN14                                
006961,000781: 
006962,000782: 06,2572           42776                           CS       OCT272                                #  KNOCK DOWN DISPLAY INERTIAL DATA, IMU
006963,000783: 06,2573           00006                           EXTEND                                         #  ERROR COUNTER ENABLE, ZERO ICDU, COARSE
006964,000784: 06,2574           03012                           WAND     CHAN12                                #  ALIGN ENABLE, RR ERROR COUNTER ENABLE.
006965,000785: 
006966,000786: 06,2575           44745                           CS       ENGONBIT                              #  INSURE ENGONFLG IS CLEAR.
006967,000787: 06,2576           70101                           MASK     FLAGWRD5                              
006968,000788: 06,2577           54101                           TS       FLAGWRD5                              
006969,000789: 06,2600           44355                           CS       PRIO30                                #  TURN ENGINE OFF.
006970,000790: 06,2601           00006                           EXTEND                                         
006971,000791: 06,2602           02011                           RAND     DSALMOUT                              
006972,000792: 06,2603           64736                           AD       BIT14                                 
006973,000793: 06,2604           00006                           EXTEND                                         
006974,000794: 06,2605           01011                           WRITE    DSALMOUT                              #  FORCE BIT14=1, BIT13=0.
006975,000795: 
006976,000796: 06,2606           02743                           TC       CAGESUB1                              
006977,000797: 
006978,000798: 06,2607           04674                           TC       IBNKCALL                              #  KNOCK DOWN TRACK, REFSMMAT, DRIFT FLAGS
006979,000799: 06,2610           17175                           CADR     RNDREFDR                              
006980,000800: 
006981,000801: 06,2611           44755                           CS       ZERO                                  
006982,000802: 06,2612           54050                           TS       CDUXCMD                               
006983,000803: 06,2613           54051                           TS       CDUYCMD                               

Page 175

006985,000805: 06,2614           54052                           TS       CDUZCMD                               
006986,000806: 06,2615           54047                           TS       GYROCMD                               
006987,000807: 
006988,000808: 06,2616           43001                           CS       OCT740                                #  HAVING WAITED AT LEAST 27 MCT FROM
006989,000809: 06,2617           00006                           EXTEND                                         #  GYRO PULSE TRAIN TERMINATION, WE CAN
006990,000810: 06,2620           03014                           WAND     CHAN14                                #  DE-SELECT THE GYROS
006991,000811: 06,2621           12225                           TCF      NXTIFAIL                              
006992,000812: 

Page 176

006994,000814:                                                                                                  #  PROGRAM NAME:  IMUOP.
006995,000815: 
006996,000816:                                                                                                  #  FUNCTIONAL DESCRIPTION:  THIS PROGRAM PROCESSES CHANGES IN THE ISS OPERATE DISCRETE, BIT 9 OF CHANNEL 30.
006997,000817:                                                                                                  #  IF THE INBIT CHANGES TO 0, INDICATING ISS ON, IMUOP GENERALLY SETS BIT 7 OF IMODES30 TO 1 TO REQUEST ISS
006998,000818:                                                                                                  #  INITIALIZATION VIA TNONTEST.  AN EXCEPTION IS DURING A FAILED ISS DELAY DURING WHICH BIT 2 OF IMODES30 IS SET
006999,000819:                                                                                                  #  TO 1 AND NO FURTHER INITIALIZATION IS REQUIRED.  WHEN THE INBIT CHANGES TO 1, INDICATING ISS OFF, IMUSEFLG IS
007000,000820:                                                                                                  #  TESTED TO SEE IF ANY PROGRAM WAS USING THE ISS.  IF SO, PROGRAM ALARM 00214 IS ISSUED.
007001,000821: 
007002,000822:                                                                                                  #  CALLING SEQUENCE:  BY IMUMON WHEN BIT 9 OF CHANNEL 30 CHANGES.
007003,000823: 
007004,000824:                                                                                                  #  JOBS OR TASKS INITIATED:  NONE.
007005,000825:                                                                                                  #  
007006,000826:                                                                                                  #  SUBROUTINES CALLED:  ALARM, IF ISS IS TURNED OFF WHILE IN USE.
007007,000827: 
007008,000828:                                                                                                  #  ERASABLE INITIALIZATION:  ON FRESH START AND RESTART, BIT 9 OF IMODES30 IS SET TO 1 EXCEPT WHEN THE GIMBAL LOCK
007009,000829:                                                                                                  #  LAMP IS ON, IN WHICH CASE IT IS SET TO 0.  THIS PREVENTS ICDU ZERO BY TNONTEST WITH THE ISS IN GIMBAL LOCK.
007010,000830: 
007011,000831:                                                                                                  #  ALARMS:  PROGRAM ALARM 00214 IF THE ISS IS TURNED OFF WHILE IN USE.
007012,000832: 
007013,000833:                                                                                                  #  EXIT:  NXTIFAIL.
007014,000834: 
007015,000835:                                                                                                  #  OUTPUT:  ISS INITIALIZATION REQUEST (IMODES30 BIT 7) OR PROGRAM ALARM 00214.
007016,000836: 
007017,000837: 06,2622           00006        IMUOP              EXTEND                                         
007018,000838: 06,2623           12643                           BZF      IMUOP2                                
007019,000839: 
007020,000840: 06,2624           41303                           CS       IMODES33                              #  DISABLE DAP
007021,000841: 06,2625           74746                           MASK     BIT6                                  
007022,000842: 06,2626           27303                           ADS      IMODES33                              
007023,000843: 
007024,000844: 06,2627           04674                           TC       IBNKCALL                              #  KNOCK DOWN TRACK, REFSMMAT, DRIFT FLAGS
007025,000845: 06,2630           17175                           CADR     RNDREFDR                              
007026,000846: 
007027,000847: 06,2631           42777                           CS       BITS7&8                               #  KNOCK DOWN RENDEZVOUS, IMUUSE FLAGS
007028,000848: 06,2632           70074                           MASK     FLAGWRD0                              
007029,000849: 06,2633           56074                           XCH      FLAGWRD0                              #  IF GOING OFF, ALARM IF PROG USING IMU.
007030,000850: 06,2634           40000                           COM                                            
007031,000851: 06,2635           74744                           MASK     IMUSEFLG                              
007032,000852: 06,2636           10000                           CCS      A                                     
007033,000853: 06,2637           12225                           TCF      NXTIFAIL                              
007034,000854: 
007035,000855: 06,2640           05567                           TC       ALARM                                 
007036,000856: 06,2641           00214                           OCT      214                                   
007037,000857: 06,2642           12225                           TCF      NXTIFAIL                              
007038,000858: 
007039,000859: 06,2643           34752        IMUOP2             CAF      BIT2                                  #  SEE IF FAILED ISS TURN-ON SEQ IN PROG.
007040,000860: 06,2644           71302                           MASK     IMODES30                              
007041,000861: 06,2645           10000                           CCS      A                                     
007042,000862: 06,2646           12225                           TCF      NXTIFAIL                              #  IF SO, DONT PROCESS UNTIL PRESENT 90
007043,000863: 06,2647           12556                           TCF      ITURNON2                              #  SECONDS EXPIRES.
007044,000864: 

Page 177

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

Page 178

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

Page 179

007126,000946:                                                                                                  #  PROGRAM NAME:  SETISSW
007127,000947: 
007128,000948:                                                                                                  #  FUNCTIONAL DESCRIPTION:  THIS PROGRAM TURNS THE ISS WARNING LAMP ON AND OFF (CHANNEL 11 BIT 1 = 1 FOR ON,
007129,000949:                                                                                                  #  0 FOR OFF) DEPENDING ON THE STATUS OF IMODES30 BITS 13 (IMU FAIL) AND 4 (INHIBIT IMU FAIL), 12 (ICDU FAIL) AND
007130,000950:                                                                                                  #  3 (INHIBIT ICDU FAIL), AND 10 (PIPA FAIL) AND 1 (INHIBIT PIPA FAIL).  THE LAMP IS LEFT ON IF A LAMP TEST IS IN
007131,000951:                                                                                                  #  PROGRESS.
007132,000952: 
007133,000953:                                                                                                  #  CALLING SEQUENCE:  CALLED BY IMUMON ON CHANGES TO IMU FAIL AND ICDU FAIL.  CALLED BY IFAILOK AND PFAILOK UPON
007134,000954:                                                                                                  #  REMOVAL OF THE FAIL INHIBITS.  CALLED BY PIPFAIL WHEN THE PIPA FAIL DISCRETE CHANGES.  IT IS CALLED BY PIPUSE
007135,000955:                                                                                                  #  SINCE THE PIPA FAIL PROGRAM ALARM MAY NECESSITATE AN ISS WARNING, AND LIKEWISE BY PIPFREE WHEN THE ALARM DEPARTS
007136,000956:                                                                                                  #  AND IT IS CALLED BY IMUZERO3 AND ISSUP AFTER THE FAIL INHIBITS HAVE BEEN REMOVED.
007137,000957: 
007138,000958:                                                                                                  #  JOBS OR TASKS INITIATED:  NONE.
007139,000959: 
007140,000960:                                                                                                  #  SUBROUTINES CALLED:  NONE.
007141,000961: 
007142,000962:                                                                                                  #  ERASABLE INITIALIZATION:
007143,000963: 
007144,000964:                                                                                                  #        1) IMODES30 - SEE IMUMON.
007145,000965:                                                                                                  #        2) IMODES33 BIT 1 = 0 (LAMP TEST NOT IN PROGRESS).
007146,000966: 
007147,000967:                                                                                                  #  ALARMS:  ISS WARNING.
007148,000968: 
007149,000969:                                                                                                  #  THE FOLLOWING PROGRAM ALARMS WILL SHOW WHICH FAILURE CAUSED THE ISS WARN
007150,000970:                                                                                                  #        PROGRAM ALARM 00777     PIPA FAIL
007151,000971:                                                                                                  #        PROGRAM ALARM 03777     ICDU FAIL
007152,000972:                                                                                                  #        PROGRAM ALARM 04777     ICDU, PIPA FAILS
007153,000973:                                                                                                  #        PROGRAM ALARM 07777     IMU FAIL
007154,000974:                                                                                                  #        PROGRAM ALARM 10777     IMU, PIPA FAILS
007155,000975:                                                                                                  #        PROGRAM ALARM 13777     IMU, ICDU FAILS
007156,000976:                                                                                                  #        PROGRAM ALARM 14777     IMU, ICDU, PIPA FAILS
007157,000977: 
007158,000978:                                                                                                  #  EXIT: VIA Q.
007159,000979: 
007160,000980:                                                                                                  #  OUTPUT: ISS WARNING LAMP SET PROPERLY.
007161,000981: 
007162,000982: 06,2703           34761        SETISSW            CAF      OCT15                                 #  SET ISS WARNING USING THE FAIL BITS IN
007163,000983: 06,2704           71302                           MASK     IMODES30                              #  BITS 13, 12, AND 10 OF IMODES30 AND THE
007164,000984: 06,2705           00006                           EXTEND                                         #  FAILURE INHIBIT BITS IN POSITIONS
007165,000985: 06,2706           74742                           MP       BIT10                                 #  4, 3, AND 1.
007166,000986: 06,2707           31302                           CA       IMODES30                              
007167,000987: 06,2710           00006                           EXTEND                                         
007168,000988: 06,2711           04001                           ROR      LCHAN                                 #  0 INDICATES FAILURE
007169,000989: 06,2712           40000                           COM                                            
007170,000990: 06,2713           75025                           MASK     OCT15000                              
007171,000991: 06,2714           10000                           CCS      A                                     
007172,000992: 06,2715           12726                           TCF      ISSWON                                #  FAILURE.
007173,000993: 
007174,000994: 06,2716           34753        ISSWOFF            CAF      BIT1                                  #  DONT TURN OFF ISS WARNING IF LAMP TEST
007175,000995: 06,2717           71303                           MASK     IMODES33                              #  IN PROGRESS.

Page 180

007177,000997: 06,2720           10000                           CCS      A                                     
007178,000998: 06,2721           00002                           TC       Q                                     
007179,000999: 
007180,001000: 06,2722           44753                           CS       BIT1                                  
007181,001001: 06,2723           00006                           EXTEND                                         
007182,001002: 06,2724           03011                           WAND     DSALMOUT                              
007183,001003: 06,2725           00002                           TC       Q                                     
007184,001004: 
007185,001005: 06,2726           00006        ISSWON             EXTEND                                         
007186,001006: 06,2727           22066                           QXCH     ITEMP6                                
007187,001007: 06,2730           05744                           TC       VARALARM                              #  TELL EVERYONE WHAT CAUSED THE ISS WARNING
007188,001008: 06,2731           34753                           CAF      BIT1                                  
007189,001009: 06,2732           00006                           EXTEND                                         
007190,001010: 06,2733           05011                           WOR      DSALMOUT                              
007191,001011: 06,2734           00066                           TC       ITEMP6                                
007192,001012: 
007193,001013: 06,2735           43003        CAGESUB            CS       BITS6&15                              #  SET OUTBITS AND INTERNAL FLAGS FOR
007194,001014: 06,2736           00006                           EXTEND                                         #  SYSTEM TURN-ON OR CAGE.  DISABLE THE
007195,001015: 06,2737           03012                           WAND     CHAN12                                #  ERROR COUNTER AND REMOVE IMU DELAY COMP.
007196,001016: 06,2740           34763                           CAF      BITS4&5                               #  SEND ZERO AND COARSE.
007197,001017: 06,2741           00006                           EXTEND                                         
007198,001018: 06,2742           05012                           WOR      CHAN12                                
007199,001019: 
007200,001020: 06,2743           41036        CAGESUB1           CS       DSPTAB     +11D                       #  TURN ON NO ATT LAMP
007201,001021: 06,2744           72773                           MASK     OC40010                               
007202,001022: 06,2745           27036                           ADS      DSPTAB     +11D                       
007203,001023: 
007204,001024: 06,2746           41302        CAGESUB2           CS       IMODES30                              #  SET FLAGS TO INDICATE CAGING OR TURN-ON
007205,001025: 06,2747           72775                           MASK     OCT75                                 #  AND INHIBIT ALL ISS WARNING INFO
007206,001026: 06,2750           27302                           ADS      IMODES30                              
007207,001027: 
007208,001028: 06,2751           41303                           CS       IMODES33                              #  DISABLE DAP AUTO AND HOLD MODES
007209,001029: 06,2752           74746                           MASK     BIT6                                  
007210,001030: 06,2753           27303                           ADS      IMODES33                              
007211,001031: 
007212,001032: 06,2754           00002                           TC       Q                                     
007213,001033: 
007214,001034: 06,2755  06,2703               IMUFAIL            EQUALS   SETISSW                               
007215,001035: 06,2755  06,2703               ICDUFAIL           EQUALS   SETISSW                               
007216,001036: 

Page 181

007218,001038:                                                                                                  #  JUMP TABLES AND CONSTANTS.
007219,001039: 
007220,001040: 06,2755           12533        IFAILJMP           TCF      ITURNON                               #  CHANNEL 30 DISPATCH.
007221,001041: 06,2756           12703                           TCF      IMUFAIL                               
007222,001042: 06,2757           12703                           TCF      ICDUFAIL                              
007223,001043: 06,2760           12565                           TCF      IMUCAGE                               
007224,001044: 06,2761           76400        30RDMSK            OCT      76400                                 #  (BIT 10 NOT SAMPLED HERE).
007225,001045: 06,2762           12622                           TCF      IMUOP                                 
007226,001046: 
007227,001047: 06,2763           12650        C33JMP             TCF      PIPFAIL                               #  CHANNEL 33 DISPATCH.
007228,001048: 06,2764           12671                           TCF      DNTMFAST                              
007229,001049: 06,2765           12676                           TCF      UPTMFAST                              
007230,001050: 
007231,001051:                                                                                                  #  SUBROUTINE TO SKIP IF LAMP TEST NOT IN PROGRESS.
007232,001052: 06,2766           41303        LAMPTEST           CS       IMODES33                              #  BIT 1 OF IMODES33 = 1 IF LAMP TEST IN
007233,001053: 06,2767           74753                           MASK     BIT1                                  #  PROGRESS.
007234,001054: 06,2770           10000                           CCS      A                                     
007235,001055: 06,2771           24002                           INCR     Q                                     
007236,001056: 06,2772           00002                           TC       Q                                     
007237,001057: 
007238,001058: 06,2773     5026               33RDMSK            EQUALS   PRIO16                                
007239,001059: 06,2773           40010        OC40010            OCT      40010                                 
007240,001060: 06,2774           00054        OCT54              OCT      54                                    
007241,001061: 06,2775           00075        OCT75              OCT      75                                    
007242,001062: 06,2776           00272        OCT272             OCT      00272                                 
007243,001063: 06,2777           00300        BITS7&8            OCT      300                                   
007244,001064: 06,3000           01720        OCT1720            OCT      1720                                  
007245,001065: 06,3001           00740        OCT740             OCT      00740                                 
007246,001066: 06,3002     5025               OCT15000           EQUALS   PRIO15                                
007247,001067: 06,3002           77000        OCT77000           OCT      77000                                 
007248,001068: 06,3003           40040        BITS6&15           OCT      40040                                 
007249,001069: 06,3004           76777        -BIT10             OCT      -1000                                 
007250,001070: 
007251,001071: 06,3005           21450        90SECS             DEC      9000       B-14                       
007252,001072: 06,3006     5751               120MS              =        OCT14                                 #  (DEC12)
007253,001073: 06,3006     5270               GLOCKOK            EQUALS   RESUME                                
007254,001074: 

Page 182

007256,001076:                                                                                                  #  PROGRAM NAME_  RRAUTCHK
007257,001077: 
007258,001078:                                                                                                  #  FUNCTIONAL DESCRIPTION_
007259,001079:                                                                                                  #  RRAUTCHK IS THE RENDEZVOUS RADAR INBIT MONITOR.  INITIALLY THE RR
007260,001080:                                                                                                  #  POWER ON AUTO (CHAN 33 BIT 2) INBIT IS CHECKED.  IF NO CHANGE, THE
007261,001081:                                                                                                  #  PROGRAM EXITS TO RRCDUCHK.  IF A CHANGE, RADMODES IS UPDATED
007262,001082:                                                                                                  #  AND A CHECK MADE IF RR POWER HAS JUST COME ON.  IF JUST OFF, A CHECK
007263,001083:                                                                                                  #  IS MADE TO SEE IF A PROGRAM WAS USING THE RR (STATE BIT 7).  IF NO,
007264,001084:                                                                                                  #  THE PROGRAM EXITS TO RRCDUCHK.  IF YES, PROGRAM ALARM 00514
007265,001085:                                                                                                  #  IS REQUESTED BEFORE EXITING TO RRCDUCHK.  IF RR POWER HAS JUST COME
007266,001086:                                                                                                  #  ON, A CHECK IS MADE TO SEE IF A PROGRAM WAS USING THE RR (STATE BIT 7).
007267,001087:                                                                                                  #  IF YES, THE PROGRAM EXITS TO RRCDUCHK WITHOUT REQUESTING THE TURN-ON
007268,001088:                                                                                                  #  SEQUENCE.  IF NO, RADMODES IS UPDATED TO INDICATE RR CDU ZERO AND
007269,001089:                                                                                                  #  RR TURN-ON SEQUENCE (BITS 13, 1).  A 10 MILLISECOND WAITLIST CALL
007270,001090:                                                                                                  #  IS THEN SET FOR RRTURNON BEFORE THE PROGRAM EXITS TO NORRGMON.
007271,001091: 
007272,001092:                                                                                                  #  CALLING SEQUENCE_
007273,001093:                                                                                                  #  T4RUPT EVERY 480 MILLISECONDS
007274,001094: 
007275,001095:                                                                                                  #  ERASABLE INITIALIZATION REQUIRED_
007276,001096:                                                                                                  #  RADMODES, STATE
007277,001097: 
007278,001098:                                                                                                  #  SUBROUTINES CALLED_
007279,001099:                                                                                                  #  WAITLIST
007280,001100: 
007281,001101:                                                                                                  #  JOBS OR TASKS INITIATED_
007282,001102:                                                                                                  #  RRTURNON
007283,001103: 
007284,001104:                                                                                                  #  ALARMS_  PROGRAM ALARM 00514 - RADAR GOES OUT OF AUTO MODE WHILE BEING
007285,001105:                                                                                                  #  USED
007286,001106: 
007287,001107:                                                                                                  #  EXIT_  RRCDUCHK, NORRGMON
007288,001108: 
007289,001109: 06,3006           30110        RRAUTCHK           CA       RADMODES                              #  SEE IF CHANGE IN RR AUTO MODE BIT.
007290,001110: 06,3007           00006                           EXTEND                                         
007291,001111: 06,3010           06033                           RXOR     CHAN33                                
007292,001112: 06,3011           74752                           MASK     AUTOMBIT                              
007293,001113: 06,3012           00006                           EXTEND                                         
007294,001114: 06,3013           13037                           BZF      RRCDUCHK                              
007295,001115: 
007296,001116: 06,3014           22110                           LXCH     RADMODES                              #  UPDATE RADMODES.
007297,001117: 06,3015           00006                           EXTEND                                         
007298,001118: 06,3016           06001                           RXOR     LCHAN                                 
007299,001119: 06,3017           73033                           MASK     OCT05776                              #  CLR CONT. DES., REMODE, REPOS, CDUZERO,
007300,001120: 06,3020           54110                           TS       RADMODES                              #  AND TURNON BITS.
007301,001121: 06,3021           74752                           MASK     BIT2                                  #  SEE IF JUST ON.
007302,001122: 06,3022           10000                           CCS      A                                     
007303,001123: 06,3023           13034                           TCF      RRCDUCHK   -3                         #  OFF.  GO DISABLE RR CDU ERROR COUNTERS.
007304,001124: 06,3024           37663                           CA       OCT10001                              #  SET RRCDUZRO AND TURNON BITS.
007305,001125: 06,3025           26110                           ADS      RADMODES                              
007306,001126: 

Page 183

007308,001128: 06,3026           34753                           CAF      ONE                                   
007309,001129: 06,3027           05203                           TC       WAITLIST                              
007310,001130: 06,3030  E7,1456                                  EBANK=   LOSCOUNT                              
007311,001131: 06,3030           02062 52107                     2CADR    RRTURNON                              
007312,001132: 
007313,001133: 06,3032           13132                           TCF      NORRGMON                              
007314,001134: 
007315,001135: 06,3033           05776        OCT05776           OCT      5776                                  
007316,001136: 

Page 184

007318,001138:                                                                                                  #  PROGRAM NAME_ RRCDUCHK
007319,001139: 
007320,001140:                                                                                                  #  FUNCTIONAL DESCRIPTION_
007321,001141:                                                                                                  #  RRCDUCHK CHECKS FOR RR CDU FAIL (CHAN 30 BIT 7).  INITIALLY THE
007322,001142:                                                                                                  #  RR CDU FAIL BIT IS SAMPLED (CHAN 30 BIT 7).  IF NO CHANGE, THE
007323,001143:                                                                                                  #  PROGRAM EXITS TO RRGIMON.  IF A CHANGE, THE RR AUTO MODE
007324,001144:                                                                                                  #  (RADMODES BIT 2) BIT IS CHECKED.  IF NOT IN RR AUTO MODE, THE
007325,001145:                                                                                                  #  PROGRAM EXITS TO NORRGMON.  IF IN AUTO MODE, RADMODES BIT 7
007326,001146:                                                                                                  #  (RR CDU OK) IS UPDATED AND IF P-20 IS OPERATING PROGRAM ALARM 00515 IS
007327,001147:                                                                                                  #  REQUESTED.  CONTROL IS TRANSFERRED TO SETTRKF TO UPDATE
007328,001148:                                                                                                  #  THE TRACKER FAIL LAMP (DSPTAB+11D BIT 8).  CONTROL RETURNS TO
007329,001149:                                                                                                  #  RRGIMON.
007330,001150: 
007331,001151:                                                                                                  #  CALLING SEQUENCE_
007332,001152:                                                                                                  #  EVERY 480 MILLISECONDS FROM RRAUTCHK (VIA T4RUPT) UNLESS A
007333,001153:                                                                                                  #  TURN-ON SEQUENCE HAS JUST BEEN INITIATED.
007334,001154: 
007335,001155:                                                                                                  #  ERASABLE INITIALIZATION REQUIRED_
007336,001156:                                                                                                  #  RADMODES
007337,001157: 
007338,001158:                                                                                                  #  SUBROUTINES CALLED_
007339,001159:                                                                                                  #  SETTRKF
007340,001160: 
007341,001161:                                                                                                  #  JOBS OR TASKS INITIATED_
007342,001162:                                                                                                  #  NONE
007343,001163: 
007344,001164:                                                                                                  #  ALARMS_
007345,001165:                                                                                                  #  TRACKER FAIL
007346,001166:                                                                                                  #  PROGRAM ALARM 00515 - RRCDU FAIL DURING P-20
007347,001167: 
007348,001168:                                                                                                  #  EXIT_
007349,001169:                                                                                                  #  RRGIMON, NORRGMON
007350,001170: 
007351,001171: 06,3034           44752                 -3        CS       BIT2                                  
007352,001172: 06,3035           00006                           EXTEND                                         
007353,001173: 06,3036           03012                           WAND     CHAN12                                #  AT TURNON, DISABLE CDU ERROR COUNTERS.
007354,001174: 
007355,001175: 06,3037           30110        RRCDUCHK           CA       RADMODES                              #  LAST SAMPLED BIT IN RADMODES.
007356,001176: 06,3040           00006                           EXTEND                                         
007357,001177: 06,3041           06030                           RXOR     CHAN30                                
007358,001178: 06,3042           74745                           MASK     RCDUFBIT                              
007359,001179: 06,3043           00006                           EXTEND                                         
007360,001180: 06,3044           13071                           BZF      RRGIMON                               
007361,001181: 
007362,001182: 06,3045           34752                           CAF      AUTOMBIT                              #  IF RR NOT IN AUTO MODE, DON'T CHANGE BIT
007363,001183: 06,3046           70110                           MASK     RADMODES                              #  7 OF RADMODES.  IF THIS WERE NOT DONE,
007364,001184: 06,3047           10000                           CCS      A                                     #  THE TRACKER FAIL MIGHT COME ON WHEN
007365,001185: 06,3050           13132                           TCF      NORRGMON                              #  JUST READING LR DATA.
007366,001186: 
007367,001187: 06,3051           34745                           CAF      RCDUFBIT                              #  SET BIT 7 OF RADMODES FOR SETTRKF.

Page 185

007369,001189: 06,3052           22110                           LXCH     RADMODES                              #  UPDATE RADMODES.
007370,001190: 06,3053           00006                           EXTEND                                         
007371,001191: 06,3054           06001                           RXOR     L                                     
007372,001192: 06,3055           54110                           TS       RADMODES                              
007373,001193: 
007374,001194: 06,3056           30110                           CA       RADMODES                              #  DID RR CDU FAIL
007375,001195: 06,3057           74745                           MASK     RCDUFBIT                              
007376,001196: 06,3060           10000                           CCS      A                                     
007377,001197: 06,3061           13070                           TCF      TRKFLCDU                              #  NO
007378,001198: 06,3062           40074                           CS       FLAGWRD0                              #  RNDVFLG P20 OR P22 OPERATING
007379,001199: 06,3063           74745                           MASK     RNDVZBIT                              
007380,001200: 06,3064           10000                           CCS      A                                     
007381,001201: 06,3065           13070                           TCF      TRKFLCDU                              #  NO
007382,001202: 06,3066           05567                           TC       ALARM                                 #  YES
007383,001203: 06,3067           00515                           OCT      00515                                 
007384,001204: 06,3070           04564        TRKFLCDU           TC       SETTRKF                               #  UPDATE TRACKER FAIL LAMP ON DSKY.
007385,001205: 

Page 186

007387,001207:                                                                                                  #  PROGRAM NAME_  RRGIMON                                                E AUTO MODE EXCEPT WHEN THE RR CDUS ARE
007388,001208: 
007389,001209:                                                                                                  #  FUNCTIONAL DESCRIPTION_                                               TTER IS INITIATED BY THIS MONITOR WHEN
007390,001210:                                                                                                  #  RRGIMON IS THE RR GIMBAL LIMIT MONITOR.  INITIALLY THE FOLLOWING IS   ED TO DRIVE THE GIMBALS TO T = 0 AND
007391,001211:                                                                                                  #  CHECKED_  REMODE, RR CDU:S BEING ZEROED, REPOSITION, AND RR
007392,001212:                                                                                                  #  NOT IN AUTO MODE (RADMODES BITS 14, 13, 11 2). IF ANY OF THESE
007393,001213:                                                                                                  #  EXIST THE PROGRAM EXITS TO GPMATRIX.  IF NONE ARE PRESENT RRLIMCHK
007394,001214:                                                                                                  #  IS CALLED TO SEE IF THE PRESENT RR CDU ANGLES (OPTY, OPTX) ARE WITHIN
007395,001215:                                                                                                  #  THE LIMITS OF THE CURRENT MODE.  IF WITHIN LIMITS, THE PROGRAM EXITS
007396,001216:                                                                                                  #  TO NORRGMON.  IF NOT WITHIN LIMITS, THE REPOSITION FLAG (RADMODES
007397,001217:                                                                                                  #  BIT 11) IS SET, THE RR AUTO TRACKER AND RR ERROR COUNTER
007398,001218:                                                                                                  #  (CHAN 12 BITS 14, 2) ARE DISABLED, AND A 20 MILLISECOND WAITLIST
007399,001219:                                                                                                  #  CALL IS SET FOR DORREPOS AFTER WHICH THE PROGRAM EXITS TO NORRGMON.
007400,001220: 
007401,001221:                                                                                                  #  CALLING SEQUENCE_
007402,001222:                                                                                                  #  EVERY 480 MILLISECONDS FROM RRCDUCHK (VIA T4RUPT) UNLESS TURN-ON
007403,001223:                                                                                                  #  HAS JUST BEEN INITIATED VIA RRAUTCHK OR IF THERE HAS BEEN A CHANGE IN
007404,001224:                                                                                                  #  THE RR CDU FAIL BIT (CHAN 30 BIT 7) AND THE RR IS NOT IN THE AUTO MODE
007405,001225:                                                                                                  #  (RADMODES BIT 2).
007406,001226: 
007407,001227:                                                                                                  #  ERASABLE INITIALIZATION_  RADMODES
007408,001228: 
007409,001229:                                                                                                  #  SUBROUTINES CALLED_
007410,001230:                                                                                                  #  RRLIMCHK, WAITLIST
007411,001231: 
007412,001232:                                                                                                  #  JOBS OR TASKS INITIATED_
007413,001233:                                                                                                  #  DORREPOS
007414,001234: 
007415,001235:                                                                                                  #  ALARMS_
007416,001236:                                                                                                  #  NONE
007417,001237: 
007418,001238:                                                                                                  #  EXIT_
007419,001239:                                                                                                  #  NORRGMON
007420,001240: 
007421,001241: 06,3071           30101        RRGIMON            CAE      FLAGWRD5                              #  IS NO ANGLE MONITOR FLAG SET
007422,001242: 06,3072           74750                           MASK     NORRMBIT                              
007423,001243: 06,3073           10000                           CCS      A                                     
007424,001244: 06,3074           13132                           TCF      NORRGMON                              #  YES - SKIP LIMIT CHECK
007425,001245: 06,3075           40103                           CS       FLAGWRD7                              #  IS SERVICER RUNNING?
007426,001246: 06,3076           74747                           MASK     AVEGFBIT                              
007427,001247: 06,3077           10000                           CCS      A                                     
007428,001248: 06,3100           13105                           TCF      +5                                    #  NO. DO R25
007429,001249: 06,3101           30102                           CA       FLAGWRD6                              #  YES. IS MUNFLAG SET?
007430,001250: 06,3102           74744                           MASK     MUNFLBIT                              
007431,001251: 06,3103           10000                           CCS      A                                     
007432,001252: 06,3104           13132                           TCF      NORRGMON                              #  YES. DON'T DO R25
007433,001253: 06,3105           33127                 +5        CAF      OCT32002                              #  INHIBIT BY REMODE, ZEROING, MONITOR.
007434,001254: 06,3106           70110                           MASK     RADMODES                              #  OR RR NOT IN AUTO.
007435,001255: 06,3107           10000                           CCS      A                                     
007436,001256: 06,3110           13132                           TCF      NORRGMON                              

Page 187

007438,001258: 06,3111           04523                           TC       RRLIMCHK                              #  SEE IF ANGLES IN LIMITS.
007439,001259: 06,3112           00035                           ADRES    CDUT                                  
007440,001260: 
007441,001261: 06,3113           13115                           TCF      MONREPOS                              
007442,001262: 
007443,001263: 06,3114           13132                           TCF      NORRGMON                              #  (ADDITIONAL CODING MAY GO HERE).
007444,001264: 
007445,001265: 06,3115           34741        MONREPOS           CAF      REPOSBIT                              #  SET FLAG TO SHOW REPOSITION IN PROGRESS.
007446,001266: 06,3116           26110                           ADS      RADMODES                              
007447,001267: 
007448,001268: 06,3117           43130                           CS       OCT20002                              #  DISABLE TRACKER AND ERROR COUNTER.
007449,001269: 06,3120           00006                           EXTEND                                         
007450,001270: 06,3121           03012                           WAND     CHAN12                                
007451,001271: 
007452,001272: 06,3122           34752                           CAF      TWO                                   
007453,001273: 06,3123           05203                           TC       WAITLIST                              
007454,001274: 06,3124  E7,1456                                  EBANK=   LOSCOUNT                              
007455,001275: 06,3124           02127 52107                     2CADR    DORREPOS                              
007456,001276: 
007457,001277: 06,3126           13132                           TCF      NORRGMON                              
007458,001278: 
007459,001279: 06,3127           32002        OCT32002           OCT      32002                                 
007460,001280: 06,3130           20002        OCT20002           OCT      20002                                 
007461,001281: 06,3131           02100        OCT02100           OCT      02100                                 #  P20, P22 MASK BITS
007462,001282: 

Page 188

007464,001284:                                                                                                  #  PROGRAM NAME:  GPMATRIX (DAPT4S) MOD. NO. 2 DATE: OCTOBER 27, 1966
007465,001285: 
007466,001286:                                                                                                  #  AUTHOR: JONATHAN D. ADDELSTON (ADAMS ASSOCIATES)
007467,001287: 
007468,001288:                                                                                                  #  MODIFIED:  7FEB. 1968 BY P. S. WEISSMAN TO DELETE COMPUTATION OF MR12 AND MR13, WHICH ARE NO LONGER REQIURED.
007469,001289: 
007470,001290:                                                                                                  #  THIS PROGRAM CALCULATES ALL THE SINGLE-PRECISION MATRIX ELEMENTS WHICH ARE USED BY LEM DAP TO TRANSFORM VECTORS
007471,001291:                                                                                                  #  FROM GIMBAL TO PILOT (BODY) AXES AND BACK AGAIN.  THESE ELEMENTS ARE USED EXCLUSIVELY BY BASIC LANGUAGE ROUTINES
007472,001292:                                                                                                  #  AND THEREFORE ARE NOT ARRAYED FOR USE BY INTERPRETIVE PROGRAMS.
007473,001293: 
007474,001294:                                                                                                  #  CALLING SEQUENCE:  GPMATRIX IS TRANSFERRED TO FROM DAPT4S AND IS THUS EXECUTED 4 TIMES A SECOND BY T4RUPT.
007475,001295:                                                                                                  #  DAPT4S IS LISTED IN T4JUMP TABLE TWICE EXPLICITLY AND ALSO OCCURS AFTER RRAUTCHK (WHICH IS ALSO LISTED TWICE).
007476,001296: 
007477,001297:                                                                                                  #  SUBROUTINES CALLED: SPSIN, SPCOS.
007478,001298: 
007479,001299:                                                                                                  #  NORMAL EXIT MODE:  TCF RESUME
007480,001300: 
007481,001301:                                                                                                  #  ALARM AND ABORT MODES:  NONE.
007482,001302: 
007483,001303:                                                                                                  #  INPUT: CDUX, CDUY, CDUZ.
007484,001304: 
007485,001305:                                                                                                  #  OUTPUT:  M11, M21, M31, M22, M32.
007486,001306: 
007487,001307:                                                                                                  #  AOG = CDUX, AIG = CDUY, AMG = CDUZ: MNEMONIC IS : OIM = XYZ
007488,001308: 
007489,001309:                                                                                                  #                *       *       SIN(MG)                 0                       1       *
007490,001310:                                                                                                  #                M   =   *       COS(MG)COS(OG)          SIN(OG)                 0       *
007491,001311:                                                                                                  #                 GP     *       -COS(MG)SIN(OG)         COS(OG)                 0       *
007492,001312: 
007493,001313:                                                                                                  #                *       *       0                       COS(OG)/COS(MG)         -SIN(OG)/COS(MG)        *
007494,001314:                                                                                                  #                M   =   *       0                       SIN(OG)                 COS(OG)                 *
007495,001315:                                                                                                  #                 PG     *       1                       -SIN(MG)COS(OG)/COS(MG) SIN(MG)SIN(OG)/COS(MG)  *
007496,001316: 
007497,001317: 06,3132  E6,1414                                  EBANK=   M11                                   
007498,001318: 06,3132  06,3132               DAPT4S             EQUALS   GPMATRIX                              
007499,001319: 
007500,001320:                                                                                                  #  T4RUPT DAP LOGIC:
007501,001321: 
007502,001322: 06,3132           30034        GPMATRIX           CAE      CDUZ                                  #  SINGLE ENTRY POINT
007503,001323: 06,3133           05033                           TC       SPSIN                                 #  SIN(CDUZ) = SIN(MG)
007504,001324: 06,3134           55414                           TS       M11                                   #  SCALED AT 1
007505,001325: 
007506,001326: 06,3135           30034                           CAE      CDUZ                                  
007507,001327: 06,3136           05032                           TC       SPCOS                                 #  COS(CDUZ) = COS(MG)
007508,001328: 06,3137           54061                           TS       COSMG                                 #  SCALED AT 1 (ONLY A FACTOR)
007509,001329: 
007510,001330: 06,3140           30032                           CAE      CDUX                                  
007511,001331: 06,3141           05033                           TC       SPSIN                                 #  SIN(CDUX) = SIN(OG)
007512,001332: 06,3142           55417                           TS       M22                                   #  SCALED AT 1 (ALSO IS MR22)
007513,001333: 
007514,001334: 06,3143           41417                           CS       M22                                   

Page 189

007516,001336: 06,3144           00006                           EXTEND                                         
007517,001337: 06,3145           70061                           MP       COSMG                                 #  -SIN(OG)COS(MG)
007518,001338: 06,3146           55416                           TS       M31                                   #  SCALED AT 1
007519,001339: 
007520,001340: 06,3147           30032                           CAE      CDUX                                  
007521,001341: 06,3150           05032                           TC       SPCOS                                 #  COS(CDUX) = COS(OG)
007522,001342: 06,3151           55420                           TS       M32                                   #  SCALED AT 1 (ALSO IS MR23)
007523,001343: 
007524,001344: 06,3152           00006                           EXTEND                                         
007525,001345: 06,3153           70061                           MP       COSMG                                 #  COS(OG)COS(MG)
007526,001346: 06,3154           55415                           TS       M21                                   #  SCALED AT 1
007527,001347: 
007528,001348: 06,3155           05270                           TC       RESUME                                
007529,001349: 
007530,001350: 06,3156  06,3132               NORRGMON           EQUALS   DAPT4S                                
007531,001351: 06,3156     5270               ENDDAPT4           EQUALS   RESUME                                

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