Source Code

These source-code files derive from a printout of Luminary 116 (the Apollo 12 Lunar Module guidance computer program), from the personal library of original AGC developer Don Eyles, digitally photographed at archive.org, financially sponsored by Ron Burkey, and transcribed to source code by a team of volunteers. This colorized, syntax-highlighted form was created by assembling that transcribed source code. Note that the full page images are available on the Virtual AGC project page at archive.org, while reduced-size images are presented at the VirtualAGC project website. Report or fix any transcription errors at the Virtual AGC project code repository.

Notations on the program listing read, in part:

	GAP:  ASSEMBLE REVISION 116 OF AGC PROGRAM LUMINARY BY NASA 2021112-071
	19:09 AUG. 11,1969
Note that the date is the date of the printout, not the date of the program revision.

006494,000002:                                                                                                  ## Copyright:   Public domain.
006495,000003:                                                                                                  ## Filename:    T4RUPT_PROGRAM.agc
006496,000004:                                                                                                  ## Purpose:     A section of Luminary revision 116.
006497,000005:                                                                                                  ##              It is part of the source code for the Lunar Module's (LM) 
006498,000006:                                                                                                  ##              Apollo Guidance Computer (AGC) for Apollo 12.
006499,000007:                                                                                                  ##              This file is intended to be a faithful transcription, except
006500,000008:                                                                                                  ##              that the code format has been changed to conform to the
006501,000009:                                                                                                  ##              requirements of the yaYUL assembler rather than the
006502,000010:                                                                                                  ##              original YUL assembler.
006503,000011:                                                                                                  ## Reference:   pp. 156-190
006504,000012:                                                                                                  ## Assembler:   yaYUL
006505,000013:                                                                                                  ## Contact:     Ron Burkey <info@sandroid.org>.
006506,000014:                                                                                                  ## Website:     www.ibiblio.org/apollo/index.html
006507,000015:                                                                                                  ## Mod history: 2017-01-22 MAS  Created from Luminary 99.
006508,000016:                                                                                                  ##              2017-01-26 RSB  Back-ported comment-text fixes found while
006509,000017:                                                                                                  ##                              proofing corresponding Luminary 69 file.        
006510,000018:                                                                                                  ##              2017-01-28 RSB  WTIH -> WITH.
006511,000019:                                                                                                  ##              2017-02-08 RSB  Comment-text fixes identified while proofing Artemis 72.
006512,000020:                                                                                                  ##              2017-03-03 RSB  Transcribed, and then proofed comment-text using
006513,000021:                                                                                                  ##                              diff vs Luminary 131.
006514,000022: 

Page 156

006516,000024: 12,2000                                           BANK     12                                    
006517,000025: 06,2000                                           SETLOC   T4RUP                                 
006518,000026: 06,2000                                           BANK                                           
006519,000027: 
006520,000028: 06,2000  E6,1414                                  EBANK=   M11                                   
006521,000029: 06,2000                                           COUNT*   $$/T4RPT                              
006522,000030: 06,2000           54016        T4RUPT             TS       BANKRUPT                              
006523,000031: 
006524,000032: 06,2001           00006                           EXTEND                                         
006525,000033: 06,2002           22012                           QXCH     QRUPT                                 
006526,000034: 
006527,000035: 06,2003           11310                           CCS      DSRUPTSW                              #  GOES 7(-1)0 AROUND AND AROUND
006528,000036: 06,2004           12010                           TCF      NORMT4     +1                         
006529,000037: 06,2005           12007                           TCF      NORMT4                                
006530,000038: 
006531,000039: 06,2006           12134                           TCF      QUIKDSP                               
006532,000040: 
006533,000041: 06,2007           34757        NORMT4             CAF      SEVEN                                 
006534,000042: 06,2010           54070                           TS       RUPTREG1                              
006535,000043: 06,2011           55310                           TS       DSRUPTSW                              
006536,000044: 
006537,000045:    4066                                           BLOCK    02                                    
006538,000046:    4000                                           SETLOC   FFTAG10                               
006539,000047:    4000                                           BANK                                           
006540,000048: 
006541,000049:    4066                                           COUNT*   $$/T4RPT                              
006542,000050:    4066     7732               100MRUPT           =        OCT37766                              #  (DEC 16374)
006543,000051:                                                                                                  #  RELTAB IS A PACKED TABLE. RELAYWORD CODE IN UPPER 4 BITS, RELAY CODE
006544,000052:                                                                                                  #  IN LOWER 5 BITS.
006545,000053: 
006546,000054:    4066           04025        RELTAB             OCT      04025                                 
006547,000055:    4067           10003                           OCT      10003                                 
006548,000056:    4070           14031                           OCT      14031                                 
006549,000057:    4071           20033                           OCT      20033                                 
006550,000058:    4072           24017                           OCT      24017                                 
006551,000059:    4073           30036                           OCT      30036                                 
006552,000060:    4074           34034                           OCT      34034                                 
006553,000061:    4075           40023                           OCT      40023                                 
006554,000062:    4076           44035                           OCT      44035                                 
006555,000063:    4077           50037                           OCT      50037                                 
006556,000064:    4100           54000                           OCT      54000                                 
006557,000065:    4101           60000        RELTAB11           OCT      60000                                 
006558,000066: 

Page 157

006560,000068:                                                                                                  #  SWITCHED-BANK PORTION.
006561,000069: 
006562,000070: 12,2000                                           BANK     12                                    
006563,000071: 06,2000                                           SETLOC   T4RUP                                 
006564,000072: 06,2000                                           BANK                                           
006565,000073: 
006566,000074: 06,2012                                           COUNT*   $$/T4RPT                              
006567,000075: 06,2012           11035        CDRVE              CCS      DSPTAB     +11D                       
006568,000076: 06,2013           02063                           TC       DSPOUT                                
006569,000077: 06,2014           02063                           TC       DSPOUT                                
006570,000078: 
006571,000079: 06,2015           57035                           XCH      DSPTAB     +11D                       
006572,000080: 06,2016           74356                           MASK     LOW11                                 
006573,000081: 06,2017           55035                           TS       DSPTAB     +11D                       
006574,000082: 06,2020           64101                           AD       RELTAB11                              
006575,000083: 06,2021           00006                           EXTEND                                         
006576,000084: 06,2022           01010                           WRITE    OUT0                                  
006577,000085: 06,2023           02071                           TC       HANG20                                
006578,000086: 

Page 158

006580,000088:                                                                                                  #  DSPOUT PROGRAM. PUTS OUT DISPLAYS.
006581,000089: 
006582,000090: 06,2024           55015        DSPOUTSB           TS       NOUT                                  
006583,000091: 06,2025           44755                           CS       ZERO                                  
006584,000092: 06,2026           54073                           TS       DSRUPTEM                              #  SET TO -0 FOR 1ST PASS THRU DSPTAB
006585,000093: 06,2027           56775                           XCH      DSPCNT                                
006586,000094: 06,2030           64754                           AD       NEG0                                  #  TO PREVENT +0
006587,000095: 06,2031           54775                           TS       DSPCNT                                
006588,000096: 06,2032           50775        DSPSCAN            INDEX    DSPCNT                                
006589,000097: 06,2033           11022                           CCS      DSPTAB                                
006590,000098: 06,2034           10775                           CCS      DSPCNT                                #  IF DSPTAB ENTRY +, SKIP
006591,000099: 06,2035           12030                           TCF      DSPSCAN    -2                         #  IF DSPCNT +, TRY AGAIN
006592,000100: 06,2036           12047                           TCF      DSPLAY                                #  IF DSPTAB ENTRY -, DISPLAY
006593,000101: 06,2037           00012        TABLNTH            OCT      12                                    #  DEC 10   LENGTH OF DSPTAB
006594,000102: 06,2040           10073                           CCS      DSRUPTEM                              #  IF DSRUPTEM=+0,2ND PASS THRU DSPTAB
006595,000103: 06,2041           37764        120MRUPT           DEC      16372      B-14                       #  (DSPCNT = 0). +0 INTO NOUT.
006596,000104: 06,2042           55015                           TS       NOUT                                  
006597,000105: 06,2043           00002                           TC       Q                                     
006598,000106: 06,2044           54073                           TS       DSRUPTEM                              #  IF DSRUPTEM=-0, 1ST PASS THRU DSPTAB
006599,000107: 06,2045           32037                           CAF      TABLNTH                               #  (DSPCNT=0). +0 INTO DSRUPTEM. PASS AGAIN
006600,000108: 06,2046           12031                           TCF      DSPSCAN    -1                         
006601,000109: 
006602,000110: 06,2047           64753        DSPLAY             AD       ONE                                   
006603,000111: 06,2050           50775                           INDEX    DSPCNT                                
006604,000112: 06,2051           55022                           TS       DSPTAB                                #  REPLACE POSITIVELY
006605,000113: 06,2052           74356                           MASK     LOW11                                 #  REMOVE BITS 12 TO 15
006606,000114: 06,2053           54073                           TS       DSRUPTEM                              
006607,000115: 06,2054           34350                           CAF      HI5                                   
006608,000116: 06,2055           50775                           INDEX    DSPCNT                                
006609,000117: 06,2056           74066                           MASK     RELTAB                                #  PICK UP BITS 12 TO 15 OF RELTAB ENTRY
006610,000118: 06,2057           60073                           AD       DSRUPTEM                              
006611,000119: 06,2060           00006                           EXTEND                                         
006612,000120: 06,2061           01010                           WRITE    OUT0                                  
006613,000121: 
006614,000122: 06,2062           16742                           TCF      Q+1                                   
006615,000123: 
006616,000124: 06,2063           10101        DSPOUT             CCS      FLAGWRD5                              #  IS DSKY FLAG ON
006617,000125: 06,2064           34755                           CAF      ZERO                                  #  NO
006618,000126: 06,2065           12130                           TCF      NODSPOUT                              #  NO
006619,000127: 06,2066           11015                           CCS      NOUT                                  #  YES
006620,000128: 06,2067           02024                           TC       DSPOUTSB                              
006621,000129: 06,2070           12130                           TCF      NODSPOUT                              #  NO DISPLAY REQUESTS
006622,000130: 
006623,000131: 06,2071           42171        HANG20             CS       14,11,9                               
006624,000132: 06,2072           27310                           ADS      DSRUPTSW                              
006625,000133: 
006626,000134: 06,2073           37734                           CAF      20MRUPT                               
006627,000135: 
006628,000136: 06,2074           54027        SETTIME4           TS       TIME4                                 
006629,000137: 

Page 159

006631,000139:                                                                                                  #  THE STATUS OF THE PROCEED PUSHBUTTON IS MONITORED EVERY 120 MILLISECONDS VIA THE CHANNEL 32 BIT 14 INBIT.
006632,000140:                                                                                                  #  THE STATE OF THIS INBIT IS COMPARED WITH ITS STATE DURING THE PREVIOUS T4RUPT AND IS PROCESSED AS FOLLOWS.
006633,000141: 
006634,000142:                                                                                                  #        IF PREV ON AND NOW ON   - BYPASS
006635,000143:                                                                                                  #        IF PREV ON AND NOW OFF  - UPDATE IMODES33
006636,000144:                                                                                                  #        IF PREV OFF AND NOW ON  - UPDATE IMODES33 AND PROCESS VIA PINBALL
006637,000145:                                                                                                  #        IF PREV OFF AND NOW OFF - BYPASS
006638,000146: 
006639,000147:                                                                                                  #  THE LOGIC EMPLOYED REQUIRES ONLY 9 MCT (APPROX. 108 MICROSECONDS) OF COMPUTER TIME WHEN NO CHANGES OCCUR.
006640,000148: 
006641,000149: 06,2075           31300        PROCEEDE           CA       IMODES33                              #  MONITIOR FOR PROCEED BUTTON
006642,000150: 06,2076           00006                           EXTEND                                         
006643,000151: 06,2077           06032                           RXOR     CHAN32                                
006644,000152: 06,2100           74736                           MASK     BIT14                                 
006645,000153: 06,2101           00006                           EXTEND                                         
006646,000154: 06,2102           12116                           BZF      T4JUMP                                #  NO CHANGE
006647,000155: 
006648,000156: 06,2103           23300                           LXCH     IMODES33                              
006649,000157: 06,2104           00006                           EXTEND                                         
006650,000158: 06,2105           06001                           RXOR     LCHAN                                 
006651,000159: 06,2106           55300                           TS       IMODES33                              #  UPDATE IMODES33
006652,000160: 06,2107           74736                           MASK     BIT14                                 
006653,000161: 06,2110           10000                           CCS      A                                     
006654,000162: 06,2111           12116                           TCF      T4JUMP                                #  WAS ON - NOW OFF
006655,000163: 
006656,000164: 06,2112           34355                           CAF      CHRPRIO                               #  WAS OFF - NOW ON
006657,000165: 06,2113           05072                           TC       NOVAC                                 
006658,000166: 06,2114     0776                                  EBANK=   DSPCOUNT                              
006659,000167: 06,2114           03506 60101                     2CADR    PROCKEY                               
006660,000168: 

Page 160

006662,000170:                                                                                                  #  JUMP TO APPROPRIATE ONCE-PER SECOND (.96 SEC ACTUALLY) ACTIVITY
006663,000171: 
006664,000172: 06,2116           50070        T4JUMP             INDEX    RUPTREG1                              
006665,000173: 06,2117           12120                           TCF      +1                                    
006666,000174: 
006667,000175: 06,2120           03164                           TC       RCSMONIT                              
006668,000176: 06,2121           13006                           TCF      RRAUTCHK                              
006669,000177: 06,2122           12172                           TCF      IMUMON                                
006670,000178: 06,2123           13140                           TCF      DAPT4S                                
006671,000179: 06,2124           03164                           TC       RCSMONIT                              
006672,000180: 06,2125           13006                           TCF      RRAUTCHK                              
006673,000181: 06,2126           12172                           TCF      IMUMON                                
006674,000182: 06,2127           13140                           TCF      DAPT4S                                
006675,000183: 
006676,000184: 06,2130     7734               20MRUPT            =        OCT37776                              #  (DEC 16382)
006677,000185: 

Page 161

006679,000187:                                                                                                  #  ADDITIONAL ROUTINES FOR 20MS. KEYBOARD ACTIVITY
006680,000188: 
006681,000189: 06,2130           00006        NODSPOUT           EXTEND                                         
006682,000190: 06,2131           01010                           WRITE    OUT0                                  
006683,000191: 
006684,000192: 06,2132           32041                           CAF      120MRUPT                              #  SET FOR NEXT CDRIVE
006685,000193: 06,2133           12074                           TCF      SETTIME4                              
006686,000194: 
006687,000195: 06,2134           34736        QUIKDSP            CAF      BIT14                                 
006688,000196: 06,2135           71310                           MASK     DSRUPTSW                              
006689,000197: 06,2136           00006                           EXTEND                                         
006690,000198: 06,2137           12165                           BZF      QUIKOFF                               #  WROTE LAST TIME, NOW TURN OFF RELAYS.
006691,000199: 
006692,000200: 06,2140           11015                           CCS      NOUT                                  
006693,000201: 06,2141           02024                           TC       DSPOUTSB                              
006694,000202: 06,2142           12152                           TCF      NODSPY                                #  NOUT=0 OR BAD RETURN FROM DSPOUTSB
006695,000203: 06,2143           44736                           CS       BIT14                                 #  GOOD RETURN (WE DISPLAYED SOMETHING)
006696,000204: 06,2144           27310        QUIKRUPT           ADS      DSRUPTSW                              
006697,000205: 
006698,000206: 06,2145           37734                           CAF      20MRUPT                               
006699,000207: 06,2146           54027                           TS       TIME4                                 
006700,000208: 
006701,000209: 06,2147           34743                           CAF      BIT9                                  
006702,000210: 06,2150           27310                           ADS      DSRUPTSW                              
006703,000211: 
006704,000212: 06,2151           05270                           TC       RESUME                                
006705,000213: 
006706,000214: 06,2152           00006        NODSPY             EXTEND                                         
006707,000215: 06,2153           01010                           WRITE    OUT0                                  
006708,000216: 
006709,000217: 06,2154           37734        SYNCT4             CAF      20MRUPT                               
006710,000218: 06,2155           26027                           ADS      TIME4                                 
006711,000219: 
006712,000220: 06,2156           34743                           CAF      BIT9                                  
006713,000221: 06,2157           27310                           ADS      DSRUPTSW                              
006714,000222: 
006715,000223: 06,2160           11310                           CCS      DSRUPTSW                              
006716,000224: 06,2161           05270                           TC       RESUME                                
006717,000225: 06,2162           37737        OCT37737           OCT      37737                                 
006718,000226: 06,2163           02154                           TC       SYNCT4                                
006719,000227: 06,2164           05270                           TC       RESUME                                
006720,000228: 
006721,000229: 06,2165           00006        QUIKOFF            EXTEND                                         
006722,000230: 06,2166           01010                           WRITE    OUT0                                  
006723,000231: 06,2167           34736                           CAF      BIT14                                 #  RESET DSRUPTSW TO SEND DISPLAY NEXT PASS
006724,000232: 06,2170           12144                           TCF      QUIKRUPT                              
006725,000233: 
006726,000234: 06,2171           22400        14,11,9            OCT      22400                                 
006727,000235: 

Page 162

006729,000237:                                                                                                  #  PROGRAM NAME:  IMUMON
006730,000238: 
006731,000239:                                                                                                  #  FUNCTIONAL DESCRIPTION:  THIS PROGRAM IS ENTERED EVERY 480 MS.  IT DETECTS CHANGES OF THE IMU STATUS BITS IN
006732,000240:                                                                                                  #  CHANNEL 30 AND CALLS THE APPROPRIATE SUBROUTINES.  THE BITS PROCESSED AND THEIR RELEVANT SUBROUTINES ARE:
006733,000241: 
006734,000242:                                                                                                  #        FUNCTION                BIT     SUBROUTINE CALLED
006735,000243:                                                                                                  #        --------                ---     -----------------
006736,000244:                                                                                                  #        TEMP IN LIMITS           15     TLIM
006737,000245:                                                                                                  #        ISS TURN-ON REQUEST      14     ITURNON
006738,000246:                                                                                                  #        IMU FAIL                 13     IMUFAIL (SETISSW)
006739,000247:                                                                                                  #        IMU CDU FAIL             12     ICDUFAIL (SETISSW)
006740,000248:                                                                                                  #        IMU CAGE                 11     IMUCAGE
006741,000249:                                                                                                  #        IMU OPERATE               9     IMUOP
006742,000250: 
006743,000251:                                                                                                  #           THE LAST SAMPLED STATE OF THESE BITS IS LEFT IN IMODES30.  ALSO, EACH SUBROUTINE CALLED FINDS THE NEW
006744,000252:                                                                                                  #  VALUE OF THE BIT IN A, WITH Q SET TO THE PROPER RETURN LOCATION, NXTIFAIL.
006745,000253: 
006746,000254:                                                                                                  #  CALLING SEQUENCE:  T4RUPT EVERY 480 MILLISECONDS.
006747,000255: 
006748,000256:                                                                                                  #  JOBS OR TASKS INITIATED:  NONE.
006749,000257: 
006750,000258:                                                                                                  #  SUBROUTINES CALLED:  TLIM, ITURNON, SETISSW, IMUCAGE, IMUOP.
006751,000259: 
006752,000260:                                                                                                  #  ERASABLE INITIALIZATION:
006753,000261:                                                                                                  #           FRESH START OR RESTART WITH NO GROUPS ACTIVE: C(IMODES30) = OCT 37411.
006754,000262:                                                                                                  #           RESTART WITH ACTIVE GROUPS:  C(IMODES30) = (B(IMODES30)AND(OCT 00035)) PLUS OCT 37400.
006755,000263:                                                                                                  #                                        THIS LEAVES IMU FAIL BITS INTACT.
006756,000264: 
006757,000265:                                                                                                  #  ALARMS:  NONE.
006758,000266: 
006759,000267:                                                                                                  #  EXIT:  TNONTEST.
006760,000268: 
006761,000269:                                                                                                  #  OUTPUT:  UPDATED IMODES30 WITH CHANGES PROCESSED BY APPROPRIATE SUBROUTINE.
006762,000270: 
006763,000271: 06,2172           31277        IMUMON             CA       IMODES30                              #  SEE IF THERE HAS BEEN A CHANGE IN THE
006764,000272: 06,2173           00006                           EXTEND                                         #  RELEVANT BITS OF CHAN 30.
006765,000273: 06,2174           06030                           RXOR     CHAN30                                
006766,000274: 06,2175           72761                           MASK     30RDMSK                               
006767,000275: 06,2176           00006                           EXTEND                                         
006768,000276: 06,2177           12227                           BZF      TNONTEST                              #  NO CHANGE IN STATUS.
006769,000277: 
006770,000278: 06,2200           54070                           TS       RUPTREG1                              #  SAVE BITS WHICH HAVE CHANGED.
006771,000279: 06,2201           23277                           LXCH     IMODES30                              #  UPDATE IMODES30.
006772,000280: 06,2202           00006                           EXTEND                                         
006773,000281: 06,2203           06001                           RXOR     LCHAN                                 
006774,000282: 06,2204           55277                           TS       IMODES30                              
006775,000283: 
006776,000284: 06,2205           44753                           CS       ONE                                   
006777,000285: 06,2206           56070                           XCH      RUPTREG1                              
006778,000286: 06,2207           00006                           EXTEND                                         

Page 163

006780,000288: 06,2210           62514                           BZMF     TLIM                                  #  CHANGE IN IMU TEMP.
006781,000289: 06,2211           12213                           TCF      NXTIFBIT                              #  BEGIN BIT SCAN.
006782,000290: 
006783,000291: 06,2212           64753                 -1        AD       ONE                                   #  (RE-ENTERS HERE FROM NXTIFAIL.)
006784,000292: 06,2213           24070        NXTIFBIT           INCR     RUPTREG1                              #  ADVANCE BIT POSITION NUMBER.
006785,000293: 06,2214           60000                 +1        DOUBLE                                         
006786,000294: 06,2215           54000                           TS       A                                     #  SKIP IF OVERFLOW.
006787,000295: 06,2216           12213                           TCF      NXTIFBIT                              #  LOOK FOR BIT.
006788,000296: 
006789,000297: 06,2217           56071                           XCH      RUPTREG2                              #  SAVE OVERFLOW-CORRECTED DATA.
006790,000298: 06,2220           50070                           INDEX    RUPTREG1                              #  SELECT NEW VALUE OF THIS BIT.
006791,000299: 06,2221           34736                           CAF      BIT14                                 
006792,000300: 06,2222           71277                           MASK     IMODES30                              
006793,000301: 06,2223           50070                           INDEX    RUPTREG1                              
006794,000302: 06,2224           02755                           TC       IFAILJMP                              
006795,000303: 
006796,000304: 06,2225           10071        NXTIFAIL           CCS      RUPTREG2                              #  PROCESS ANY ADDITIONAL CHANGES.
006797,000305: 06,2226           12212                           TCF      NXTIFBIT   -1                         
006798,000306: 

Page 164

006800,000308:                                                                                                  #  PROGRAM NAME:  TNONTEST.
006801,000309: 
006802,000310:                                                                                                  #  FUNCTIONAL DESCRIPTION:  THIS PROGRAM HONORS REQUESTS FOR ISS INITIALIZATION.  ISS TURN-ON (CHANNEL 30 BIT 14)
006803,000311:                                                                                                  #  AND ISS OPERATE (CHANNEL 30 BIT 9) REQUESTS ARE TREATED AS A PAIR AND PROCESSING TAKES PLACE .480 SECONDS
006804,000312:                                                                                                  #  AFTER EITHER ONE APPEARS.  THIS INITIALIZATION TAKES ON ONE OF THE FOLLOWING THREE FORMS:
006805,000313: 
006806,000314:                                                                                                  #           1)  ISS TURN-ON:  IN THIS SITUATION THE COMPUTER IS OPERATING WHEN THE ISS IS TURNED ON.  NOMINALLY,
006807,000315:                                                                                                  #           BOTH ISS TURN-ON AND ISS OPERATE APPEAR.  THE PLATFORM IS CAGED FOR 90 SECONDS AND THE ICDU'S ZEROED
006808,000316:                                                                                                  #           SO THAT AT THE END OF THE PROCESS THE GIMBAL LOCK MONITOR WILL FUNCTION PROPERLY.
006809,000317: 
006810,000318:                                                                                                  #           2)  ICDU INITIALIZATION:  IN THIS CASE THE COMPUTER WAS PROBABLY TURNED ON WITH THE ISS IN OPERATE OR
006811,000319:                                                                                                  #           A FRESH START WAS DONE WITH THE ISS IN OPERATE.  IN THIS CASE ONLY ISS OPERATE IS ON.  THE ICDU'S ARE
006812,000320:                                                                                                  #           ZEROED SO THE GIMBAL LOCK MONITOR WILL FUNCTION.  AN EXCEPTION IS IF THE ISS IS IN GIMBAL LOCK AFTER
006813,000321:                                                                                                  #           A RESTART, THE ICDU'S WILL NOT BE ZEROED.
006814,000322: 
006815,000323:                                                                                                  #           3)  RESTART WITH RESTARTABLE PROGRAM USING THE IMU:  IN THIS CASE, NO INITIALIZATION TAKES PLACE SINCE
006816,000324:                                                                                                  #           IT IS ASSUMED THAT THE USING PROGRAM DID THE INITIALIZATION AND THEREFORE T4RUPT SHOULD NOT INTERFERE.
006817,000325: 
006818,000326:                                                                                                  #  IMODES30 BIT 7 IS SET = 1 BY THE FIRST BIT (CHANNEL 30 BIT 14 OR 9) WHICH ARRIVES.  FOLLOWING THIS. TNONTEST IS
006819,000327:                                                                                                  #  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
006820,000328:                                                                                                  #  PROCEEDS, SETTING BITS 8 AND 7 = 0.  AT PROCTNON, IF ISS TURN-ON REQUEST IS PRESENT, THE ISS IS CAGED (ZERO +
006821,000329:                                                                                                  #  COARSE).  IF ISS OPERATE IS NOT PRESENT PROGRAM ALARM 00213 IS ISSUED.  AT THE END OF A 90 SECOND CAGE, BIT 2
006822,000330:                                                                                                  #  OF IMODES30 IS TESTED.  IF IT IS = 1, ISS TURN-ON WAS NOT PRESENT FOR THE ENTIRE 90 SECONDS.  IN THAT CASE, IF
006823,000331:                                                                                                  #  THE ISS TURN-ON REQUEST IS PRESENT THE 90 SECOND WAIT IS REPEATED, OTHERWISE NO ACTION OCCURS UNLESS A PROGRAM
006824,000332:                                                                                                  #  WAS WAITING FOR THE INITIALIZATION IN WHICH CASE THE PROGRAM IS GIVEN AN IMUSTALL ERROR RETURN.  IF THE DELAY
006825,000333:                                                                                                  #  WENT PROPERLY, THE ISS DELAY OUTBIT IS SENT AND THE ICDU'S ZEROED.  A TASK IS INITIATED TO REMOVE THE PIPA FAIL
006826,000334:                                                                                                  #  INHIBIT BIT IN 10.24 SECONDS.  IF A MISSION PROGRAM WAS WAITING IT IS INFORMED VIA ENDIMU.
006827,000335: 
006828,000336:                                                                                                  #  AT PROCTNON, IF ONLY ISS OPERATE IS PRESENT (OPONLY), THE CDU'S ARE ZEROED UNLESS THE PLATFORM IS IN COARSE
006829,000337:                                                                                                  #  ALIGN (= GIMBAL LOCK HERE) OR A MISSION PROGRAM IS USING THE IMU (IMUSEFLG = 1).
006830,000338: 
006831,000339:                                                                                                  #  CALLING SEQUENCE:  T4RUPT EVERY 480 MILLISECONDS AFTER IMUMON.
006832,000340: 
006833,000341:                                                                                                  #  JOBS OR TASKS INITIATED:  1) ENDTNON, 90 SECONDS AFTER CAGING STARTED.  2) ISSUP, 4 SECONDS AFTER CAGING DONE.
006834,000342:                                                                                                  #           3) PFAILOK, 10.24 SECONDS AFTER INITIALIZATION COMPLETED.  4) UNZ2, 320 MILLISECONDS AFTER ZEROING
006835,000343:                                                                                                  #           STARTED.
006836,000344: 
006837,000345:                                                                                                  #  SUBROUTINES CALLED:  CAGESUB, CAGESUB2, ZEROICDU, ENDIMU, IMUBAD, NOATTOFF, SETISSW, VARDELAY.
006838,000346: 
006839,000347:                                                                                                  #  ERASABLE INITIALIZATION:  SEE IMUMON.
006840,000348: 
006841,000349:                                                                                                  #  ALARMS:  PROGRAM ALARM 00213 IF ISS TURN-ON REQUESTED WITHOUT ISS OPERATE.
006842,000350: 
006843,000351:                                                                                                  #  EXIT:  ENDTNON EXITS TO C33TEST.  TASKS HAVING TO DO WITH INITIALIZATION EXIT AS FOLLOWS:  MISSION PROGRAM
006844,000352:                                                                                                  #  WAITING AND INITIALIZATION COMPLETE, EXIT TO ENDIMU, MISSION PROGRAM WAITING AND INITIALIZATION FAILED, EXIT TO
006845,000353:                                                                                                  #  IMUBAD, IMU NOT IN USE, EXIT TO TASKOVER.
006846,000354: 
006847,000355:                                                                                                  #  OUTPUT:  ISS INITIALIZED.
006848,000356: 
006849,000357: 06,2227           41277        TNONTEST           CS       IMODES30                              #  AFTER PROCESSING ALL CHANGES, SEE IF IT

Page 165

006851,000359: 06,2230           74745                           MASK     BIT7                                  #  IS TIME TO ACT ON A TURN-ON SEQUENCE.
006852,000360: 06,2231           10000                           CCS      A                                     
006853,000361: 06,2232           12374                           TCF      C33TEST                               #  NO - EXAMINE CHANNEL 33.
006854,000362: 
006855,000363: 06,2233           34744                           CAF      BIT8                                  #  SEE IF FIRST SAMPLE OR SECOND.
006856,000364: 06,2234           71277                           MASK     IMODES30                              
006857,000365: 06,2235           10000                           CCS      A                                     
006858,000366: 06,2236           12242                           TCF      PROCTNON                              #  REACT AFTER SECOND SAMPLE.
006859,000367: 
006860,000368: 06,2237           34744                           CAF      BIT8                                  #  IF FIRST SAMPLE, SET BIT TO REACT NEXT
006861,000369: 06,2240           27277                           ADS      IMODES30                              #  TIME.
006862,000370: 06,2241           12374                           TCF      C33TEST                               
006863,000371: 
006864,000372:                                                                                                  #  PROCESS IMU TURN-ON REQUESTS AFTER WAITING 1 SAMPLE FOR ALL SIGNALS TO ARRIVE.
006865,000373: 
006866,000374: 06,2242           42777        PROCTNON           CS       BITS7&8                               
006867,000375: 06,2243           71277                           MASK     IMODES30                              
006868,000376: 06,2244           55277                           TS       IMODES30                              
006869,000377: 06,2245           74736                           MASK     BIT14                                 #  SEE IF TURN-ON REQUEST.
006870,000378: 06,2246           10000                           CCS      A                                     
006871,000379: 06,2247           12347                           TCF      OPONLY                                #  OPERATE ON ONLY.
006872,000380: 
006873,000381: 06,2250           41277                           CS       IMODES30                              #  IF TURN-ON REQUEST, WE SHOULD HAVE IMU
006874,000382: 06,2251           74743                           MASK     BIT9                                  #  OPERATE.
006875,000383: 06,2252           10000                           CCS      A                                     
006876,000384: 06,2253           12256                           TCF      +3                                    
006877,000385: 
006878,000386: 06,2254           05567                           TC       ALARM                                 #  ALARM IF NOT.
006879,000387: 06,2255           00213                           OCT      213                                   
006880,000388: 
006881,000389: 06,2256           02735                 +3        TC       CAGESUB                               
006882,000390: 06,2257           33005                           CAF      90SECS                                
006883,000391: 06,2260           05203                           TC       WAITLIST                              
006884,000392: 06,2261  E6,1414                                  EBANK=   M11                                   
006885,000393: 06,2261           02266 14106                     2CADR    ENDTNON                               
006886,000394: 
006887,000395: 06,2263           12374                           TCF      C33TEST                               
006888,000396: 
006889,000397: 06,2264           33005        RETNON             CAF      90SECS                                
006890,000398: 06,2265           05224                           TC       VARDELAY                              
006891,000399: 
006892,000400: 06,2266           44752        ENDTNON            CS       BIT2                                  #  RESET TURN-ON REQUEST FAIL BIT.
006893,000401: 06,2267           71277                           MASK     IMODES30                              
006894,000402: 06,2270           57277                           XCH      IMODES30                              
006895,000403: 06,2271           74752                           MASK     BIT2                                  #  IF IT WAS OFF, SEND ISS DELAY COMPLETE.
006896,000404: 06,2272           00006                           EXTEND                                         
006897,000405: 06,2273           12306                           BZF      ENDTNON2                              
006898,000406: 
006899,000407: 06,2274           34736                           CAF      BIT14                                 #  IF IT WAS ON AND TURN-ON REQUEST NOW

Page 166

006901,000409: 06,2275           71277                           MASK     IMODES30                              #  PRESENT, RE-ENTER 90 SEC DELAY IN WL.
006902,000410: 06,2276           00006                           EXTEND                                         
006903,000411: 06,2277           12264                           BZF      RETNON                                
006904,000412: 
006905,000413: 06,2300           40074                           CS       FLAGWRD0                              #  IF IT IS NOT ON NOW, SEE IF A PROG WAS
006906,000414: 06,2301           74744                           MASK     IMUSEBIT                              #  WAITING.
006907,000415: 06,2302           10000                           CCS      A                                     
006908,000416: 06,2303           15261                           TCF      TASKOVER                              
006909,000417: 06,2304           04635                           TC       POSTJUMP                              
006910,000418: 06,2305           17631                           CADR     IMUBAD                                #  UNSUCCESSFUL TURN-ON.
006911,000419: 
006912,000420: 06,2306           34735        ENDTNON2           CAF      BIT15                                 #  SEND ISS DELAY COMPLETE.
006913,000421: 06,2307           00006                           EXTEND                                         
006914,000422: 06,2310           05012                           WOR      CHAN12                                
006915,000423: 
006916,000424: 06,2311           04674                           TC       IBNKCALL                              #  TURN OFF NO ATT LAMP.
006917,000425: 06,2312           17260                           CADR     NOATTOFF                              
006918,000426: 
006919,000427: 06,2313           05457        UNZ2               TC       ZEROICDU                              
006920,000428: 
006921,000429: 06,2314           44763                           CS       BITS4&5                               #  REMOVE ZERO AND COARSE.
006922,000430: 06,2315           00006                           EXTEND                                         
006923,000431: 06,2316           03012                           WAND     CHAN12                                
006924,000432: 
006925,000433: 06,2317           34741                           CAF      BIT11                                 #  WAIT 10 SECS FOR CTRS TO FIND GIMBALS
006926,000434: 06,2320           05224                           TC       VARDELAY                              
006927,000435: 
006928,000436: 06,2321           42774        ISSUP              CS       OCT54                                 #  REMOVE CAGING, IMU FAIL INHIBIT, AND
006929,000437: 06,2322           71277                           MASK     IMODES30                              #  ICDUFAIL INHIBIT FLAGS.
006930,000438: 06,2323           55277                           TS       IMODES30                              
006931,000439: 
006932,000440: 06,2324           44746                           CS       BIT6                                  #  ENABLE DAP
006933,000441: 06,2325           71300                           MASK     IMODES33                              
006934,000442: 06,2326           55300                           TS       IMODES33                              
006935,000443: 
006936,000444: 06,2327           40076                           CS       FLAGWRD2                              #  TEST DRIFTFLG: IF ON, DO NOTHING BECAUSE
006937,000445: 06,2330           74735                           MASK     DRFTBIT                               #  IMUCOMP SHOULD BE ALL SET UP(RESTART
006938,000446: 06,2331           00006                           EXTEND                                         #  WITH IMUSE DOWN).  IF OFF, SET DRIFTFLG
006939,000447: 06,2332           12336                           BZF      +4                                    #  AND 1/PIPADT TO GET FREEFALL IMUCOMP
006940,000448: 06,2333           26076                           ADS      FLAGWRD2                              #  GOING (FRESH START OR ISS TURN-ON).
006941,000449: 06,2334           30025                           CA       TIME1                                 
006942,000450: 06,2335           57074                           XCH      1/PIPADT                              #  CANNOT GET HERE IF RESTART WITH IMUSE UP
006943,000451: 
006944,000452: 06,2336           02703                           TC       SETISSW                               #  ISS WARNING MIGHT HAVE BEEN INHIBITED.
006945,000453: 
006946,000454: 06,2337           44735                           CS       BIT15                                 #  REMOVE IMU DELAY COMPLETE DISCRETE.
006947,000455: 06,2340           00006                           EXTEND                                         
006948,000456: 06,2341           03012                           WAND     CHAN12                                
006949,000457: 
006950,000458: 06,2342           35003                           CAF      4SECS                                 #  DONT ENABLE PROG ALARM ON PIP FAIL FOR

Page 167

006952,000460: 06,2343           05203                           TC       WAITLIST                              #  ANOTHER 4 SECS.
006953,000461: 06,2344  E3,1474                                  EBANK=   CDUIND                                
006954,000462: 06,2344           03246 16103                     2CADR    PFAILOK                               
006955,000463: 
006956,000464: 06,2346           15261                           TCF      TASKOVER                              
006957,000465: 
006958,000466: 06,2347           34750        OPONLY             CAF      BIT4                                  #  IF OPERATE ON ONLY, AND WE ARE IN COARSE
006959,000467: 06,2350           00006                           EXTEND                                         #  ALIGN, DONT ZERO THE CDUS BECAUSE WE
006960,000468: 06,2351           02012                           RAND     CHAN12                                #  MIGHT BE IN GIMBAL LOCK
006961,000469: 06,2352           10000                           CCS      A                                     
006962,000470: 06,2353           12374                           TCF      C33TEST                               
006963,000471: 
006964,000472: 06,2354           34744                           CAF      IMUSEBIT                              #  OTHERWISE, ZERO THE COUNTERS.
006965,000473: 06,2355           70074                           MASK     FLAGWRD0                              #  UNLESS SOMEONE IS USING THE IMU.
006966,000474: 06,2356           10000                           CCS      A                                     
006967,000475: 06,2357           12374                           TCF      C33TEST                               
006968,000476: 
006969,000477: 06,2360           02746                           TC       CAGESUB2                              #  SET TURNON FLAGS.
006970,000478: 
006971,000479: 06,2361           04674        ISSZERO            TC       IBNKCALL                              #  TURN OFF NO ATT LAMP
006972,000480: 06,2362           17260                           CADR     NOATTOFF                              #      IMU CAGE OFF ENTRY
006973,000481: 
006974,000482: 06,2363           34747                           CAF      BIT5                                  #  ISS CDU ZERO
006975,000483: 06,2364           00006                           EXTEND                                         
006976,000484: 06,2365           05012                           WOR      CHAN12                                
006977,000485: 
006978,000486: 06,2366           05457                           TC       ZEROICDU                              
006979,000487: 06,2367           34746                           CAF      BIT6                                  #  WAIT 300 MS FOR AGS TO RECEIVE SIGNAL.
006980,000488: 06,2370           05203                           TC       WAITLIST                              
006981,000489: 06,2371  E6,1414                                  EBANK=   M11                                   
006982,000490: 06,2371           02313 14106                     2CADR    UNZ2                                  
006983,000491: 
006984,000492: 06,2373           12374                           TCF      C33TEST                               
006985,000493: 

Page 168

006987,000495:                                                                                                  #  PROGRAM NAME:  C33TEST
006988,000496: 
006989,000497:                                                                                                  #  FUNCTIONAL DESCRIPTION:  THIS PROGRAM MONITORS THREE FLIP-FLOP INBITS OF CHANNEL 33 AND CALLS THE APPROPRIATE
006990,000498:                                                                                                  #  SUBROUTINE TO PROCESS A CHANGE.  IT IS ANALOGOUS TO IMUMON, WHICH MONITORS CHANNEL 30, EXCEPT THAT IT READS
006991,000499:                                                                                                  #  CHANNEL 33 WITH A WAND INSTRUCTION BECAUSE A 'WRITE' PULSE IS REQUIRED TO RESET THE FLIP-FLOPS.  THE BITS
006992,000500:                                                                                                  #  PROCESSED AND THE SUBROUTINES CALLED ARE:
006993,000501: 
006994,000502:                                                                                                  #        BIT     FUNCTION                SUBROUTINE
006995,000503:                                                                                                  #        ---     --------                ----------
006996,000504:                                                                                                  #         13     PIPA FAIL               PIPFAIL
006997,000505:                                                                                                  #         12     DOWNLINK TOO FAST       DNTMFAST
006998,000506:                                                                                                  #         11     UPLINK TOO FAST         UPTMFAST
006999,000507: 
007000,000508:                                                                                                  #  UPON ENTRY TO THE SUBROUTINE, THE NEW BIT STATE IS IN A.
007001,000509: 
007002,000510:                                                                                                  #  CALLING SEQUENCE:  EVERY 480 MILLISECONDS AFTER TNONTEST.
007003,000511: 
007004,000512:                                                                                                  #  JOBS OR TASKS INITIATED:  NONE.
007005,000513: 
007006,000514:                                                                                                  #  SUBROUTINES CALLED:  PIPFAIL, DNTMFAST AND UPTMFAST ON BIT CHANGES.
007007,000515: 
007008,000516:                                                                                                  #  ERASABLE INITIALIZATION:  C(IMODES33) = OCT 16000 ON A FRESH START OR RESTART, THEREFORE, THESE ALARMS WILL
007009,000517:                                                                                                  #  REAPPEAR IF THE CONDITIONS PERSIST.
007010,000518: 
007011,000519:                                                                                                  #  ALARMS:  NONE.
007012,000520: 
007013,000521:                                                                                                  #  EXIT:  GLOCKMON.
007014,000522: 
007015,000523:                                                                                                  #  OUTPUT:  UPDATED BITS 13, 12 AND 11 OF IMODES33 WITH CHANGES PROCESSED.
007016,000524: 
007017,000525: 06,2374           31300        C33TEST            CA       IMODES33                              #  SEE IF RELEVANT CHAN33 BITS HAVE
007018,000526: 06,2375           75026                           MASK     33RDMSK                               
007019,000527: 06,2376           54001                           TS       L                                     #  CHANGED.
007020,000528: 06,2377           35026                           CAF      33RDMSK                               
007021,000529: 06,2400           00006                           EXTEND                                         
007022,000530: 06,2401           03033                           WAND     CHAN33                                #  RESETS FLIP-FLOP INPUTS
007023,000531: 06,2402           00006                           EXTEND                                         
007024,000532: 06,2403           06001                           RXOR     LCHAN                                 
007025,000533: 06,2404           00006                           EXTEND                                         
007026,000534: 06,2405           12434                           BZF      GLOCKMON                              #  ON NO CHANGE.
007027,000535: 
007028,000536: 06,2406           54070                           TS       RUPTREG1                              #  SAVE BITS WHICH HAVE CHANGED.
007029,000537: 06,2407           23300                           LXCH     IMODES33                              
007030,000538: 06,2410           00006                           EXTEND                                         
007031,000539: 06,2411           06001                           RXOR     LCHAN                                 
007032,000540: 06,2412           55300                           TS       IMODES33                              #  UPDATED IMODES33.
007033,000541: 
007034,000542: 06,2413           34755                           CAF      ZERO                                  
007035,000543: 06,2414           56070                           XCH      RUPTREG1                              
007036,000544: 06,2415           60000                           DOUBLE                                         

Page 169

007038,000546: 06,2416           12421                           TCF      NXTIBT     +1                         #  SCAN FOR BIT CHANGES.
007039,000547: 
007040,000548: 06,2417           64753                 -1        AD       ONE                                   
007041,000549: 06,2420           24070        NXTIBT             INCR     RUPTREG1                              
007042,000550: 06,2421           60000                 +1        DOUBLE                                         
007043,000551: 06,2422           54000                           TS       A                                     #  (CODING IDENTICAL TO CHAN 30).
007044,000552: 06,2423           12420                           TCF      NXTIBT                                
007045,000553: 
007046,000554: 06,2424           56071                           XCH      RUPTREG2                              
007047,000555: 06,2425           50070                           INDEX    RUPTREG1                              #  GET NEW VALUE OF BIT WHICH CHANGED.
007048,000556: 06,2426           34737                           CAF      BIT13                                 
007049,000557: 06,2427           71300                           MASK     IMODES33                              
007050,000558: 06,2430           50070                           INDEX    RUPTREG1                              
007051,000559: 06,2431           02763                           TC       C33JMP                                
007052,000560: 06,2432           10071        NXTFL33            CCS      RUPTREG2                              #  PROCESS POSSIBLE ADDITIONAL CHANGES.
007053,000561: 06,2433           12417                           TCF      NXTIBT     -1                         
007054,000562: 

Page 170

007056,000564:                                                                                                  #  PROGRAM NAME:  GLOCKMON
007057,000565: 
007058,000566:                                                                                                  #  FUNCTIONAL DESCRIPTION:  THIS PROGRAM MONITORS THE CDUZ COUNTER TO DETERMINE WHETHER THE ISS IS IN GIMBAL LOCK
007059,000567:                                                                                                  #  AND TAKES ACTION IF IT IS.  THREE REGIONS OF MIDDLE GIMBAL ANGLE (MGA) ARE USED:
007060,000568: 
007061,000569:                                                                                                  #           1) ABS(MGA) LESS THAN OR EQUAL TO 70 DEGREES - NORMAL MODE.
007062,000570:                                                                                                  #           2) ABS(MGA) GREATER THAN 70 DEGREES AND LESS THAN OR EQUAL TO 85 DEGREES - GIMBAL LOCK LAMP TURNED ON.
007063,000571:                                                                                                  #           3) ABS(MGA) GREATER THAN 85 DEGREES - ISS PUT IN COARSE ALIGN AND NO ATT LAMP TURNED ON.
007064,000572: 
007065,000573:                                                                                                  #  CALLING SEQUENCE:  EVERY 480 MILLISECONDS AFTER C33TEST.
007066,000574: 
007067,000575:                                                                                                  #  JOBS OR TASKS INITIATED:  NONE.
007068,000576: 
007069,000577:                                                                                                  #  SUBROUTINES CALLED:   1) SETCOARS WHEN ABS(MGA) GREATER THAN 85 DEGREES AND ISS NOT IN COARSE ALIGN.
007070,000578:                                                                                                  #                        2) LAMPTEST BEFORE TURNING OFF GIMBAL LOCK LAMP.
007071,000579: 
007072,000580:                                                                                                  #  ERASABLE INITIALIZATION:
007073,000581:                                                                                                  #           1) FRESH START OR RESTART WITH NO GROUPS ACTIVE:  C(CDUZ) = 0, IMODES30 BIT 6 = 0, IMODES33 BIT 1 =  0.
007074,000582:                                                                                                  #           2) RESTART WITH GROUPS ACTIVE:  SAME AS FRESH START EXCEPT C(CDUZ) NOT CHANGED SO GIMBAL MONITOR
007075,000583:                                                                                                  #                                           PROCEEDS AS BEFORE.
007076,000584: 
007077,000585:                                                                                                  #  ALARMS:  1) MGA REGION (2) CAUSES GIMBAL LOCK LAMP TO BE LIT.
007078,000586:                                                                                                  #           2) MGA REGION (3) CAUSES THE ISS TO BE PUT IN COARSE ALIGN AND THE NO ATT LAMP TO BE LIT IF EITHER NOT
007079,000587:                                                                                                  #              SO ALREADY.
007080,000588: 
007081,000589: 06,2434           10034        GLOCKMON           CCS      CDUZ                                  
007082,000590: 06,2435           12441                           TCF      GLOCKCHK                              #  SEE IF MAGNITUDE OF MGA IS GREATER THAN
007083,000591: 06,2436           12465                           TCF      SETGLOCK                              #  70 DEGREES.
007084,000592: 06,2437           12441                           TCF      GLOCKCHK                              
007085,000593: 06,2440           12465                           TCF      SETGLOCK                              
007086,000594: 
007087,000595: 06,2441           62512        GLOCKCHK           AD       -70DEGS                               
007088,000596: 06,2442           00006                           EXTEND                                         
007089,000597: 06,2443           62464                           BZMF     SETGLOCK   -1                         #  NO LOCK.
007090,000598: 
007091,000599: 06,2444           62513                           AD       -15DEGS                               #  SEE IF ABS(MGA) GREATER THAN 85 DEGREES.
007092,000600: 06,2445           00006                           EXTEND                                         
007093,000601: 06,2446           62462                           BZMF     NOGIMRUN                              
007094,000602: 
007095,000603: 06,2447           34750                           CAF      BIT4                                  #  IF SO, SYSTEM SHOULD BE IN COARSE ALIGN
007096,000604: 06,2450           00006                           EXTEND                                         #  TO PREVENT GIMBAL RUNAWAY.
007097,000605: 06,2451           02012                           RAND     CHAN12                                
007098,000606: 06,2452           10000                           CCS      A                                     
007099,000607: 06,2453           12462                           TCF      NOGIMRUN                              
007100,000608: 
007101,000609: 06,2454           04674                           TC       IBNKCALL                              
007102,000610: 06,2455           17136                           CADR     SETCOARS                              
007103,000611: 
007104,000612: 06,2456           36245                           CAF      SIX                                   #  ENABLE ISS ERROR COUNTERS IN 60 MS
007105,000613: 06,2457           05203                           TC       WAITLIST                              

Page 171

007107,000615: 06,2460  E3,1474                                  EBANK=   CDUIND                                
007108,000616: 06,2460           03132 16103                     2CADR    CA+ECE                                
007109,000617: 
007110,000618: 06,2462           34746        NOGIMRUN           CAF      BIT6                                  #  TURN ON GIMBAL LOCK LAMP.
007111,000619: 06,2463           12465                           TCF      SETGLOCK                              
007112,000620: 
007113,000621: 06,2464           34755                 -1        CAF      ZERO                                  
007114,000622: 06,2465           61035        SETGLOCK           AD       DSPTAB     +11D                       #  SEE IF PRESENT STATE OF GIMBAL LOCK LAMP
007115,000623: 06,2466           74746                           MASK     BIT6                                  #  AGREES WITH DESIRED STATE BY HALF ADDING
007116,000624: 06,2467           00006                           EXTEND                                         #  THE TWO.
007117,000625: 06,2470           15270                           BZF      GLOCKOK                               #  OK AS IS.
007118,000626: 
007119,000627: 06,2471           71035                           MASK     DSPTAB     +11D                       #  IF OFF, DONT TURN ON IF IMU BEING CAGED.
007120,000628: 06,2472           10000                           CCS      A                                     
007121,000629: 06,2473           12507                           TCF      GLAMPTST                              #  TURN OFF UNLESS LAMP TEST IN PROGRESS.
007122,000630: 
007123,000631: 06,2474           34746                           CAF      BIT6                                  
007124,000632: 06,2475           71277                           MASK     IMODES30                              
007125,000633: 06,2476           10000                           CCS      A                                     
007126,000634: 06,2477           15270                           TCF      GLOCKOK                               
007127,000635: 
007128,000636: 06,2500           41035        GLINVERT           CS       DSPTAB     +11D                       #  INVERT GIMBAL LOCK LAMP.
007129,000637: 06,2501           74746                           MASK     BIT6                                  
007130,000638: 06,2502           64735                           AD       BIT15                                 #  TO INDICATE CHANGE IN DSPTAB +11D.
007131,000639: 06,2503           57035                           XCH      DSPTAB     +11D                       
007132,000640: 06,2504           72162                           MASK     OCT37737                              
007133,000641: 06,2505           27035                           ADS      DSPTAB     +11D                       
007134,000642: 06,2506           15270                           TCF      GLOCKOK                               
007135,000643: 
007136,000644: 06,2507           02766        GLAMPTST           TC       LAMPTEST                              #  TURN OFF UNLESS LAMP TEST IN PROGRESS.
007137,000645: 06,2510           15270                           TCF      GLOCKOK                               
007138,000646: 06,2511           12500                           TCF      GLINVERT                              
007139,000647: 
007140,000648: 06,2512           63434        -70DEGS            DEC      -.38888                               #  -70 DEGREES SCALED IN HALF-REVOLUTIONS.
007141,000649: 06,2513           75252        -15DEGS            DEC      -.08333                               
007142,000650: 

Page 172

007144,000652:                                                                                                  #  PROGRAM NAME:  TLIM.
007145,000653: 
007146,000654:                                                                                                  #  FUNCTIONAL DESCRIPTION:  THIS PROGRAM MAINTAINS THE TEMP LAMP (BIT 4 OF CHANNEL 11) ON THE DSKY TO AGREE WITH
007147,000655:                                                                                                  #  THE TEMP SIGNAL FROM THE ISS (BIT 15 OF CHANNEL 30).  HOWEVER, THE LIGHT WILL NOT BE TURNED OFF IF A LAMP TEST
007148,000656:                                                                                                  #  IS IN PROGRESS.
007149,000657: 
007150,000658:                                                                                                  #  CALLING SEQUENCE:  CALLED BY IMUMON ON A CHANGE OF BIT 15 OF CHANNEL 30.
007151,000659: 
007152,000660:                                                                                                  #  JOBS OR TASKS INITIATED:  NONE.
007153,000661: 
007154,000662:                                                                                                  #  SUBROUTINES CALLED:  LAMPTEST.
007155,000663: 
007156,000664:                                                                                                  #  ERASABLE INITIALIZATION:  FRESH START AND RESTART TURN THE TEMP LAMP OFF.
007157,000665: 
007158,000666:                                                                                                  #  ALARMS:  TEMP LAMP TURNED ON WHEN IMU TEMP GOES OUT OF LIMITS.
007159,000667: 
007160,000668:                                                                                                  #  EXIT:  NXTIFAIL.
007161,000669: 
007162,000670:                                                                                                  #  OUTPUT:  SERVICE OF TEMP LAMP.                                 IN A, EXCEPT FOR TLIM.
007163,000671: 
007164,000672: 06,2514           74733        TLIM               MASK     POSMAX                                #  REMOVE BIT FROM WORD OF CHANGES AND SET
007165,000673: 06,2515           54071                           TS       RUPTREG2                              #  DSKY TEMP LAMP ACCORDINGLY.
007166,000674: 
007167,000675: 06,2516           11277                           CCS      IMODES30                              
007168,000676: 06,2517           12525                           TCF      TEMPOK                                
007169,000677: 06,2520           12525                           TCF      TEMPOK                                
007170,000678: 
007171,000679: 06,2521           34750                           CAF      BIT4                                  #  TURN ON LAMP.
007172,000680: 06,2522           00006                           EXTEND                                         
007173,000681: 06,2523           05011                           WOR      DSALMOUT                              
007174,000682: 06,2524           12225                           TCF      NXTIFAIL                              
007175,000683: 
007176,000684: 06,2525           02766        TEMPOK             TC       LAMPTEST                              #  IF TEMP NOW OK, DONT TURN OFF LAMP IF
007177,000685: 06,2526           12225                           TCF      NXTIFAIL                              #  LAMP TEST IN PROGRESS.
007178,000686: 
007179,000687: 06,2527           44750                           CS       BIT4                                  
007180,000688: 06,2530           00006                           EXTEND                                         
007181,000689: 06,2531           03011                           WAND     DSALMOUT                              #  TURN OFF LAMP
007182,000690: 06,2532           12225                           TCF      NXTIFAIL                              
007183,000691: 

Page 173

007185,000693:                                                                                                  #  PROGRAM NAME:  ITURNON.
007186,000694: 
007187,000695:                                                                                                  #  FUNCTIONAL DESCRIPTION:  THIS PROGRAM IS CALLED BY IMUMON WHEN A CHANGE OF BIT 14 OF CHANNEL 30 (ISS TURN-ON
007188,000696:                                                                                                  #  REQUEST) IS DETECTED.  UPON ENTRY, ITURNON CHECKS IF A TURN-ON DELAY SEQUENCE HAS FAILED, AND IF SO, IT EXITS.
007189,000697:                                                                                                  #  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
007190,000698:                                                                                                  #  THAT TNONTEST WILL INITIATE THE ISS INITIALIZATION SEQUENCE.  IF OFF, THE TURN-ON DELAY SIGNAL, CHANNEL 12 BIT
007191,000699:                                                                                                  #  15, IS CHECKED AND IF IT IS ON, ITURNON EXITS.  IF THE DELAY SIGNAL IS OFF, PROGRAM ALARM 00207 IS ISSUED, BIT 2
007192,000700:                                                                                                  #  OF IMODES30 IS SET TO 1 AND THE PROGRAM EXITS.
007193,000701:                                                                                                  #           THE SETTING OF BIT 2 OF IMODES30 (ISS DELAY SEQUENCE FAIL) INHIBITS THIS ROUTINE AND IMUOP FROM
007194,000702:                                                                                                  #  PROCESSING ANY CHANGES.  THIS BIT WILL BE RESET BY THE ENDTNON ROUTINE WHEN THE CURRENT 90 SECOND DELAY PERIOD
007195,000703:                                                                                                  #  ENDS.
007196,000704: 
007197,000705:                                                                                                  #  CALLING SEQUENCE:  FROM IMUMOM WHEN ISS TURN-ON REQUEST CHANGES STATE.
007198,000706: 
007199,000707:                                                                                                  #  JOBS OR TASKS INITIATED:  NONE.
007200,000708: 
007201,000709:                                                                                                  #  SUBROUTINES CALLED:  ALARM, IF THE ISS TURN-ON REQUEST IS NOT PRESENT FOR 90 SECONDS.
007202,000710: 
007203,000711:                                                                                                  #  ERASABLE INITIALIZATION:  FRESH START AND RESTART SET BIT 15 OF CHANNEL 12 AND BITS 2 AND 7 OF IMODES30 TO 0,
007204,000712:                                                                                                  #  AND BIT 14 OF IMODES30 TO 1.
007205,000713: 
007206,000714:                                                                                                  #  ALARMS: PROGRAM ALARM 00207 IS ISSUED IF THE ISS TURN-ON REQUEST SIGNAL IS NOT PRESENT FOR 90 SECONDS.
007207,000715: 
007208,000716:                                                                                                  #  EXIT:  NXTIFAIL.
007209,000717: 
007210,000718:                                                                                                  #  OUTPUT:  BIT 7 OF IMODES30 TO START ISS INITIALIZATION, OR BIT 2 OF IMODES30 AND PROGRAM ALARM 00207 TO INDICATE
007211,000719:                                                                                                  #  A FAILED TURN-ON SEQUENCE.
007212,000720: 
007213,000721: 06,2533           34752        ITURNON            CAF      BIT2                                  #  IF DELAY REQUEST HAS GONE OFF
007214,000722: 06,2534           71277                           MASK     IMODES30                              #  PREMATURELY, DO NOT PROCESS ANY CHANGES
007215,000723: 06,2535           10000                           CCS      A                                     #  UNTIL THE CURRENT 90 SEC WAIT EXPIRES.
007216,000724: 06,2536           12225                           TCF      NXTIFAIL                              
007217,000725: 
007218,000726: 06,2537           34736                           CAF      BIT14                                 #  SEE IF JUST ON OR OFF.
007219,000727: 06,2540           71277                           MASK     IMODES30                              
007220,000728: 06,2541           00006                           EXTEND                                         
007221,000729: 06,2542           12556                           BZF      ITURNON2                              #  IF JUST ON.
007222,000730: 
007223,000731: 06,2543           34735                           CAF      BIT15                                 
007224,000732: 06,2544           00006                           EXTEND                                         #  SEE IF DELAY PRESENT DISCRETE HAS BEEN
007225,000733: 06,2545           02012                           RAND     CHAN12                                #  SENT.  IF SO, ACTION COMPLETE
007226,000734: 06,2546           00006                           EXTEND                                         
007227,000735: 06,2547           12551                           BZF      +2                                    
007228,000736: 06,2550           12225                           TCF      NXTIFAIL                              
007229,000737: 
007230,000738: 06,2551           34752                           CAF      BIT2                                  #  IF NOT, SET BIT TO INDICATE REQUEST NOT
007231,000739: 06,2552           27277                           ADS      IMODES30                              #  PRESENT FOR FULL DURATION.
007232,000740: 06,2553           05567                           TC       ALARM                                 
007233,000741: 06,2554           00207                           OCT      207                                   
007234,000742: 06,2555           12225                           TCF      NXTIFAIL                              
007235,000743: 

Page 174

007237,000745: 06,2556           41277        ITURNON2           CS       IMODES30                              #  SET BIT7 TO INDICATE WAIT OF 1 SAMPLE
007238,000746: 06,2557           74745                           MASK     BIT7                                  
007239,000747: 06,2560           27277                           ADS      IMODES30                              
007240,000748: 06,2561           32564                           CAF      RRINIT                                
007241,000749: 06,2562           54110                           TS       RADMODES                              
007242,000750: 06,2563           12225                           TCF      NXTIFAIL                              
007243,000751: 
007244,000752: 06,2564           00102        RRINIT             OCT      00102                                 
007245,000753: 

Page 175

007247,000755:                                                                                                  #  PROGRAM NAME:  IMUCAGE.
007248,000756: 
007249,000757:                                                                                                  #  FUNCTIONAL DESCRIPTION:  THIS PROGRAM PROCESSES CHANGES OF THE IMUCAGE INBIT, CHANNEL 30 BIT 11.  IF THE BIT
007250,000758:                                                                                                  #  CHANGES TO 0 (CAGE BUTTON PRESSED), THE ISS IS CAGED (ICDU ZERO + COARSE ALIGN + NO ATT LAMP) UNTIL THE
007251,000759:                                                                                                  #  ASTRONAUT SELECTS ANOTHER PROGRAM TO ALIGN THE ISS.  ANY PULSE TRAINS TO THE ICDU'S AND GYRO'S ARE TERMINATED,
007252,000760:                                                                                                  #  THE ASSOCIATED OUTCOUNTERS ARE ZEROED AND THE GYRO'S ARE DE-SELECTED.  NO ACTION OCCURS WHEN THE BUTTON IS
007253,000761:                                                                                                  #  RELEASED (INBIT CHANGES TO 1).
007254,000762: 
007255,000763:                                                                                                  #  CALLING SEQUENCE:  BY IMUMON WHEN IMU CAGE BIT CHANGES.
007256,000764: 
007257,000765:                                                                                                  #  JOBS OR TASKS INITIATED:  NONE.
007258,000766: 
007259,000767:                                                                                                  #  SUBROUTINES CALLED:  CAGESUB.
007260,000768: 
007261,000769:                                                                                                  #  ERASABLE INITIALIZATION:  FRESH START AND RESTART SET BIT 11 OF IMODES30 TO 1.
007262,000770: 
007263,000771:                                                                                                  #  ALARMS: NONE.
007264,000772: 
007265,000773:                                                                                                  #  EXIT:  NXTIFAIL.
007266,000774: 
007267,000775:                                                                                                  #  OUTPUT:  ISS CAGED, COUNTERS ZEROED, PULSE TRAINS TERMINATED AND NO ATT LAMP LIT.
007268,000776: 
007269,000777: 06,2565           10000        IMUCAGE            CCS      A                                     #  NO ACTION IF GOING OFF.
007270,000778: 06,2566           12361                           TCF      ISSZERO                               
007271,000779: 06,2567           43002                           CS       OCT77000                              #  TERMINATE ICDU,RCDU, GYRO PULSE TRAINS
007272,000780: 06,2570           00006                           EXTEND                                         
007273,000781: 06,2571           03014                           WAND     CHAN14                                
007274,000782: 
007275,000783: 06,2572           42776                           CS       OCT272                                #  KNOCK DOWN DISPLAY INERTIAL DATA, IMU
007276,000784: 06,2573           00006                           EXTEND                                         #  ERROR COUNTER ENABLE, ZERO ICDU, COARSE
007277,000785: 06,2574           03012                           WAND     CHAN12                                #  ALIGN ENABLE, RR ERROR COUNTER ENABLE.
007278,000786: 
007279,000787: 06,2575           44745                           CS       ENGONBIT                              #  INSURE ENGONFLG IS CLEAR.
007280,000788: 06,2576           70101                           MASK     FLAGWRD5                              
007281,000789: 06,2577           54101                           TS       FLAGWRD5                              
007282,000790: 06,2600           44355                           CS       PRIO30                                #  TURN ENGINE OFF.
007283,000791: 06,2601           00006                           EXTEND                                         
007284,000792: 06,2602           02011                           RAND     DSALMOUT                              
007285,000793: 06,2603           64736                           AD       BIT14                                 
007286,000794: 06,2604           00006                           EXTEND                                         
007287,000795: 06,2605           01011                           WRITE    DSALMOUT                              #  FORCE BIT14=1, BIT13=0.
007288,000796: 
007289,000797: 06,2606           02743                           TC       CAGESUB1                              
007290,000798: 
007291,000799: 06,2607           04674                           TC       IBNKCALL                              #  KNOCK DOWN TRACK, REFSMMAT, DRIFT FLAGS
007292,000800: 06,2610           17167                           CADR     RNDREFDR                              
007293,000801: 
007294,000802: 06,2611           44755                           CS       ZERO                                  
007295,000803: 06,2612           54050                           TS       CDUXCMD                               
007296,000804: 06,2613           54051                           TS       CDUYCMD                               

Page 176

007298,000806: 06,2614           54052                           TS       CDUZCMD                               
007299,000807: 06,2615           54047                           TS       GYROCMD                               
007300,000808: 
007301,000809: 06,2616           43001                           CS       OCT740                                #  HAVING WAITED AT LEAST 27 MCT FROM
007302,000810: 06,2617           00006                           EXTEND                                         #  GYRO PULSE TRAIN TERMINATION, WE CAN
007303,000811: 06,2620           03014                           WAND     CHAN14                                #  DE-SELECT THE GYROS
007304,000812: 06,2621           12225                           TCF      NXTIFAIL                              
007305,000813: 

Page 177

007307,000815:                                                                                                  #  PROGRAM NAME:  IMUOP.
007308,000816: 
007309,000817:                                                                                                  #  FUNCTIONAL DESCRIPTION:  THIS PROGRAM PROCESSES CHANGES IN THE ISS OPERATE DISCRETE, BIT 9 OF CHANNEL 30.
007310,000818:                                                                                                  #  IF THE INBIT CHANGES TO 0, INDICATING ISS ON, IMUOP GENERALLY SETS BIT 7 OF IMODES30 TO 1 TO REQUEST ISS
007311,000819:                                                                                                  #  INITIALIZATION VIA TNONTEST.  AN EXCEPTION IS DURING A FAILED ISS DELAY DURING WHICH BIT 2 OF IMODES30 IS SET
007312,000820:                                                                                                  #  TO 1 AND NO FURTHER INITIALIZATION IS REQUIRED.  WHEN THE INBIT CHANGES TO 1, INDICATING ISS OFF, IMUSEFLG IS
007313,000821:                                                                                                  #  TESTED TO SEE IF ANY PROGRAM WAS USING THE ISS.  IF SO, PROGRAM ALARM 00214 IS ISSUED.
007314,000822: 
007315,000823:                                                                                                  #  CALLING SEQUENCE:  BY IMUMON WHEN BIT 9 OF CHANNEL 30 CHANGES.
007316,000824: 
007317,000825:                                                                                                  #  JOBS OR TASKS INITIATED:  NONE.
007318,000826:                                                                                                  #  
007319,000827:                                                                                                  #  SUBROUTINES CALLED:  ALARM, IF ISS IS TURNED OFF WHILE IN USE.
007320,000828: 
007321,000829:                                                                                                  #  ERASABLE INITIALIZATION:  ON FRESH START AND RESTART, BIT 9 OF IMODES30 IS SET TO 1 EXCEPT WHEN THE GIMBAL LOCK
007322,000830:                                                                                                  #  LAMP IS ON, IN WHICH CASE IT IS SET TO 0.  THIS PREVENTS ICDU ZERO BY TNONTEST WITH THE ISS IN GIMBAL LOCK.
007323,000831: 
007324,000832:                                                                                                  #  ALARMS:  PROGRAM ALARM 00214 IF THE ISS IS TURNED OFF WHILE IN USE.
007325,000833: 
007326,000834:                                                                                                  #  EXIT:  NXTIFAIL.
007327,000835: 
007328,000836:                                                                                                  #  OUTPUT:  ISS INITIALIZATION REQUEST (IMODES30 BIT 7) OR PROGRAM ALARM 00214.
007329,000837: 
007330,000838: 06,2622           00006        IMUOP              EXTEND                                         
007331,000839: 06,2623           12643                           BZF      IMUOP2                                
007332,000840: 
007333,000841: 06,2624           41300                           CS       IMODES33                              #  DISABLE DAP
007334,000842: 06,2625           74746                           MASK     BIT6                                  
007335,000843: 06,2626           27300                           ADS      IMODES33                              
007336,000844: 
007337,000845: 06,2627           04674                           TC       IBNKCALL                              #  KNOCK DOWN TRACK, REFSMMAT, DRIFT FLAGS
007338,000846: 06,2630           17167                           CADR     RNDREFDR                              
007339,000847: 
007340,000848: 06,2631           42777                           CS       BITS7&8                               #  KNOCK DOWN RENDEZVOUS, IMUUSE FLAGS
007341,000849: 06,2632           70074                           MASK     FLAGWRD0                              
007342,000850: 06,2633           56074                           XCH      FLAGWRD0                              #  IF GOING OFF, ALARM IF PROG USING IMU.
007343,000851: 06,2634           40000                           COM                                            
007344,000852: 06,2635           74744                           MASK     IMUSEFLG                              
007345,000853: 06,2636           10000                           CCS      A                                     
007346,000854: 06,2637           12225                           TCF      NXTIFAIL                              
007347,000855: 
007348,000856: 06,2640           05567                           TC       ALARM                                 
007349,000857: 06,2641           00214                           OCT      214                                   
007350,000858: 06,2642           12225                           TCF      NXTIFAIL                              
007351,000859: 
007352,000860: 06,2643           34752        IMUOP2             CAF      BIT2                                  #  SEE IF FAILED ISS TURN-ON SEQ IN PROG.
007353,000861: 06,2644           71277                           MASK     IMODES30                              
007354,000862: 06,2645           10000                           CCS      A                                     
007355,000863: 06,2646           12225                           TCF      NXTIFAIL                              #  IF SO, DONT PROCESS UNTIL PRESENT 90
007356,000864: 06,2647           12556                           TCF      ITURNON2                              #  SECONDS EXPIRES.
007357,000865: 

Page 178

007359,000867:                                                                                                  #  PROGRAM NAME:  PIPFAIL
007360,000868: 
007361,000869:                                                                                                  #  FUNCTIONAL DESCRIPTION:  THIS PROGRAM PROCESSES CHANGES OF BIT 13 OF CHANNEL 33, PIPA FAIL.  IT SETS BIT 10 OF
007362,000870:                                                                                                  #  IMODES30 TO AGREE.  IT CALLS SETISSW IN CASE A PIPA FAIL NECESSITATES AN ISS WARNING.  IF NOT,I.E., IMODES30
007363,000871:                                                                                                  #  BIT 1 = 1, AND A PIPA FAIL IS PRESENT AND THE ISS IS NOT BEING INITIALIZED, PROGRAM ALARM 00212 IS ISSUED.
007364,000872: 
007365,000873:                                                                                                  #  CALLING SEQUENCE:  BY C33TEST ON CHANGES OF CHANNEL 33 BIT 13.
007366,000874: 
007367,000875:                                                                                                  #  JOBS OR TASKS INITIATED:  NONE.
007368,000876: 
007369,000877:                                                                                                  #  SUBROUTINES CALLED:  1) SETISSW, AND 2) ALARM (SEE FUNCTIONAL DESCRIPTION).
007370,000878: 
007371,000879:                                                                                                  #  ERASABLE INITIALIZATION:  SEE IMUMON FOR INITIALIZATION OF IMODES30.  THE RELAVANT BITS ARE 5, 7, 8, 9, AND 10.
007372,000880: 
007373,000881:                                                                                                  #  ALARMS:  PROGRAM ALARM 00212 IF PIPA FAIL IS PRESENT BUT NEITHER ISS WARNING IS TO BE ISSUED NOR THE ISS IS
007374,000882:                                                                                                  #  BEING INITIALIZED.
007375,000883: 
007376,000884:                                                                                                  #  EXIT:  NXTFL33.
007377,000885: 
007378,000886:                                                                                                  #  OUTPUT:  PROGRAM ALARM 00212 AND ISS WARNING MAINTENANCE.
007379,000887: 
007380,000888: 06,2650           10000        PIPFAIL            CCS      A                                     #  SET BIT10 IN IMODES30 SO ALL ISS WARNING
007381,000889: 06,2651           34742                           CAF      BIT10                                 #  INFO IS IN ONE REGISTER.
007382,000890: 06,2652           57277                           XCH      IMODES30                              
007383,000891: 06,2653           73004                           MASK     -BIT10                                
007384,000892: 06,2654           27277                           ADS      IMODES30                              
007385,000893: 
007386,000894: 06,2655           02703                           TC       SETISSW                               
007387,000895: 
007388,000896: 06,2656           41277                           CS       IMODES30                              #  IF PIP FAIL DOESNT LIGHT ISS WARNING, DO
007389,000897: 06,2657           74753                           MASK     BIT1                                  #  A PROGRAM ALARM IF IMU OPERATING BUT NOT
007390,000898: 06,2660           10000                           CCS      A                                     #  CAGED OR BEING TURNED ON.
007391,000899: 06,2661           12432                           TCF      NXTFL33                               
007392,000900: 
007393,000901: 06,2662           31277                           CA       IMODES30                              
007394,000902: 06,2663           73000                           MASK     OCT1720                               
007395,000903: 06,2664           10000                           CCS      A                                     
007396,000904: 06,2665           12432                           TCF      NXTFL33                               #  ABOVE CONDITION NOT MET.
007397,000905: 
007398,000906: 06,2666           05567                           TC       ALARM                                 
007399,000907: 06,2667           00212                           OCT      212                                   
007400,000908: 06,2670           12432                           TCF      NXTFL33                               
007401,000909: 

Page 179

007403,000911:                                                                                                  #  PROGRAM NAMES:  DNTMFAST, UPTMFAST
007404,000912: 
007405,000913:                                                                                                  #  FUNCTIONAL DESCRIPTION:  THESE PROGRAMS PROCESS CHANGES OF BITS 12 AND 11 OF CHANNEL 33.  IF A BIT CHANGES TO A
007406,000914:                                                                                                  #  0, A PROGRAM ALARM IS ISSUED.  THE ALARMS ARE:
007407,000915: 
007408,000916:                                                                                                  #        BIT     ALARM   CAUSE
007409,000917:                                                                                                  #        ---     -----   -----
007410,000918:                                                                                                  #         12     01105   DOWNLINK TOO FAST
007411,000919:                                                                                                  #         11     01106   UPLINK TOO FAST
007412,000920: 
007413,000921:                                                                                                  #  CALLING SEQUENCE:  BY C33TEST ON A BIT CHANGE.
007414,000922: 
007415,000923:                                                                                                  #  SUBROUTINES CALLED:  ALARM, IF A BIT CHANGES TO A 0.
007416,000924: 
007417,000925:                                                                                                  #  ERASABLE INITIALIZATION:  FRESH START OR RESTART, BITS 12 AND 11 OF IMODES33 ARE SET TO 1.
007418,000926: 
007419,000927:                                                                                                  #  ALARMS:  SEE FUNCTIONAL DESCRIPTION.
007420,000928: 
007421,000929:                                                                                                  #  EXIT:  NXTFL33.
007422,000930: 
007423,000931:                                                                                                  #  OUTPUT:  PROGRAM ALARM ON A BIT CHANGE TO 0.
007424,000932: 
007425,000933: 06,2671           10000        DNTMFAST           CCS      A                                     #  DO PROG ALARM IF TM TOO FAST.
007426,000934: 06,2672           12432                           TCF      NXTFL33                               
007427,000935: 
007428,000936: 06,2673           05567                           TC       ALARM                                 
007429,000937: 06,2674           01105                           OCT      1105                                  
007430,000938: 06,2675           12432                           TCF      NXTFL33                               
007431,000939: 
007432,000940: 06,2676           10000        UPTMFAST           CCS      A                                     #  SAME AS DNLINK TOO FAST WITH DIFFERENT
007433,000941: 06,2677           12432                           TCF      NXTFL33                               #  ALARM CODE.
007434,000942: 
007435,000943: 06,2700           05567                           TC       ALARM                                 
007436,000944: 06,2701           01106                           OCT      1106                                  
007437,000945: 06,2702           12432                           TCF      NXTFL33                               

Page 180

007439,000947:                                                                                                  #  PROGRAM NAME:  SETISSW
007440,000948: 
007441,000949:                                                                                                  #  FUNCTIONAL DESCRIPTION:  THIS PROGRAM TURNS THE ISS WARNING LAMP ON AND OFF (CHANNEL 11 BIT 1 = 1 FOR ON,
007442,000950:                                                                                                  #  0 FOR OFF) DEPENDING ON THE STATUS OF IMODES30 BITS 13 (IMU FAIL) AND 4 (INHIBIT IMU FAIL), 12 (ICDU FAIL) AND
007443,000951:                                                                                                  #  3 (INHIBIT ICDU FAIL), AND 10 (PIPA FAIL) AND 1 (INHIBIT PIPA FAIL).  THE LAMP IS LEFT ON IF A LAMP TEST IS IN
007444,000952:                                                                                                  #  PROGRESS.
007445,000953: 
007446,000954:                                                                                                  #  CALLING SEQUENCE:  CALLED BY IMUMON ON CHANGES TO IMU FAIL AND ICDU FAIL.  CALLED BY IFAILOK AND PFAILOK UPON
007447,000955:                                                                                                  #  REMOVAL OF THE FAIL INHIBITS.  CALLED BY PIPFAIL WHEN THE PIPA FAIL DISCRETE CHANGES.  IT IS CALLED BY PIPUSE
007448,000956:                                                                                                  #  SINCE THE PIPA FAIL PROGRAM ALARM MAY NECESSITATE AN ISS WARNING, AND LIKEWISE BY PIPFREE WHEN THE ALARM DEPARTS
007449,000957:                                                                                                  #  AND IT IS CALLED BY IMUZERO3 AND ISSUP AFTER THE FAIL INHIBITS HAVE BEEN REMOVED.
007450,000958: 
007451,000959:                                                                                                  #  JOBS OR TASKS INITIATED:  NONE.
007452,000960: 
007453,000961:                                                                                                  #  SUBROUTINES CALLED:  NONE.
007454,000962: 
007455,000963:                                                                                                  #  ERASABLE INITIALIZATION:
007456,000964: 
007457,000965:                                                                                                  #           1) IMODES30 - SEE IMUMON.
007458,000966:                                                                                                  #           2) IMODES33 BIT 1 = 0 (LAMP TEST NOT IN PROGRESS).
007459,000967: 
007460,000968:                                                                                                  #  ALARMS:  ISS WARNING.
007461,000969: 
007462,000970:                                                                                                  #  THE FOLLOWING PROGRAM ALARMS WILL SHOW WHICH FAILURE CAUSED THE ISS WARN
007463,000971:                                                                                                  #        PROGRAM ALARM 00777     PIPA FAIL
007464,000972:                                                                                                  #        PROGRAM ALARM 03777     ICDU FAIL
007465,000973:                                                                                                  #        PROGRAM ALARM 04777     ICDU , PIPA FAILS
007466,000974:                                                                                                  #        PROGRAM ALARM 07777     IMU FAIL
007467,000975:                                                                                                  #        PROGRAM ALARM 10777     IMU , PIPA FAILS
007468,000976:                                                                                                  #        PROGRAM ALARM 13777     IMU , ICDU FAILS
007469,000977:                                                                                                  #        PROGRAM ALARM 14777     IMU , ICDU , PIPA FAILS
007470,000978: 
007471,000979:                                                                                                  #  EXIT: VIA Q.
007472,000980: 
007473,000981:                                                                                                  #  OUTPUT: ISS WARNING LAMP SET PROPERLY.
007474,000982: 
007475,000983: 06,2703           34761        SETISSW            CAF      OCT15                                 #  SET ISS WARNING USING THE FAIL BITS IN
007476,000984: 06,2704           71277                           MASK     IMODES30                              #  BITS 13, 12, AND 10 OF IMODES30 AND THE
007477,000985: 06,2705           00006                           EXTEND                                         #  FAILURE INHIBIT BITS IN POSITIONS
007478,000986: 06,2706           74742                           MP       BIT10                                 #  4, 3, AND 1.
007479,000987: 06,2707           31277                           CA       IMODES30                              
007480,000988: 06,2710           00006                           EXTEND                                         
007481,000989: 06,2711           04001                           ROR      LCHAN                                 #  0 INDICATES FAILURE
007482,000990: 06,2712           40000                           COM                                            
007483,000991: 06,2713           75025                           MASK     OCT15000                              
007484,000992: 06,2714           10000                           CCS      A                                     
007485,000993: 06,2715           12726                           TCF      ISSWON                                #  FAILURE.
007486,000994: 
007487,000995: 06,2716           34753        ISSWOFF            CAF      BIT1                                  #  DONT TURN OFF ISS WARNING IF LAMP TEST
007488,000996: 06,2717           71300                           MASK     IMODES33                              #  IN PROGRESS.

Page 181

007490,000998: 06,2720           10000                           CCS      A                                     
007491,000999: 06,2721           00002                           TC       Q                                     
007492,001000: 
007493,001001: 06,2722           44753                           CS       BIT1                                  
007494,001002: 06,2723           00006                           EXTEND                                         
007495,001003: 06,2724           03011                           WAND     DSALMOUT                              
007496,001004: 06,2725           00002                           TC       Q                                     
007497,001005: 
007498,001006: 06,2726           00006        ISSWON             EXTEND                                         
007499,001007: 06,2727           22066                           QXCH     ITEMP6                                
007500,001008: 06,2730           05734                           TC       VARALARM                              #  TELL EVERYONE WHAT CAUSED THE ISS WARNING
007501,001009: 06,2731           34753                           CAF      BIT1                                  
007502,001010: 06,2732           00006                           EXTEND                                         
007503,001011: 06,2733           05011                           WOR      DSALMOUT                              
007504,001012: 06,2734           00066                           TC       ITEMP6                                
007505,001013: 
007506,001014: 06,2735           43003        CAGESUB            CS       BITS6&15                              #  SET OUTBITS AND INTERNAL FLAGS FOR
007507,001015: 06,2736           00006                           EXTEND                                         #  SYSTEM TURN-ON OR CAGE. DISABLE THE
007508,001016: 06,2737           03012                           WAND     CHAN12                                #  ERROR COUNTER AND REMOVE IMU DELAY COMP.
007509,001017: 06,2740           34763                           CAF      BITS4&5                               #  SEND ZERO AND COARSE.
007510,001018: 06,2741           00006                           EXTEND                                         
007511,001019: 06,2742           05012                           WOR      CHAN12                                
007512,001020: 
007513,001021: 06,2743           41035        CAGESUB1           CS       DSPTAB     +11D                       #  TURN ON NO ATT LAMP
007514,001022: 06,2744           72773                           MASK     OC40010                               
007515,001023: 06,2745           27035                           ADS      DSPTAB     +11D                       
007516,001024: 
007517,001025: 06,2746           41277        CAGESUB2           CS       IMODES30                              #  SET FLAGS TO INDICATE CAGING OR TURN-ON
007518,001026: 06,2747           72775                           MASK     OCT75                                 #      AND INHIBIT ALL ISS WARNING INFO
007519,001027: 06,2750           27277                           ADS      IMODES30                              
007520,001028: 
007521,001029: 06,2751           41300                           CS       IMODES33                              #  DISABLE DAP AUTO AND HOLD MODES
007522,001030: 06,2752           74746                           MASK     BIT6                                  
007523,001031: 06,2753           27300                           ADS      IMODES33                              
007524,001032: 
007525,001033: 06,2754           00002                           TC       Q                                     
007526,001034: 
007527,001035: 06,2755  06,2703               IMUFAIL            EQUALS   SETISSW                               
007528,001036: 06,2755  06,2703               ICDUFAIL           EQUALS   SETISSW                               
007529,001037: 

Page 182

007531,001039:                                                                                                  #  JUMP TABLES AND CONSTANTS.
007532,001040: 
007533,001041: 06,2755           12533        IFAILJMP           TCF      ITURNON                               #  CHANNEL 30 DISPATCH.
007534,001042: 06,2756           12703                           TCF      IMUFAIL                               
007535,001043: 06,2757           12703                           TCF      ICDUFAIL                              
007536,001044: 06,2760           12565                           TCF      IMUCAGE                               
007537,001045: 06,2761           76400        30RDMSK            OCT      76400                                 #  (BIT 10 NOT SAMPLED HERE).
007538,001046: 06,2762           12622                           TCF      IMUOP                                 
007539,001047: 
007540,001048: 06,2763           12650        C33JMP             TCF      PIPFAIL                               #  CHANNEL 33 DISPATCH.
007541,001049: 06,2764           12671                           TCF      DNTMFAST                              
007542,001050: 06,2765           12676                           TCF      UPTMFAST                              
007543,001051: 
007544,001052:                                                                                                  #  SUBROUTINE TO SKIP IF LAMP TEST NOT IN PROGRESS.
007545,001053: 06,2766           41300        LAMPTEST           CS       IMODES33                              #  BIT 1 OF IMODES33 = 1 IF LAMP TEST IN
007546,001054: 06,2767           74753                           MASK     BIT1                                  #  PROGRESS.
007547,001055: 06,2770           10000                           CCS      A                                     
007548,001056: 06,2771           24002                           INCR     Q                                     
007549,001057: 06,2772           00002                           TC       Q                                     
007550,001058: 
007551,001059: 06,2773     5026               33RDMSK            EQUALS   PRIO16                                
007552,001060: 06,2773           40010        OC40010            OCT      40010                                 
007553,001061: 06,2774           00054        OCT54              OCT      54                                    
007554,001062: 06,2775           00075        OCT75              OCT      75                                    
007555,001063: 06,2776           00272        OCT272             OCT      00272                                 
007556,001064: 06,2777           00300        BITS7&8            OCT      300                                   
007557,001065: 06,3000           01720        OCT1720            OCT      1720                                  
007558,001066: 06,3001           00740        OCT740             OCT      00740                                 
007559,001067: 06,3002     5025               OCT15000           EQUALS   PRIO15                                
007560,001068: 06,3002           77000        OCT77000           OCT      77000                                 
007561,001069: 06,3003           40040        BITS6&15           OCT      40040                                 
007562,001070: 06,3004           76777        -BIT10             OCT      -1000                                 
007563,001071: 
007564,001072: 06,3005           21450        90SECS             DEC      9000       B-14                       
007565,001073: 06,3006     5741               120MS              =        OCT14                                 #  (DEC12)
007566,001074: 06,3006     5270               GLOCKOK            EQUALS   RESUME                                
007567,001075: 

Page 183

007569,001077:                                                                                                  #  PROGRAM NAME_  RRAUTCHK
007570,001078: 
007571,001079:                                                                                                  #  FUNCTIONAL DESCRIPTION_
007572,001080:                                                                                                  #  RRAUTCHK IS THE RENDEZVOUS RADAR INBIT MONITOR. INITIALLY THE RR
007573,001081:                                                                                                  #  POWER ON AUTO (CHAN 33 BIT 2) INBIT IS CHECKED.  IF NO CHANGE, THE
007574,001082:                                                                                                  #  PROGRAM EXITS TO RRCDUCHK. IF A CHANGE, RADMODES IS UPDATED
007575,001083:                                                                                                  #  AND A CHECK MADE IF RR POWER HAS JUST COME ON. IF JUST OFF, A CHECK
007576,001084:                                                                                                  #  IS MADE TO SEE IF A PROGRAM WAS USING THE RR (STATE BIT 7). IF NO,
007577,001085:                                                                                                  #  THE PROGRAM EXITS TO RRCDUCHK. IF YES, PROGRAM ALARM 00514
007578,001086:                                                                                                  #  IS REQUESTED BEFORE EXITING TO RRCDUCHK. IF RR POWER HAS JUST COME
007579,001087:                                                                                                  #  ON, A CHECK IS MADE TO SEE IF A PROGRAM WAS USING THE RR (STATE BIT 7).
007580,001088:                                                                                                  #  IF YES, THE PROGRAM EXITS TO RRCDUCHK WITHOUT REQUESTING THE TURN-ON
007581,001089:                                                                                                  #  SEQUENCE. IF NO, RADMODES IS UPDATED TO INDICATE RR CDU ZERO AND
007582,001090:                                                                                                  #  RR TURN-ON SEQUENCE (BITS 13, 1). A 10 MILLISECOND WAITLIST CALL
007583,001091:                                                                                                  #  IS THEN SET FOR RRTURNON BEFORE THE PROGRAM EXITS TO NORRGMON.
007584,001092: 
007585,001093:                                                                                                  #  CALLING SEQUENCE_
007586,001094:                                                                                                  #  T4RUPT EVERY 480 MILLISECONDS
007587,001095: 
007588,001096:                                                                                                  #  ERASABLE INITIALIZATION REQUIRED_
007589,001097:                                                                                                  #  RADMODES, STATE
007590,001098: 
007591,001099:                                                                                                  #  SUBROUTINES CALLED_
007592,001100:                                                                                                  #  WAITLIST
007593,001101: 
007594,001102:                                                                                                  #  JOBS OR TASKS INITIATED_
007595,001103:                                                                                                  #  RRTURNON
007596,001104: 
007597,001105:                                                                                                  #  ALARMS_  PROGRAM ALARM 00514 - RADAR GOES OUT OF AUTO MODE WHILE BEING
007598,001106:                                                                                                  #  USED
007599,001107: 
007600,001108:                                                                                                  #  EXIT_  RRCDUCHK, NORRGMON
007601,001109: 
007602,001110: 06,3006           30110        RRAUTCHK           CA       RADMODES                              #  SEE IF CHANGE IN RR AUTO MODE BIT.
007603,001111: 06,3007           00006                           EXTEND                                         
007604,001112: 06,3010           06033                           RXOR     CHAN33                                
007605,001113: 06,3011           74752                           MASK     AUTOMBIT                              
007606,001114: 06,3012           00006                           EXTEND                                         
007607,001115: 06,3013           13037                           BZF      RRCDUCHK                              
007608,001116: 
007609,001117: 06,3014           22110                           LXCH     RADMODES                              #  UPDATE RADMODES.
007610,001118: 06,3015           00006                           EXTEND                                         
007611,001119: 06,3016           06001                           RXOR     LCHAN                                 
007612,001120: 06,3017           73033                           MASK     OCT05776                              #  CLR CONT. DES., REMODE, REPOS, CDUZERO,
007613,001121: 06,3020           54110                           TS       RADMODES                              #    AND TURNON BITS.
007614,001122: 06,3021           74752                           MASK     BIT2                                  #  SEE IF JUST ON.
007615,001123: 06,3022           10000                           CCS      A                                     
007616,001124: 06,3023           13034                           TCF      RRCDUCHK   -3                         #  OFF.  GO DISABLE RR CDU ERROR COUNTERS.
007617,001125: 06,3024           37666                           CA       OCT10001                              #  SET RRCDUZRO AND TURNON BITS.
007618,001126: 06,3025           26110                           ADS      RADMODES                              
007619,001127: 

Page 184

007621,001129: 06,3026           34753                           CAF      ONE                                   
007622,001130: 06,3027           05203                           TC       WAITLIST                              
007623,001131: 06,3030  E7,1456                                  EBANK=   LOSCOUNT                              
007624,001132: 06,3030           02073 52107                     2CADR    RRTURNON                              
007625,001133: 
007626,001134: 06,3032           13126                           TCF      NORRGMON                              
007627,001135: 
007628,001136: 06,3033           05776        OCT05776           OCT      5776                                  
007629,001137: 

Page 185

007631,001139:                                                                                                  #  PROGRAM NAME_ RRCDUCHK
007632,001140: 
007633,001141:                                                                                                  #  FUNCTIONAL DESCRIPTION_
007634,001142:                                                                                                  #  RRCDUCHK CHECKS FOR RR CDU FAIL (CHAN 30 BIT 7). INITIALLY THE
007635,001143:                                                                                                  #  RR CDU FAIL BIT IS SAMPLED (CHAN 30 BIT 7). IF NO CHANGE, THE
007636,001144:                                                                                                  #  PROGRAM EXITS TO RRGIMON. IF A CHANGE, THE RR AUTO MODE
007637,001145:                                                                                                  #  (RADMODES BIT 2) BIT IS CHECKED. IF NOT IN RR AUTO MODE, THE
007638,001146:                                                                                                  #  PROGRAM EXITS TO NORRGMON. IF IN AUTO MODE, RADMODES BIT 7
007639,001147:                                                                                                  #  (RR CDU OK) IS UPDATED AND IF P-20 IS OPERATING PROGRAM ALARM 00515 IS
007640,001148:                                                                                                  #  REQUESTED. CONTROL IS TRANSFERRED TO SETTRKF TO UPDATE
007641,001149:                                                                                                  #  THE TRACKER FAIL LAMP (DSPTAB+11D BIT 8). CONTROL RETURNS TO
007642,001150:                                                                                                  #  RRGIMON.
007643,001151: 
007644,001152:                                                                                                  #  CALLING SEQUENCE_
007645,001153:                                                                                                  #  EVERY 480 MILLISECONDS FROM RRAUTCHK (VIA T4RUPT) UNLESS A
007646,001154:                                                                                                  #  TURN-ON SEQUENCE HAS JUST BEEN INITIATED.
007647,001155: 
007648,001156:                                                                                                  #  ERASABLE INITIALIZATION REQUIRED_
007649,001157:                                                                                                  #  RADMODES
007650,001158: 
007651,001159:                                                                                                  #  SUBROUTINES CALLED_
007652,001160:                                                                                                  #  SETTRKF
007653,001161: 
007654,001162:                                                                                                  #  JOBS OR TASKS INITIATED_
007655,001163:                                                                                                  #  NONE
007656,001164: 
007657,001165:                                                                                                  #  ALARMS_
007658,001166:                                                                                                  #  TRACKER FAIL
007659,001167:                                                                                                  #  PROGRAM ALARM 00515 - RRCDU FAIL DURING P-20
007660,001168: 
007661,001169:                                                                                                  #  EXIT_
007662,001170:                                                                                                  #  RRGIMON, NORRGMON
007663,001171: 
007664,001172: 06,3034           44752                 -3        CS       BIT2                                  
007665,001173: 06,3035           00006                           EXTEND                                         
007666,001174: 06,3036           03012                           WAND     CHAN12                                #  AT TURNON, DISABLE CDU ERROR COUNTERS.
007667,001175: 
007668,001176: 06,3037           30110        RRCDUCHK           CA       RADMODES                              #  LAST SAMPLED BIT IN RADMODES.
007669,001177: 06,3040           00006                           EXTEND                                         
007670,001178: 06,3041           06030                           RXOR     CHAN30                                
007671,001179: 06,3042           74745                           MASK     RCDUFBIT                              
007672,001180: 06,3043           00006                           EXTEND                                         
007673,001181: 06,3044           13071                           BZF      RRGIMON                               
007674,001182: 
007675,001183: 06,3045           34752                           CAF      AUTOMBIT                              #  IF RR NOT IN AUTO MODE, DON'T CHANGE BIT
007676,001184: 06,3046           70110                           MASK     RADMODES                              #  7 OF RADMODES. IF THIS WERE NOT DONE,
007677,001185: 06,3047           10000                           CCS      A                                     #  THE TRACKER FAIL MIGHT COME ON WHEN
007678,001186: 06,3050           13126                           TCF      NORRGMON                              #  JUST READING LR DATA.
007679,001187: 
007680,001188: 06,3051           34745                           CAF      RCDUFBIT                              #  SET BIT 7 OF RADMODES FOR SETTRKF.

Page 186

007682,001190: 06,3052           22110                           LXCH     RADMODES                              #  UPDATE RADMODES.
007683,001191: 06,3053           00006                           EXTEND                                         
007684,001192: 06,3054           06001                           RXOR     L                                     
007685,001193: 06,3055           54110                           TS       RADMODES                              
007686,001194: 
007687,001195: 06,3056           30110                           CA       RADMODES                              #  DID RR CDU FAIL
007688,001196: 06,3057           74615                           MASK     13,7,2                                #  CDU ZERO+ CDUFAIL+ RR AUTO                       
007689,001197: 06,3060           10000                           CCS      A                                     
007690,001198: 06,3061           13070                           TCF      TRKFLCDU                              #  NO
007691,001199: 06,3062           40074                           CS       FLAGWRD0                              #  RNDVFLG P20 OR P22 OPERATING
007692,001200: 06,3063           74745                           MASK     RNDVZBIT                              
007693,001201: 06,3064           10000                           CCS      A                                     
007694,001202: 06,3065           13070                           TCF      TRKFLCDU                              #  NO
007695,001203: 06,3066           05567                           TC       ALARM                                 #  YES
007696,001204: 06,3067           00515                           OCT      00515                                 
007697,001205: 06,3070           04564        TRKFLCDU           TC       SETTRKF                               #  UPDATE TRACKER FAIL LAMP ON DSKY.
007698,001206: 

Page 187

007700,001208:                                                                                                  #  PROGRAM NAME_  RRGIMON                                                E AUTO MODE EXCEPT WHEN THE RR CDUS ARE
007701,001209: 
007702,001210:                                                                                                  #  FUNCTIONAL DESCRIPTION_                                               TTER IS INITIATED BY THIS MONITOR WHEN
007703,001211:                                                                                                  #  RRGIMON IS THE RR GIMBAL LIMIT MONITOR. INITIALLY THE FOLLOWING IS    ED TO DRIVE THE GIMBALS TO T = 0 AND
007704,001212:                                                                                                  #  CHECKED_ REMODE, RR CDU:S BEING ZEROED, REPOSITION, AND RR
007705,001213:                                                                                                  #  NOT IN AUTO MODE (RADMODES BITS 14, 13, 11 2). IF ANY OF THESE
007706,001214:                                                                                                  #  EXIST THE PROGRAM EXITS TO GPMATRIX. IF NONE ARE PRESENT RRLIMCHK
007707,001215:                                                                                                  #  IS CALLED TO SEE IF THE PRESENT RR CDU ANGLES (OPTY, OPTX) ARE WITHIN
007708,001216:                                                                                                  #  THE LIMITS OF THE CURRENT MODE. IF WITHIN LIMITS, THE PROGRAM EXITS
007709,001217:                                                                                                  #  TO NORRGMON. IF NOT WITHIN LIMITS, THE REPOSITION FLAG (RADMODES
007710,001218:                                                                                                  #  BIT 11) IS SET, THE RR AUTO TRACKER AND RR ERROR COUNTER
007711,001219:                                                                                                  #  (CHAN 12 BITS 14, 2) ARE DISABLED, AND A 20 MILLISECOND WAITLIST
007712,001220:                                                                                                  #  CALL IS SET FOR DORREPOS AFTER WHICH THE PROGRAM EXITS TO NORRGMON.
007713,001221: 
007714,001222:                                                                                                  #  CALLING SEQUENCE_
007715,001223:                                                                                                  #  EVERY 480 MILLISECONDS FROM RRCDUCHK (VIA T4RUPT) UNLESS TURN-ON
007716,001224:                                                                                                  #  HAS JUST BEEN INITIATED VIA RRAUTCHK OR IF THERE HAS BEEN A CHANGE IN
007717,001225:                                                                                                  #  THE RR CDU FAIL BIT (CHAN 30 BIT 7) AND THE RR IS NOT IN THE AUTO MODE
007718,001226:                                                                                                  #  (RADMODES BIT 2).
007719,001227: 
007720,001228:                                                                                                  #  ERASABLE INITIALIZATION_  RADMODES
007721,001229: 
007722,001230:                                                                                                  #  SUBROUTINES CALLED_
007723,001231:                                                                                                  #  RRLIMCHK, WAITLIST
007724,001232: 
007725,001233:                                                                                                  #  JOBS OR TASKS INITIATED_
007726,001234:                                                                                                  #  DORREPOS
007727,001235: 
007728,001236:                                                                                                  #  ALARMS_
007729,001237:                                                                                                  #  NONE
007730,001238: 
007731,001239:                                                                                                  #  EXIT_
007732,001240:                                                                                                  #  NORRGMON
007733,001241: 
007734,001242: 06,3071           30101        RRGIMON            CAE      FLAGWRD5                              #  IS NO ANGLE MONITOR FLAG SET
007735,001243: 06,3072           74750                           MASK     NORRMBIT                              
007736,001244: 06,3073           10000                           CCS      A                                     
007737,001245: 06,3074           13126                           TCF      NORRGMON                              #  YES - SKIP LIMIT CHECK
007738,001246: 06,3075           40103                           CS       FLAGWRD7                              #  IS SERVICER RUNNING?
007739,001247: 06,3076           74747                           MASK     AVEGFBIT                              
007740,001248: 06,3077           10000                           CCS      A                                     
007741,001249: 06,3100           13105                           TCF      +5                                    #  NO.  DO R25
007742,001250: 06,3101           30102                           CA       FLAGWRD6                              #  YES.  IS MUNFLAG SET?
007743,001251: 06,3102           74744                           MASK     MUNFLBIT                              
007744,001252: 06,3103           10000                           CCS      A                                     
007745,001253: 06,3104           13126                           TCF      NORRGMON                              #  YES.  DON'T DO R25
007746,001254: 06,3105           33135                 +5        CAF      OCT32002                              #  INHIBIT BY REMODE,ZEROING,MONITOR.
007747,001255: 06,3106           70110                           MASK     RADMODES                              #  OR RR NOT IN AUTO.
007748,001256: 06,3107           10000                           CCS      A                                     
007749,001257: 06,3110           13126                           TCF      NORRGMON                              

Page 188

007751,001259: 06,3111           04523                           TC       RRLIMCHK                              #  SEE IF ANGLES IN LIMITS.
007752,001260: 06,3112           00035                           ADRES    CDUT                                  
007753,001261: 
007754,001262: 06,3113           13115                           TCF      MONREPOS                              
007755,001263: 
007756,001264: 06,3114           13126                           TCF      NORRGMON                              #  (ADDITIONAL CODING MAY GO HERE).
007757,001265: 
007758,001266: 06,3115           34741        MONREPOS           CAF      REPOSBIT                              #  SET FLAG TO SHOW REPOSITION IN PROGRESS.
007759,001267: 06,3116           26110                           ADS      RADMODES                              
007760,001268: 
007761,001269: 06,3117           43136                           CS       OCT20002                              #  DISABLE TRACKER AND ERROR COUNTER.
007762,001270: 06,3120           00006                           EXTEND                                         
007763,001271: 06,3121           03012                           WAND     CHAN12                                
007764,001272: 
007765,001273: 06,3122           34752                           CAF      TWO                                   
007766,001274: 06,3123           05203                           TC       WAITLIST                              
007767,001275: 06,3124  E7,1456                                  EBANK=   LOSCOUNT                              
007768,001276: 06,3124           02140 52107                     2CADR    DORREPOS                              
007769,001277: 
007770,001278: 06,3126           30110        NORRGMON           CA       RADMODES                              #  IF SELECT SWITCH IS NOT IN LGC, SEND RR
007771,001279: 06,3127           74752                           MASK     AUTOMBIT                              #   CDU ZERO BIT TO PREVENT MEMORY CYCLE
007772,001280: 06,3130           10000                           CCS      A                                     #   SNATCHING BY MANIC RR CDUS.  BIT2 OF
007773,001281: 06,3131           13132                           NOOP                                           #   RADMODES AGREES WITH BIT2 OF CHANNEL
007774,001282: 06,3132           00006                           EXTEND                                         #   33.  FOR THIS CODING, WHICH ASSUMES
007775,001283: 06,3133           05012                           WOR      CHAN12                                #   AUTOMBIT = BIT2, THANKS TO HUGH B-S.
007776,001284: 06,3134           13140                           TCF      ENDRRMON                              
007777,001285: 
007778,001286: 06,3135  06,3140               ENDRRMON           EQUALS   DAPT4S                                
007779,001287: 
007780,001288: 06,3135           32002        OCT32002           OCT      32002                                 
007781,001289: 06,3136           20002        OCT20002           OCT      20002                                 
007782,001290: 06,3137           02100        OCT02100           OCT      02100                                 #  P20, P22 MASK BITS
007783,001291: 

Page 189

007785,001293:                                                                                                  #  PROGRAM NAME: GPMATRIX (DAPT4S) MOD. NO. 2 DATE: OCTOBER 27, 1966
007786,001294: 
007787,001295:                                                                                                  #  AUTHOR: JONATHAN D. ADDELSTON (ADAMS ASSOCIATES)
007788,001296: 
007789,001297:                                                                                                  #  MODIFIED:  7FEB. 1968 BY P. S. WEISSMAN TO DELETE COMPUTATION OF MR12 AND MR13, WHICH ARE NO LONGER REQIURED.
007790,001298: 
007791,001299:                                                                                                  #  THIS PROGRAM CALCULATES ALL THE SINGLE-PRECISION MATRIX ELEMENTS WHICH ARE USED BY LEM DAP TO TRANSFORM VECTORS
007792,001300:                                                                                                  #  FROM GIMBAL TO PILOT (BODY) AXES AND BACK AGAIN.  THESE ELEMENTS ARE USED EXCLUSIVELY BY BASIC LANGUAGE ROUTINES
007793,001301:                                                                                                  #  AND THEREFORE ARE NOT ARRAYED FOR USE BY INTERPRETIVE PROGRAMS.
007794,001302: 
007795,001303:                                                                                                  #  CALLING SEQUENCE: GPMATRIX IS TRANSFERRED TO FROM DAPT4S AND IS THUS EXECUTED 4 TIMES A SECOND BY T4RUPT.
007796,001304:                                                                                                  #  DAPT4S IS LISTED IN T4JUMP TABLE TWICE EXPLICITLY AND ALSO OCCURS AFTER RRAUTCHK (WHICH IS ALSO LISTED TWICE).
007797,001305: 
007798,001306:                                                                                                  #  SUBROUTINES CALLED: SPSIN, SPCOS.
007799,001307: 
007800,001308:                                                                                                  #  NORMAL EXIT MODE:  TCF   RESUME
007801,001309: 
007802,001310:                                                                                                  #  ALARM AND ABORT MODES:  NONE.
007803,001311: 
007804,001312:                                                                                                  #  INPUT: CDUX, CDUY, CDUZ.
007805,001313: 
007806,001314:                                                                                                  #  OUTPUT:  M11, M21, M31, M22, M32.
007807,001315: 
007808,001316:                                                                                                  #  AOG = CDUX, AIG = CDUY, AMG = CDUZ: MNEMONIC IS : OIM = XYZ
007809,001317: 
007810,001318:                                                                                                  #                *       *       SIN(MG)                 0                       1       *
007811,001319:                                                                                                  #                M   =   *       COS(MG)COS(OG)          SIN(OG)                 0       *
007812,001320:                                                                                                  #                 GP     *       -COS(MG)SIN(OG)         COS(OG)                 0       *
007813,001321: 
007814,001322:                                                                                                  #                *       *       0                       COS(OG)/COS(MG)         -SIN(OG)/COS(MG)        *
007815,001323:                                                                                                  #                M   =   *       0                       SIN(OG)                 COS(OG)                 *
007816,001324:                                                                                                  #                 PG     *       1                       -SIN(MG)COS(OG)/COS(MG) SIN(MG)SIN(OG)/COS(MG)  *
007817,001325: 
007818,001326: 06,3140  E6,1414                                  EBANK=   M11                                   
007819,001327: 06,3140  06,3140               DAPT4S             EQUALS   GPMATRIX                              
007820,001328: 
007821,001329:                                                                                                  #  T4RUPT DAP LOGIC:
007822,001330: 
007823,001331: 06,3140           30034        GPMATRIX           CAE      CDUZ                                  #  SINGLE ENTRY POINT
007824,001332: 06,3141           05033                           TC       SPSIN                                 #  SIN(CDUZ) = SIN(MG)
007825,001333: 06,3142           55414                           TS       M11                                   #  SCALED AT 1
007826,001334: 
007827,001335: 06,3143           30034                           CAE      CDUZ                                  
007828,001336: 06,3144           05032                           TC       SPCOS                                 #  COS(CDUZ) = COS(MG)
007829,001337: 06,3145           54061                           TS       COSMG                                 #  SCALED AT 1 (ONLY A FACTOR)
007830,001338: 
007831,001339: 06,3146           30032                           CAE      CDUX                                  
007832,001340: 06,3147           05033                           TC       SPSIN                                 #  SIN(CDUX) = SIN(OG)
007833,001341: 06,3150           55417                           TS       M22                                   #  SCALED AT 1 (ALSO IS MR22)
007834,001342: 
007835,001343: 06,3151           41417                           CS       M22                                   

Page 190

007837,001345: 06,3152           00006                           EXTEND                                         
007838,001346: 06,3153           70061                           MP       COSMG                                 #  -SIN(OG)COS(MG)
007839,001347: 06,3154           55416                           TS       M31                                   #  SCALED AT 1
007840,001348: 
007841,001349: 06,3155           30032                           CAE      CDUX                                  
007842,001350: 06,3156           05032                           TC       SPCOS                                 #  COS(CDUX) = COS(OG)
007843,001351: 06,3157           55420                           TS       M32                                   #  SCALED AT 1 (ALSO IS MR23)
007844,001352: 
007845,001353: 06,3160           00006                           EXTEND                                         
007846,001354: 06,3161           70061                           MP       COSMG                                 #  COS(OG)COS(MG)
007847,001355: 06,3162           55415                           TS       M21                                   #  SCALED AT 1
007848,001356: 
007849,001357: 06,3163           05270                           TC       RESUME                                
007850,001358: 
007851,001359: 06,3164     5270               ENDDAPT4           EQUALS   RESUME                                

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