Source Code

These source-code files are part of a reconstructed copy of Artemis 071, the first release of the Apollo 15 through 17 Command Module (CM) Apollo Guidance Computer (AGC) software.

The reconstruction began with source code of Artemis 072 previously transcribed from a digitized copy of that program. The code was then updated by undoing changes between the two versions. The reconstruction was verified by matching memory-bank checksums to those listed in drawing 2021154-. Note that page numbers in the reconstructed code match those on the Artemis 072 printout, although the changed code would likely have changed page numbers for a real Artemis 071 listing.

Comments from the original source code are prefixed with a single '#' symbol, whereas comments added later are prefixed by "##" or "###". Report any errors noted by creating an issue report at the Virtual AGC project's GitHub repository.

032791,000002:                                                                                                  ## Copyright:   Public domain.
032792,000003:                                                                                                  ## Filename:    P51-P53.agc
032793,000004:                                                                                                  ## Purpose:     A section of Artemis revision 071.
032794,000005:                                                                                                  ##              It is part of the reconstructed source code for the first
032795,000006:                                                                                                  ##              release of the flight software for the Command Module's
032796,000007:                                                                                                  ##              (CM) Apollo Guidance Computer (AGC) for Apollo 15 through
032797,000008:                                                                                                  ##              17. The code has been recreated from a copy of Artemis 072.
032798,000009:                                                                                                  ##              It has been adapted such that the resulting bugger words
032799,000010:                                                                                                  ##              exactly match those specified for Artemis 071 in NASA
032800,000011:                                                                                                  ##              drawing 2021154-, which gives relatively high confidence
032801,000012:                                                                                                  ##              that the reconstruction is correct.
032802,000013:                                                                                                  ## Reference:   742
032803,000014:                                                                                                  ## Assembler:   yaYUL
032804,000015:                                                                                                  ## Contact:     Ron Burkey <info@sandroid.org>.
032805,000016:                                                                                                  ## Website:     www.ibiblio.org/apollo/index.html
032806,000017:                                                                                                  ## Mod history: 2019-08-14 MAS  Created from Artemis 072.
032807,000018: 

Page 742

032809,000020: 
032810,000021:                                                                                                  #  PROGRAM NAME - PROG52                         DATE - AUGUST 1,1969
032811,000022:                                                                                                  #  MODIFICATION BY ALBERT,BARNERT,HASLAM         LOG SECTION - P51-P5
032812,000023: 
032813,000024:                                                                                                  #  FUNCTION -
032814,000025: 
032815,000026:                                                                                                  #  ALIGNS THE IMU TO ONE OF THREE ORIENTATIONS SELECTED BY THE ASTRONAUT. THE PRESENT IMU ORIENTATION IS KNOWN
032816,000027:                                                                                                  #  AND IS STORED IN REFSMMAT. THE THREE POSSIBLE ORIENTATIONS MAY BE_
032817,000028: 
032818,000029:                                                                                                  #        (A) PREFERRED ORIENTATION
032819,000030: 
032820,000031:                                                                                                  #        AN OPTIMUM ORIENTATION FOR A PREVIOUSLY CALCULATED MANUEVER. THIS ORIENTATION MUST BE CALCULATED AND
032821,000032:                                                                                                  #        STORED BY A PREVIOUSLY SELECTED PROGRAM.
032822,000033: 
032823,000034:                                                                                                  #        (B) NOMINAL (LOCAL VERTICAL) ORIENTATION
032824,000035: 
032825,000036:                                                                                                  #                X   = UNIT ( Y   X Z   )
032826,000037:                                                                                                  #                -SM          -SM   -SM
032827,000038: 
032828,000039:                                                                                                  #                Y   = UNIT (V X R)
032829,000040:                                                                                                  #                -SM         -   -
032830,000041: 
032831,000042:                                                                                                  #                Z   = UNIT ( -R )
032832,000043:                                                                                                  #                -SM           -
032833,000044: 
032834,000045:                                                                                                  #                WHERE_
032835,000046: 
032836,000047:                                                                                                  #                R = THE GEOCENTRIC RADIUS VECTOR AT TIME T(ALIGN) SELECTED BY THE ASTRONAUT
032837,000048:                                                                                                  #                -
032838,000049: 
032839,000050:                                                                                                  #                V = THE INERTIAL VELOCITY VECTOR AT TIME T(ALIGN) SELECTED BY THE ASTRONAUT
032840,000051:                                                                                                  #                -
032841,000052: 
032842,000053:                                                                                                  #        (C) REFSMMAT ORIENTATION
032843,000054: 
032844,000055:                                                                                                  #        THIS ORIENTATION IS SELECTED AUTOMATICALLY UNLESS THE ASTRONAUT KEYS IN A DIFFERENT OPTION CODE
032845,000056: 
032846,000057:                                                                                                  #        THIS SELECTION CORRECTS THE PRESENT IMU ORIENTATION. THE PRESENT ORIENTATION DIFFERS FROM THAT TO WHICH IT
032847,000058:                                                                                                  #        WAS LAST ALIGNED ONLY DUE TO GYRO DRIFT (I.E. NEITHER GIMBAL LOCK NOR IMU POWER INTERRUPTION HAS OCCURED
032848,000059:                                                                                                  #        SINCE THE LAST ALIGNMENT).
032849,000060: 
032850,000061:                                                                                                  #  AFTER A IMU ORIENTATION HAS BEEN SELECTED ROUTINE S52.2 IS OPERATED TO COMPUTE THE GIMBAL ANGLES USING THE
032851,000062:                                                                                                  #  NEW ORIENTATION AND THE PRESENT VEHICLE ATTITUDE.  CAL52A THEN USES THESE ANGLES, STORED IN THETAD,+1,+2, TO
032852,000063:                                                                                                  #  COARSE ALIGN THE IMU. THE STAR SELECTION ROUTINE, R56, IS THEN OPERATED. IF 2 STARS ARE NOT AVAILABLE AN ALARM
032853,000064:                                                                                                  #  IS FLASHED TO NOTIFY THE ASTRONAUT. AT THIS POINT THE ASTRONAUT WILL MANUEVER THE VEHICLE AND SELECT 2 STARS
032854,000065:                                                                                                  #  EITHER MANUALLY OR AUTOMATICALLY. AFTER 2 STARS HAVE BEEN SELECTED THE IMU IS FINE ALIGNED USING ROUTINE R51. IF
032855,000066:                                                                                                  #  THE RENDEZVOUS NAVIGATION PROCESS IS OPERATING (INDICATED BY RNDVZFLG) P20 IS DISPLAYED. OTHERWISE P00 IS
032856,000067:                                                                                                  #  REQUESTED.
032857,000068: 
032858,000069:                                                                                                  #  CALLING SEQUENCE -
032859,000070: 
032860,000071:                                                                                                  #        THE PROGRAM IS CALLED BY THE ASTRONAUT BY DSKY ENTRY.

Page 743

032862,000073: 
032863,000074:                                                                                                  #  SUBROUTINES CALLED -
032864,000075: 
032865,000076:                                                                                                  #        1. FLAGDOWN              6. S52.2               11. GOPERF3
032866,000077:                                                                                                  #        2. R02BOTH               7. CAL53A              12. NEWMODEX
032867,000078:                                                                                                  #        3. GOPERF4               8. FLAGUP              13. PRIOLARM
032868,000079:                                                                                                  #        4. MATMOVE               9. R56
032869,000080:                                                                                                  #        5. GOFLASH              10. R51
032870,000081: 
032871,000082:                                                                                                  #  NORMAL EXIT MODES -
032872,000083: 
032873,000084:                                                                                                  #        EXITS TO ENDOFJOB
032874,000085: 
032875,000086:                                                                                                  #  ALARM OR ABORT EXIT MODES -
032876,000087: 
032877,000088:                                                                                                  #        NONE
032878,000089: 
032879,000090:                                                                                                  #  OUTPUT -
032880,000091: 
032881,000092:                                                                                                  #        THE FOLLOWING MAY BE FLASHED ON THE DSKY
032882,000093:                                                                                                  #                1. IMU ORIENTATION CODE
032883,000094:                                                                                                  #                2. ALARM CODE 215 - PREFERRED IMU ORIENTATION NOT SPECIFIED
032884,000095:                                                                                                  #                3. TIME OF NEXT IGNITION
032885,000096:                                                                                                  #                4. GIMBAL ANGLES
032886,000097:                                                                                                  #                5. ALARM CODE 405 - TWO STARS NOT AVAILABLE
032887,000098:                                                                                                  #                6. PLEASE PERFORM P00
032888,000099:                                                                                                  #        THE MODE DISPLAY MAY BE CHANGED TO 20
032889,000100: 
032890,000101:                                                                                                  #  ERASABLE INITIALIZATION REQUIRED -
032891,000102: 
032892,000103:                                                                                                  #        PFRATFLG SHOULD BE SET IF A PREFERRED ORIENTATION HAS BEEN COMPUTED. IF IT HAS BEEN COMPUTED IT IS STORED IN
032893,000104:                                                                                                  #        XSMD, YSMD, ZSMD.
032894,000105:                                                                                                  #        RNDVZFLG INDICATES WHETHER THE RENDEZVOUS NAVIGATION PROCESS IS OPERATING.
032895,000106: 
032896,000107:                                                                                                  #  DEBRIS -
032897,000108: 
032898,000109:                                                                                                  #        WORK AREA
032899,000110: 
032900,000111: 24,3751  14,2002               P54                =        PROG52                                
032901,000112: 14,2000                                           SETLOC   P50S                                  
032902,000113: 14,2000                                           BANK                                           
032903,000114: 
032904,000115: 14,2002  30,2000                                  SBANK=   LOWSUPER                              
032905,000116: 14,2002  E5,1773                                  EBANK=   SAC                                   
032906,000117: 14,2002                                           COUNT*   $$/P52                                
032907,000118: 14,2002           05561        PROG52             TC       DOWNFLAG                              
032908,000119: 14,2003           00027                           ADRES    UPDATFLG                              #  BIT 7 FLAG 1
032909,000120: 14,2004           05561                           TC       DOWNFLAG                              
032910,000121: 14,2005           00031                           ADRES    TRACKFLG                              #  BIT 5 FLAG 1
032911,000122: 14,2006           04636                           TC       BANKCALL                              
032912,000123: 14,2007           03731                           CADR     R02BOTH                               #  IMU STATUS CHECK
032913,000124: 14,2010           06006                           TC       INTPRET                               

Page 744

032915,000126: 14,2011           77414                           BON      EXIT                                  #  MINKEY SEQUENCE?
032916,000127: 14,2012           05310                                    AUTOSEQ                               
032917,000128: 14,2013           30276                                    P52AUTO                               #  YES
032918,000129: 
032919,000130: 14,2014           30104                           CA       FLAGWRD8                              
032920,000131: 14,2015           74760                           MASK     UTBIT                                 
032921,000132: 14,2016           00006                           EXTEND                                         
032922,000133: 14,2017           12025                           BZF      +6                                    
032923,000134: 
032924,000135: 14,2020           11351                           CCS      OPTNTYPE                              
032925,000136: 14,2021           12023                           TCF      +2                                    
032926,000137: 14,2022           12025                           TCF      +3                                    
032927,000138: 14,2023           05547                           TC       UPFLAG                                
032928,000139: 14,2024           00031                           ADRES    TRACKFLG                              
032929,000140: 
032930,000141: 14,2025           34765                           CAF      PFRATBIT                              
032931,000142: 14,2026           70076                           MASK     FLAGWRD2                              #  PREFERRED ORIENTATION
032932,000143: 14,2027           10000                           CCS      A                                     
032933,000144: 14,2030           02033                           TC       P52A                                  
032934,000145: 14,2031           36214                           CAF      THREE                                 #  ION
032935,000146: 14,2032           02034                           TC       P52A       +1                         
032936,000147: 14,2033           34770        P52A               CAF      BIT1                                  #  YES - SET OPTION 2 = 1
032937,000148: 14,2034           54776                 +1        TS       OPTION2                               
032938,000149: 14,2035           34770        P52B               CAF      BIT1                                  
032939,000150: 14,2036           04636                           TC       BANKCALL                              #  FLASH OPTION CODE AND ORIENTATION CODE
032940,000151: 14,2037           21074                           CADR     GOPERF4                               
032941,000152: 14,2040           04103                           TC       GOTOPOOH                              
032942,000153: 14,2041           02043                           TC       +2                                    
032943,000154: 14,2042           02035                           TC       P52B                                  #  NEW CODE - NEW ORIENTATION CODE INPUT
032944,000155: 14,2043           40776                           CS       OPTION2                               
032945,000156: 14,2044           76214                           MASK     THREE                                 
032946,000157: 14,2045           00006                           EXTEND                                         
032947,000158: 14,2046           12407                           BZF      P52C                                  #  REFERENCE
032948,000159: 14,2047           74770                           MASK     BIT1                                  
032949,000160: 14,2050           00006                           EXTEND                                         
032950,000161: 14,2051           12167                           BZF      P52J                                  #  PREFERRED
032951,000162: 14,2052           00006                           EXTEND                                         #  NOMINAL (LOCAL VERTICAL), LANDING SIGHT
032952,000163: 14,2053           34772                           DCA      NEG0                                  
032953,000164: 14,2054           53251                           DXCH     DSPTEM1                               
032954,000165: 14,2055           35027                           CAF      V06N34                                #  PREFERRED
032955,000166: 14,2056           05535                           TC       VNFLASH                               
032956,000167: 14,2057           31250                           CA       DSPTEM1                               
032957,000168: 14,2060           00006                           EXTEND                                         
032958,000169: 14,2061           12063                           BZF      +2                                    
032959,000170: 14,2062           12066                           TCF      +4                                    
032960,000171: 
032961,000172: 14,2063           00006                           EXTEND                                         
032962,000173: 14,2064           30025                           DCA      TIME2                                 
032963,000174: 14,2065           53251                           DXCH     DSPTEM1                               
032964,000175: 14,2066           30776                           CA       OPTION2                               

Page 745

032966,000177: 14,2067           74767                           MASK     BIT2                                  
032967,000178: 14,2070           10000                           CCS      A                                     
032968,000179: 14,2071           12145                           TCF      S52.3                                 #  NOM - S52.3 - NOW IN-LINE
032969,000180: 14,2072           06006                           TC       INTPRET                               #  LS - P52LS - NOW IN-LINE
032970,000181: 
032971,000182:                                                                                                  #  NAME - P52LS
032972,000183: 
032973,000184:                                                                                                  #  FUNCTION - TO DISPLAY THE LANDING SITE LATITUDE,
032974,000185:                                                                                                  #  LONGTITUDE AND ALTITUDE. TO ACCEPT NEW DATA VIA
032975,000186:                                                                                                  #  THE KEYBOARD. TO COMPUTE THE LANDING SITE
032976,000187:                                                                                                  #  ORIENTATION FOR P52 OR P54
032977,000188: 
032978,000189:                                                                                                  #  LET:
032979,000190:                                                                                                  #        RLS  = LANDING SITE VECTOR IN REF COORDINATES
032980,000191:                                                                                                  #        R    = CSM POSITION VECTOR IN REF COORDINATES
032981,000192:                                                                                                  #        V    = CSM VELOCITY VECTOR IN REF COORDINATES
032982,000193:                                                                                                  #  THEN THE LANDING SITE ORIENTATION IS:
032983,000194:                                                                                                  #        XSMD = UNIT(RLS)
032984,000195:                                                                                                  #        YSMD = UNIT(ZSMD*XSMD)
032985,000196:                                                                                                  #        ZSMD = UNIT((R*V)*RLS)
032986,000197: 
032987,000198:                                                                                                  #  INPUTS-       DSPTEM1 = TIME OF ALIGNMENT
032988,000199:                                                                                                  #                RLS = LANDING SITE VECTOR IN MOON FIXED COORINATES
032989,000200: 
032990,000201:                                                                                                  #  OUTPUTS-      XSMD, YSMD, ZSMD
032991,000202: 
032992,000203:                                                                                                  #  SUBROUTINES-  RP-TO-R, LAT-LONG, LLASRD, LLASRDA, CSMPREC
032993,000204: 
032994,000205:                                                                                                  #  DEBRIS-       VAC, SEE SUBROUTINES
032995,000206: 
032996,000207: 14,2073           43014                           SET      SET                                   
032997,000208: 14,2074           01463                                    LUNAFLAG                              
032998,000209: 14,2075           00462                                    ERADFLAG                              
032999,000210: 14,2076           77775                           VLOAD                                          
033000,000211: 14,2077           02026                                    RLS                                   
033001,000212: 14,2100           14001                           STODL    0D                                    
033002,000213: 14,2101           01251                                    DSPTEM1                               
033003,000214: 14,2102           02607                           STORE    TSIGHT                                
033004,000215: 14,2103           34007                           STCALL   6D                                    
033005,000216: 14,2104           55345                                    RP-TO-R                               
033006,000217: 14,2105           77742                           VSR2                                           
033007,000218: 14,2106           16152                           STODL    ALPHAV                                
033008,000219: 14,2107           02607                                    TSIGHT                                
033009,000220: 14,2110           77624                           CALL                                           
033010,000221: 14,2111           26453                                    LAT-LONG                              
033011,000222: 14,2112           77624                           CALL                                           
033012,000223: 14,2113           62363                                    LLASRD                                
033013,000224: 14,2114           77776                           EXIT                                           
033014,000225: 14,2115           35036        LSDISP             CAF      V06N89*                               
033015,000226: 14,2116           05535                           TC       VNFLASH                               
033016,000227: 14,2117           06006                           TC       INTPRET                               
033017,000228: 14,2120           77624                           CALL                                           
033018,000229: 14,2121           62371                                    LLASRDA                               
033019,000230: 14,2122           45145                           DLOAD    CALL                                  
033020,000231: 14,2123           02607                                    TSIGHT                                

Page 746

033022,000233: 14,2124           26524                                    LALOTORV                              
033023,000234: 14,2125           53575                           VLOAD    UNIT                                  
033024,000235: 14,2126           02152                                    ALPHAV                                
033025,000236: 14,2127           14307                           STODL    XSMD                                  
033026,000237: 14,2130           02607                                    TSIGHT                                
033027,000238: 14,2131           34041                           STCALL   TDEC1                                 
033028,000239: 14,2132           27145                                    CSMPREC                               
033029,000240: 14,2133           47375                           VLOAD    VXV                                   
033030,000241: 14,2134           00001                                    RATT                                  
033031,000242: 14,2135           00007                                    VATT                                  
033032,000243: 14,2136           53435                           VXV      UNIT                                  
033033,000244: 14,2137           00307                                    XSMD                                  
033034,000245: 14,2140           00323                           STORE    ZSMD                                  
033035,000246: 14,2141           53435                           VXV      UNIT                                  
033036,000247: 14,2142           00307                                    XSMD                                  
033037,000248: 14,2143           34315                           STCALL   YSMD                                  
033038,000249: 14,2144           30170                                    P52D                                  
033039,000250: 14,2145     5036               V06N89*            =        V06N89                                
033040,000251: 
033041,000252:                                                                                                  #  NAME - S52.3
033042,000253:                                                                                                  #  FUNCTION - TO COMPUTE AMD DISPLAY THE
033043,000254:                                                                                                  #  GIMBAL ANGLES, ALLOW ASTRONAUT TO CHOOSE
033044,000255:                                                                                                  #  BETWEEN FAST AND ACCURATE IMU REALIGNMENT.
033045,000256:                                                                                                  #  NOMINAL (LOCAL VERTICAL) ORIENTATION IS:
033046,000257:                                                                                                  #                XSMD= UNIT(YSMD X ZSMD)
033047,000258:                                                                                                  #                YSMD= UNIT(V X R)
033048,000259:                                                                                                  #                ZSMD= UNIT(-R)
033049,000260: 
033050,000261:                                                                                                  #  INPUT -       TIME OF ALIGNMENT IN MPAC
033051,000262: 
033052,000263:                                                                                                  #  OUTPUT -      X,Y,ZSMD
033053,000264: 
033054,000265:                                                                                                  #  SUBROUTINES - CSMCONIC
033055,000266: 
033056,000267: 14,2145           06006        S52.3              TC       INTPRET                               
033057,000268: 14,2146           77745                           DLOAD                                          
033058,000269: 14,2147           01251                                    DSPTEM1                               
033059,000270: 14,2150           34041                           STCALL   TDEC1                                 
033060,000271: 14,2151           27145                                    CSMPREC                               
033061,000272: 14,2152           77201                           SETPD    VLOAD                                 
033062,000273: 14,2153           00001                                    0                                     
033063,000274: 14,2154           00001                                    RATT                                  
033064,000275: 14,2155           53476                           VCOMP    UNIT                                  
033065,000276: 14,2156           24323                           STOVL    ZSMD                                  
033066,000277: 14,2157           00007                                    VATT                                  
033067,000278: 14,2160           53435                           VXV      UNIT                                  
033068,000279: 14,2161           00001                                    RATT                                  
033069,000280: 14,2162           00315                           STORE    YSMD                                  
033070,000281: 14,2163           53435                           VXV      UNIT                                  
033071,000282: 14,2164           00323                                    ZSMD                                  
033072,000283: 14,2165           00307                           STORE    XSMD                                  
033073,000284: 14,2166           77776                           EXIT                                           
033074,000285: 14,2167           06006        P52J               TC       INTPRET                               
033075,000286: 14,2170           77624        P52D               CALL                                           #  READ VEHICLE ATTITUDE AND
033076,000287: 14,2171           22247                                    S52.2                                 #   COMPUTE GIMBAL ANGLES

Page 747

033078,000289: 14,2172           77776                           EXIT                                           
033079,000290: 14,2173           35025                           CAF      V06N22                                
033080,000291: 14,2174           04636                           TC       BANKCALL                              #  DISPLAY GIMBAL ANGLES
033081,000292: 14,2175           20743                           CADR     GOFLASH                               
033082,000293: 14,2176           04103                           TC       GOTOPOOH                              
033083,000294: 14,2177           02201                           TC       COARSTYP                              
033084,000295: 14,2200           02167                           TC       P52J                                  #  RECYCLE - VEHICLE HAS BEEN MANEUVERED
033085,000296: 14,2201           40106        COARSTYP           CS       FLGWRD10                              
033086,000297: 14,2202           74762                           MASK     AUTSQBIT                              
033087,000298: 14,2203           00006                           EXTEND                                         
033088,000299: 14,2204           12320                           BZF      PERF20                                #  IF MINKEY
033089,000300: 14,2205           34775                           CAF      OCT13                                 #  PLEASE PERFORM NORMAL/GYRO TORQUE
033090,000301: 14,2206           04636                           TC       BANKCALL                              
033091,000302: 14,2207           21067                           CADR     GOPERF1                               
033092,000303: 14,2210           14103                           TCF      GOTOPOOH                              #  V34
033093,000304: 14,2211           12334                           TCF      P52K                                  #  NORMAL COARSE
033094,000305: 14,2212           06006        GYCRS              TC       INTPRET                               
033095,000306: 14,2213           64375                           VLOAD    MXV                                   
033096,000307: 14,2214           00307                                    XSMD                                  
033097,000308: 14,2215           01734                                    REFSMMAT                              
033098,000309: 14,2216           77656                           UNIT                                           
033099,000310: 14,2217           26714                           STOVL    XDC                                   
033100,000311: 14,2220           00315                                    YSMD                                  
033101,000312: 14,2221           53521                           MXV      UNIT                                  
033102,000313: 14,2222           01734                                    REFSMMAT                              
033103,000314: 14,2223           26722                           STOVL    YDC                                   
033104,000315: 14,2224           00323                                    ZSMD                                  
033105,000316: 14,2225           53521                           MXV      UNIT                                  
033106,000317: 14,2226           01734                                    REFSMMAT                              
033107,000318: 14,2227           36730                           STCALL   ZDC                                   
033108,000319: 14,2230           47240                                    CALCGTA                               
033109,000320: 14,2231           43014                           CLEAR    CLEAR                                 
033110,000321: 14,2232           01260                                    DRIFTFLG                              
033111,000322: 14,2233           01662                                    REFSMFLG                              
033112,000323: 14,2234           77776                           EXIT                                           
033113,000324: 14,2235           32275                           CAF      V16N20                                
033114,000325: 14,2236           04636                           TC       BANKCALL                              
033115,000326: 14,2237           20710                           CADR     GODSPR                                
033116,000327: 14,2240           33002                           CAF      R55CDR                                
033117,000328: 14,2241           04636                           TC       BANKCALL                              
033118,000329: 14,2242           17244                           CADR     IMUPULSE                              
033119,000330: 14,2243           04636                           TC       BANKCALL                              
033120,000331: 14,2244           17644                           CADR     IMUSTALL                              
033121,000332: 14,2245           03766                           TC       217ALARM                              #  BAD END
033122,000333: 14,2246           05402                           TC       PHASCHNG                              
033123,000334: 14,2247           04024                           OCT      04024                                 
033124,000335: 14,2250           06006                           TC       INTPRET                               
033125,000336: 14,2251           75160                           AXC,1    AXC,2                                 
033126,000337: 14,2252           00306                                    XSMD                                  
033127,000338: 14,2253           01733                                    REFSMMAT                              

Page 748

033129,000340: 14,2254           77624                           CALL                                           
033130,000341: 14,2255           34730                                    MATMOVE                               
033131,000342: 14,2256           43014                           CLEAR    SET                                   
033132,000343: 14,2257           01273                                    PFRATFLG                              
033133,000344: 14,2260           01462                                    REFSMFLG                              
033134,000345: 14,2261           77234                           RTB      VLOAD                                 
033135,000346: 14,2262           31566                                    SET1/PDT                              
033136,000347: 14,2263           11762                                    ZEROVEC                               
033137,000348: 14,2264           01472                           STORE    GCOMP                                 
033138,000349: 14,2265           43014                           SET      BOF                                   
033139,000350: 14,2266           01060                                    DRIFTFLG                              
033140,000351: 14,2267           05350                                    AUTOSEQ                               
033141,000352: 14,2270           30757                                    R51K                                  #  CONTINUE FINE ALIGN IF NOT MINKEY
033142,000353: 14,2271           77614                           CLEAR                                          
033143,000354: 14,2272           05276                                    PCFLAG                                
033144,000355: 14,2273           77776        P50SEXIT           EXIT                                           
033145,000356: 14,2274           14105                           TCF      MNKGOPOO                              
033146,000357: 14,2275           04024        V16N20             VN       1620                                  
033147,000358: 14,2276     4776               ALRM15             EQUALS   OCT15                                 
033148,000359: 14,2276           74575        P52AUTO            VLOAD    VSR1                                  #  XDES = UNIT(XREF COS45 + YERF SIN45) (1)
033149,000360: 14,2277           01734                                    REFSMMAT                              #                         -             (2)
033150,000361: 14,2300           74515                           PDVL     VSR1                                  
033151,000362: 14,2301           01742                                    REFSMMAT   +6                         #  (1) FOR 1ST, +45-DEGREE MANEUVER
033152,000363: 14,2302           57414                           BON      VCOMP                                 #  (2)     2ND  -
033153,000364: 14,2303           05316                                    PCFLAG                                #  IN EITHER CASE, COS45 = SIN45, AND
033154,000365: 14,2304           30305                                    P52AUTOX                              #        'UNIT' OBVIATES NEED FOR THEN.
033155,000366: 
033156,000367: 14,2305           53455        P52AUTOX           VAD      UNIT                                  
033157,000368: 14,2306           77626                           STADR                                          
033158,000369: 14,2307           53470                           STOVL    XSMD                                  
033159,000370: 14,2310           01750                                    REFSMMAT   +12D                       
033160,000371: 14,2311           00323                           STORE    ZSMD                                  #  ZDES = ZREF
033161,000372: 14,2312           53435                           VXV      UNIT                                  
033162,000373: 14,2313           00307                                    XSMD                                  
033163,000374: 14,2314           00315                           STORE    YSMD                                  #  YDES = UNIT(ZDES * ZDES)
033164,000375: 14,2315           52014                           SET      GOTO                                  
033165,000376: 14,2316           01073                                    PFRATFLG                              
033166,000377: 14,2317           30170                                    P52D                                  
033167,000378: 
033168,000379: 14,2320           34764        PERF20             CAF      BIT5                                  #  =OCT 20, PLEASE PERF MINKEY PC TORQUE
033169,000380: 14,2321           04636                           TC       BANKCALL                              
033170,000381: 14,2322           21067                           CADR     GOPERF1                               
033171,000382: 14,2323           04103                           TC       GOTOPOOH                              #  V 34
033172,000383: 14,2324           02212                           TC       GYCRS                                 #  PRO - DO IT
033173,000384: 14,2325           06006                           TC       INTPRET                               #  ENTR
033174,000385: 14,2326           77414                           BON      EXIT                                  
033175,000386: 14,2327           05316                                    PCFLAG                                
033176,000387: 14,2330           30273                                    P50SEXIT                              #  OK TO FLUSH IT 1ST TIME ONLY
033177,000388: 14,2331           05671                           TC       ALARM                                 #  BUT MAKE HIM DO 2ND
033178,000389: 14,2332           00402                           OCT      00402                                 

Page 749

033180,000391: 14,2333           02320                           TC       PERF20                                
033181,000392:                                                                                                  #  NAME - CAL53A
033182,000393:                                                                                                  #  FUNCTION - COARSE ALIGN THE IMU, IF NECESSARY,
033183,000394:                                                                                                  #  INPUT - PRESENT GIMBAL ANGLES - CDUX, CDUY, CDUZ
033184,000395:                                                                                                  #          DESIRED GIMBAL ANGLES - THETAD,+1,+2
033185,000396:                                                                                                  #  OUTPUT - THE IMU COORDINATES ARE STORED IN REFSMMAT
033186,000397:                                                                                                  #  SUBROUTINES USED - 1.IMUCOARS 2.IMUSTALL 3.CURTAINS
033187,000398: 
033188,000399: 14,2334                                           COUNT*   $$/R50                                
033189,000400: 14,2334           06006        P52K               TC       INTPRET                               
033190,000401: 14,2335           77624        CAL53A             CALL                                           
033191,000402: 14,2336           22247                                    S52.2                                 #  MAKE FINAL COMP OF GIMBAL ANGLES
033192,000403: 14,2337           66234                           RTB      SSP                                   
033193,000404: 14,2340           34744                                    RDCDUS                                #  READ CDUS
033194,000405: 14,2341           00051                                    S1                                    
033195,000406: 14,2342           00001                                    1                                     
033196,000407: 14,2343           40370                           AXT,1    SETPD                                 
033197,000408: 14,2344           00003                                    3                                     
033198,000409: 14,2345           00005                                    4                                     
033199,000410: 
033200,000411: 14,2346           70543        CALOOP             DLOAD*   SR1                                   
033201,000412: 14,2347           01313                                    THETAD     +3D,1                      
033202,000413: 14,2350           70523                           PDDL*    SR1                                   
033203,000414: 14,2351           00005                                    4,1                                   
033204,000415: 14,2352           51425                           DSU      ABS                                   
033205,000416: 14,2353           45206                           PUSH     DSU                                   
033206,000417: 14,2354           34743                                    DEGREE1                               
033207,000418: 14,2355           71240                           BMN      DLOAD                                 
033208,000419: 14,2356           30376                                    CALOOP1                               
033209,000420: 14,2357           51025                           DSU      BPL                                   
033210,000421: 14,2360           34744                                    DEG359                                
033211,000422: 14,2361           30376                                    CALOOP1                               
033212,000423: 14,2362           77776        COARFINE           EXIT                                           
033213,000424: 14,2363           05402                           TC       PHASCHNG                              
033214,000425: 14,2364           04024                           OCT      04024                                 
033215,000426: 14,2365           03742                           TC       COARSUB                               #  PERFORM ALIGNMENT
033216,000427: 14,2366           06006                           TC       INTPRET                               
033217,000428: 14,2367           77234                           RTB      VLOAD                                 
033218,000429: 14,2370           31566                                    SET1/PDT                              
033219,000430: 14,2371           11762                                    ZEROVEC                               
033220,000431: 14,2372           01472                           STORE    GCOMP                                 
033221,000432: 14,2373           52014                           SET      GOTO                                  
033222,000433: 14,2374           01060                                    DRIFTFLG                              
033223,000434: 14,2375           30400                                    FINEONLY                              
033224,000435: 14,2376           77700        CALOOP1            TIX,1                                          
033225,000436: 14,2377           30346                                    CALOOP                                
033226,000437: 14,2400           75160        FINEONLY           AXC,1    AXC,2                                 
033227,000438: 14,2401           02671                                    XSM                                   
033228,000439: 14,2402           01733                                    REFSMMAT                              
033229,000440: 14,2403           77624                           CALL                                           
033230,000441: 14,2404           34730                                    MATMOVE                               
033231,000442: 14,2405           77414        CAL53RET           SET      EXIT                                  

Page 750

033233,000444: 14,2406           01462                                    REFSMFLG                              
033234,000445: 14,2407                                           COUNT*   $$/P52                                
033235,000446: 14,2407           05402        P52C               TC       PHASCHNG                              
033236,000447: 14,2410           04024                           OCT      04024                                 
033237,000448: 14,2411           34776                           CAF      ALRM15                                
033238,000449: 14,2412           04636                           TC       BANKCALL                              
033239,000450: 14,2413           21067                           CADR     GOPERF1                               
033240,000451: 14,2414           04103                           TC       GOTOPOOH                              
033241,000452: 14,2415           02417                           TC       +2                                    #  V33
033242,000453: 14,2416           02622                           TC       R51                                   #  FINE ALIGN
033243,000454: 14,2417           06006                           TC       INTPRET                               
033244,000455: 14,2420           43234                           RTB      DAD                                   
033245,000456: 14,2421           51751                                    LOADTIME                              
033246,000457: 14,2422           34652                                    TSIGHT1                               
033247,000458: 14,2423           77624                           CALL                                           
033248,000459: 14,2424           26345                                    LOCSAM                                
033249,000460: 14,2425                                           COUNT*   $$/PICAP                              
033250,000461: 
033251,000462:                                                                                                  #  NAME - PICAPAR        NOW IN-LINE
033252,000463: 
033253,000464:                                                                                                  #  FUNCTION -
033254,000465:                                                                                                  #  THIS PROGRAM READ THE IMU-CDUS AND COMPUTES THE VEHICLE ORIENTATION
033255,000466:                                                                                                  #  WITH RESPECT TO INERTIAL SPACE. IT THEN COMPUTES THE SHAFT AXIS (SAX)
033256,000467:                                                                                                  #  WITH RESPECT TO REFERENCE INERTIAL. EACH STAR IN THE CATALOG IS TESTED
033257,000468:                                                                                                  #  TO DETERMINE IF IT IS OCCULTED BY EITHER THE EARTH, SUN OR MOON. IF A
033258,000469:                                                                                                  #  STAR IS NOT OCCULTED THEN IT IS PAIRED WITH ALL STAR OF LOWER INDEX.
033259,000470:                                                                                                  #  THE PAIRED STAR IS TESTED FOR OCCULTATION. PAIRS OF STARS THAT PASS
033260,000471:                                                                                                  #  THE OCCULTATION TESTS ARE TESTED FOR GOOD SEPARATION. A PAIR OF STARS
033261,000472:                                                                                                  #  HAVE GOOD SEPARATION IF THE ANGLE BETWEEN THEM IS LESS THAN 76 DEGREES
033262,000473:                                                                                                  #  AND MORE THAN 30 DEGREES. THOSE PAIRS OF STARS WITH GOOD SEPARATION
033263,000474:                                                                                                  #  ARE THEN TESTED TO SEE IF THEY LIE IN CURRENT FIELD OF VIEW. (WITHIN
033264,000475:                                                                                                  #  38 DEGREES OF SAX). THE PAIR WITH MAXIMUM SEPARATION IS CHOSEN FROM
033265,000476:                                                                                                  #  THOSE WITH GOOD SEPARATION, AND IN FIELD OF VIEW.
033266,000477: 
033267,000478:                                                                                                  #  OUTPUT
033268,000479:                                                                                                  #        BESTI, BESTJ - SINGLE PREC, INTEGERS, STAR NUMBERS TIMES 6
033269,000480:                                                                                                  #        VFLAG - FLAG BIT  SET IMPLIES NO STARS IN FIELD OF VIEW
033270,000481: 
033271,000482:                                                                                                  #  INITIALIZATION
033272,000483:                                                                                                  #        1) A CALL TO LOCSAM MUST BE MADE
033273,000484:                                                                                                  #        2) VEARTH = -UNIT(R) WHERE R HAS BEEN UPDATED TOO APPROXIMATE TIME OF
033274,000485:                                                                                                  #                SIGHTINGS.
033275,000486: 
033276,000487:                                                                                                  #  DEBRIS
033277,000488:                                                                                                  #        WORK AREA
033278,000489:                                                                                                  #        X,Y,ZNB
033279,000490:                                                                                                  #        SINCDU, COSCDU
033280,000491:                                                                                                  #        STARAD - STAR +5
033281,000492: 
033282,000493: 14,2425           77624                           CALL                                           
033283,000494: 14,2426           47530                                    CDUTRIG                               
033284,000495: 14,2427           45001                           SETPD    CALL                                  

Page 751

033286,000497: 14,2430           00001                                    0                                     
033287,000498: 14,2431           34756                                    CALCSMSC                              
033288,000499: 14,2432           71214                           SET      DLOAD                                 #  VFLAG = 1
033289,000500: 14,2433           01465                                    VFLAG                                 
033290,000501: 14,2434           11762                                    DPZERO                                
033291,000502: 14,2435           24303                           STOVL    BESTI                                 
033292,000503: 14,2436           02714                                    XNB                                   
033293,000504: 14,2437           63361                           VXSC     PDVL                                  
033294,000505: 14,2440           30575                                    SIN33                                 
033295,000506: 14,2441           02730                                    ZNB                                   
033296,000507: 14,2442           74370                           AXT,1    VXSC                                  
033297,000508: 14,2443           00344                                    228D                                  #  X1 = 37 X 6 + 6
033298,000509: 14,2444           30577                                    COS33                                 
033299,000510: 14,2445           77655                           VAD                                            
033300,000511: 14,2446           53505                           VXM      UNIT                                  
033301,000512: 14,2447           01734                                    REFSMMAT                              
033302,000513: 14,2450           02760                           STORE    SAX                                   #  SAX = SHAFT AXIS
033303,000514: 14,2451           66331                           SSP      SSP                                   #  S1 = S2 = 6
033304,000515: 14,2452           00051                                    S1                                    
033305,000516: 14,2453           00006                                    6                                     
033306,000517: 14,2454           00052                                    S2                                    
033307,000518: 14,2455           00006                                    6                                     
033308,000519: 14,2456           52100        PIC1               TIX,1    GOTO                                  #  MAJOR STAR
033309,000520: 14,2457           30461                                    PIC2                                  
033310,000521: 14,2460           30606                                    PICEND                                
033311,000522: 14,2461           45173        PIC2               VLOAD*   CALL                                  
033312,000523: 14,2462           33776                                    CATLOG,1                              
033313,000524: 14,2463           30552                                    OCCULT                                
033314,000525: 14,2464           73014                           BON      LXA,2                                 
033315,000526: 14,2465           01710                                    CULTFLAG                              
033316,000527: 14,2466           30456                                    PIC1                                  
033317,000528: 14,2467           00046                                    X1                                    
033318,000529: 14,2470           52104        PIC3               TIX,2    GOTO                                  
033319,000530: 14,2471           30473                                    PIC4                                  
033320,000531: 14,2472           30456                                    PIC1                                  
033321,000532: 14,2473           45173        PIC4               VLOAD*   CALL                                  
033322,000533: 14,2474           44001                                    CATLOG,2                              
033323,000534: 14,2475           30552                                    OCCULT                                
033324,000535: 14,2476           76614                           BON      VLOAD*                                
033325,000536: 14,2477           01710                                    CULTFLAG                              
033326,000537: 14,2500           30470                                    PIC3                                  
033327,000538: 14,2501           33776                                    CATLOG,1                              
033328,000539: 14,2502           45237                           DOT*     DSU                                   
033329,000540: 14,2503           44001                                    CATLOG,2                              
033330,000541: 14,2504           30601                                    CSS66                                 #  SEPARATION LESS THAN 76 DEG.
033331,000542: 14,2505           43240                           BMN      DAD                                   
033332,000543: 14,2506           30470                                    PIC3                                  
033333,000544: 14,2507           30603                                    CSS6640                               #  SEPARATION MORE THAN 30 DEG.
033334,000545: 14,2510           77644                           BPL                                            
033335,000546: 14,2511           30470                                    PIC3                                  

Page 752

033337,000548: 14,2512           50373                           VLOAD*   DOT                                   
033338,000549: 14,2513           33776                                    CATLOG,1                              
033339,000550: 14,2514           02760                                    SAX                                   
033340,000551: 14,2515           50025                           DSU      BMN                                   #  MAJOR STAR IN CONE
033341,000552: 14,2516           30605                                    CSS33                                 
033342,000553: 14,2517           30456                                    PIC1                                  
033343,000554: 14,2520           50373                           VLOAD*   DOT                                   
033344,000555: 14,2521           44001                                    CATLOG,2                              
033345,000556: 14,2522           02760                                    SAX                                   
033346,000557: 14,2523           50025                           DSU      BMN                                   
033347,000558: 14,2524           30605                                    CSS33                                 
033348,000559: 14,2525           30470                                    PIC3                                  
033349,000560: 14,2526           77614        STRATGY            BONCLR                                         
033350,000561: 14,2527           01605                                    VFLAG                                 
033351,000562: 14,2530           30545                                    NEWPAR                                
033352,000563: 14,2531           65120                 -3        XCHX,1   XCHX,2                                
033353,000564: 14,2532           00302                                    BESTI                                 
033354,000565: 14,2533           00303                                    BESTJ                                 
033355,000566: 14,2534           47773        STRAT              VLOAD*   DOT*                                  
033356,000567: 14,2535           33776                                    CATLOG,1                              
033357,000568: 14,2536           44001                                    CATLOG,2                              
033358,000569: 14,2537           43006                           PUSH     BOFINV                                
033359,000570: 14,2540           01545                                    VFLAG                                 
033360,000571: 14,2541           30531                                    STRAT      -3                         
033361,000572: 14,2542           45345                           DLOAD    DSU                                   
033362,000573: 14,2543           77644                           BPL                                            
033363,000574: 14,2544           30470                                    PIC3                                  
033364,000575: 14,2545           67130        NEWPAR             SXA,1    SXA,2                                 
033365,000576: 14,2546           00302                                    BESTI                                 
033366,000577: 14,2547           00303                                    BESTJ                                 
033367,000578: 14,2550           77650                           GOTO                                           
033368,000579: 14,2551           30470                                    PIC3                                  
033369,000580: 14,2552           51321        OCCULT             MXV      BVSU                                  
033370,000581: 14,2553           02736                                    CULTRIX                               
033371,000582: 14,2554           00017                                    CSS                                   
033372,000583: 14,2555           77654                           BZE                                            
033373,000584: 14,2556           30571                                    CULTED                                
033374,000585: 14,2557           75240                           BMN      SIGN                                  
033375,000586: 14,2560           30571                                    CULTED                                
033376,000587: 14,2561           00160                                    MPAC       +3                         
033377,000588: 14,2562           75240                           BMN      SIGN                                  
033378,000589: 14,2563           30571                                    CULTED                                
033379,000590: 14,2564           00162                                    MPAC       +5                         
033380,000591: 14,2565           43040                           BMN      CLRGO                                 
033381,000592: 14,2566           30571                                    CULTED                                
033382,000593: 14,2567           01630                                    CULTFLAG                              
033383,000594: 14,2570           00052                                    QPRET                                 
033384,000595: 14,2571           77614        CULTED             SETGO                                          
033385,000596: 14,2572           01430                                    CULTFLAG                              
033386,000597: 14,2573           00052                                    QPRET                                 

Page 753

033388,000599: 14,2574  0000016               CSS                =        CEARTH                                
033389,000600: 14,2574           21150 25157  SIN33              2DEC     .5376381241                            
033390,000601: 
033391,000602: 14,2576           32766 22713  COS33              2DEC     .8431756920                            
033392,000603: 
033393,000604: 14,2600           01736 35137  CSS66              2DEC     .060480472                            #  (COS76)/4
033394,000605: 
033395,000606: 14,2602           73003 65403  CSS6640            2DEC     -.15602587                            #  (COS76 - COS30)/4
033396,000607: 
033397,000608: 14,2604           06233 26112  CSS33              2DEC     .197002688                            #  COS(1/2(76))/4
033398,000609: 
033399,000610:                                                                                                  # V1             =       12D
033400,000611: 14,2606           77414        PICEND             BOF      EXIT                                  
033401,000612: 14,2607           01745                                    VFLAG                                 
033402,000613: 14,2610           30621                                    P52F                                  
033403,000614: 14,2611           05671        P52I               TC       ALARM                                 
033404,000615: 14,2612           00405                           OCT      405                                   
033405,000616: 14,2613           35023                           CAF      V05N09                                
033406,000617: 14,2614           04636                           TC       BANKCALL                              
033407,000618: 14,2615           20743                           CADR     GOFLASH                               
033408,000619: 14,2616           04103                           TC       GOTOPOOH                              
033409,000620: 14,2617           02622                           TC       R51                                   #  PROCEED - DO R51 FINE ALIGN
033410,000621: 14,2620           02407                           TC       P52C                                  #  RECYCLE - VEHICLE HAS BEEN MANUEVERED                 
033411,000622: 14,2621           77776        P52F               EXIT                                           
033412,000623: 

Page 754

033414,000625: 
033415,000626:                                                                                                  #  NAME - R51    FINE ALIGN
033416,000627:                                                                                                  #  FUNCTION - TO ALIGN THE STABLE MEMBER TO REFSMMAT
033417,000628:                                                                                                  #  INPUT - BESTI, BESTJ (PAIR OF STAR NO )
033418,000629:                                                                                                  #  OUTPUT - GYRO TORQUE PULSES
033419,000630:                                                                                                  #  SUBROUTINES - R52, R54, R55 (SXTNB, NBSM, AXISGEN
033420,000631: 
033421,000632: 14,2622                                           COUNT*   $$/R51                                
033422,000633: 14,2622           34770        R51                CAF      BIT1                                  
033423,000634: 14,2623           54304        R51.3              TS       STARIND                               
033424,000635: 14,2624           05561                           TC       DOWNFLAG                              
033425,000636: 14,2625           00025                           ADRES    TARG2FLG                              
033426,000637: 
033427,000638: 14,2626           05402                           TC       PHASCHNG                              
033428,000639: 14,2627           05024                           OCT      05024                                 #  RESTART  GR 4  FOR R52-R53
033429,000640: 14,2630           13000                           OCT      13000                                 
033430,000641: 14,2631           50304                           INDEX    STARIND                               
033431,000642: 14,2632           30302                           CA       BESTI                                 
033432,000643: 14,2633           00006                           EXTEND                                         
033433,000644: 14,2634           73004                           MP       1/6TH                                 
033434,000645: 14,2635           55140                           TS       STARCODE                              
033435,000646: 14,2636           06006                           TC       INTPRET                               
033436,000647: 14,2637           77624                           CALL                                           
033437,000648: 14,2640           30761                                    R51DSPA                               
033438,000649: 14,2641           72131                           SSP      LXA,1                                 
033439,000650: 14,2642           00051                                    S1                                    
033440,000651: 14,2643           00000                                    0                                     
033441,000652: 14,2644           00304                                    STARIND                               
033442,000653: 14,2645           77700                           TIX,1                                          
033443,000654: 14,2646           30651                                    R51ST                                 
033444,000655: 14,2647           36617                           STCALL   STARSAV2                              #  2ND STAR
033445,000656: 14,2650           30652                                    R51ST      +1                         
033446,000657: 14,2651           02611        R51ST              STORE    STARSAV1                              #  1ST STAR
033447,000658: 14,2652           54335                 +1        SLOAD    SL                                    #  IS THIS P54
033448,000659: 14,2653           01215                                    MODREG                                
033449,000660: 14,2654           20215                                    12D                                   
033450,000661: 14,2655           45030                           BHIZ     CALL                                  
033451,000662: 14,2656           30753                                    R51A                                  #  NO
033452,000663: 14,2657           36105                                    R56                                   
033453,000664: 14,2660           77624        R51B               CALL                                           
033454,000665: 14,2661           36052                                    SXTSM                                 
033455,000666: 14,2662           02617                           STORE    STARSAV2                              
033456,000667: 14,2663           45145                           DLOAD    CALL                                  
033457,000668: 14,2664           02607                                    TSIGHT                                
033458,000669: 14,2665           31651                                    PLANET                                
033459,000670: 14,2666           53521                           MXV      UNIT                                  
033460,000671: 14,2667           01734                                    REFSMMAT                              
033461,000672: 14,2670           77776                           EXIT                                           
033462,000673: 14,2671           10304                           CCS      STARIND                               
033463,000674: 14,2672           02744                           TC       R51.4                                 
033464,000675: 14,2673           06006                           TC       INTPRET                               
033465,000676: 14,2674           26736                           STOVL    STARAD                                

Page 755

033467,000678: 14,2675           02617                                    STARSAV2                              
033468,000679: 14,2676           24007                           STOVL    6D                                    
033469,000680: 14,2677           02611                                    STARSAV1                              
033470,000681: 14,2700           24015                           STOVL    12D                                   
033471,000682: 14,2701           02601                                    PLANVEC                               
033472,000683: 14,2702           36744                           STCALL   STARAD     +6                         
033473,000684: 14,2703           34657                                    R54                                   #  STAR DATA TEST
033474,000685: 14,2704           45014                           BOFF     CALL                                  
033475,000686: 14,2705           00354                                    FREEFLAG                              
033476,000687: 14,2706           30757                                    R51K                                  
033477,000688: 14,2707           47432                                    AXISGEN                               
033478,000689: 
033479,000690:                                                                                                  #  NAME - R55 - GYRO TORQUE
033480,000691:                                                                                                  #  FUNCTION - COMPUTE AND SEND GYRO PULSES
033481,000692:                                                                                                  #  INPUT - X,Y,ZDC - REFSMMAT WRT PRESENT STABLE MEMBER
033482,000693:                                                                                                  #  OUTPUT - GYRO PULSES
033483,000694:                                                                                                  #  SUBROUTINES - CALCGTA, GOFLASH, GODSPR, IMUFINE, IMUPULSE, GOPERF1
033484,000695: 
033485,000696: 14,2710                                           COUNT*   $$/R55                                
033486,000697: 14,2710           77624        R55                CALL                                           #  COMPUTE AND SEND GYRO PULSES
033487,000698: 14,2711           47240                                    CALCGTA                               
033488,000699: 14,2712           77776        PULSEM             EXIT                                           
033489,000700: 14,2713           35040        R55.1              CAF      V06N93                                
033490,000701: 14,2714           04636                           TC       BANKCALL                              
033491,000702: 14,2715           20743                           CADR     GOFLASH                               
033492,000703: 14,2716           04103                           TC       GOTOPOOH                              
033493,000704: 14,2717           02721                           TC       R55.2                                 
033494,000705: 14,2720           02734                           TC       R55RET                                
033495,000706: 14,2721           05402        R55.2              TC       PHASCHNG                              
033496,000707: 14,2722           00314                           OCT      00314                                 
033497,000708: 14,2723  01,2165               4P31SPT1           =        4.31SPOT                              
033498,000709: 14,2723           33002                           CA       R55CDR                                
033499,000710: 14,2724           04636                           TC       BANKCALL                              
033500,000711: 14,2725           17244                           CADR     IMUPULSE                              
033501,000712: 14,2726           04636                           TC       BANKCALL                              
033502,000713: 14,2727           17644                           CADR     IMUSTALL                              
033503,000714: 14,2730           03766                           TC       217ALARM                              #  BAD END
033504,000715: 14,2731           05402                           TC       PHASCHNG                              
033505,000716: 14,2732           05024                           OCT      05024                                 
033506,000717: 14,2733           13000                           OCT      13000                                 
033507,000718: 14,2734           05561        R55RET             TC       DOWNFLAG                              
033508,000719: 14,2735           00051                           ADRES    PFRATFLG                              
033509,000720: 14,2736                                           COUNT*   $$/R51                                
033510,000721: 14,2736           35775        R51KA              CAF      OCT14                                 
033511,000722: 14,2737           04636                           TC       BANKCALL                              
033512,000723: 14,2740           21067                           CADR     GOPERF1                               
033513,000724: 14,2741           04103                           TC       GOTOPOOH                              
033514,000725: 14,2742           02407                           TC       P52C                                  #  V33
033515,000726: 14,2743           04103                           TC       GOTOPOOH                              
033516,000727: 14,2744           06006        R51.4              TC       INTPRET                               
033517,000728: 14,2745           26601                           STOVL    PLANVEC                               

Page 756

033519,000730: 14,2746           02617                                    STARSAV2                              
033520,000731: 14,2747           02611                           STORE    STARSAV1                              
033521,000732: 14,2750           77776                           EXIT                                           
033522,000733: 14,2751           34772                           CAF      ZERO                                  
033523,000734: 14,2752           12623                           TCF      R51.3                                 #  CLEAR STARIND
033524,000735: 14,2753           77624        R51A               CALL                                           
033525,000736: 14,2754           31005                                    R52                                   
033526,000737: 14,2755           77650                           GOTO                                           
033527,000738: 14,2756           30660                                    R51B                                  
033528,000739: 14,2757           77776        R51K               EXIT                                           
033529,000740: 14,2760           02736                           TC       R51KA                                 
033530,000741: 14,2761           77420        R51DSPA            STQ      EXIT                                  
033531,000742: 14,2762           02657                                    SRTEMP                                
033532,000743: 14,2763           33003        R51DSP             CAF      V01N70                                
033533,000744: 14,2764           05540                           TC       VNFLASHR                              
033534,000745: 14,2765           02771                           TC       +4                                    
033535,000746: 14,2766           36211                           CAF      SIX                                   
033536,000747: 14,2767           05516                           TC       BLANKET                               
033537,000748: 14,2770           15205                           TCF      ENDOFJOB                              
033538,000749: 14,2771           03636                           TC       CHKSCODE                              
033539,000750: 14,2772           04362                           TC       FALTON                                
033540,000751: 14,2773           02763                           TC       R51DSP                                
033541,000752: 14,2774           06006                           TC       INTPRET                               
033542,000753: 14,2775           45034                           RTB      CALL                                  
033543,000754: 14,2776           51751                                    LOADTIME                              
033544,000755: 14,2777           31651                                    PLANET                                
033545,000756: 14,3000           77650                           GOTO                                           
033546,000757: 14,3001           02657                                    SRTEMP                                
033547,000758: 14,3002           02757        R55CDR             ECADR    OGC                                   
033548,000759: 14,3003           00306        V01N70             VN       0170                                  
033549,000760: 14,3004           05253        1/6TH              DEC      .1666667                              
033550,000761: 
033551,000762:                                                                                                  #  NAME - R52 - AUTOMATIC OPTICS POSITIONING ROUTINE
033552,000763: 
033553,000764:                                                                                                  #  FUNCTION-  (1) TO POINT THE STAR LOS OF THE OPTICS AT A STAR OR LANDMARK DEFINED BY THE PROGRAM OR BY DSKY INPUT.
033554,000765:                                                                                                  #             (2) TO POINT THE STAR LOS OF THE OPTICS AT THE LEM DURING RENDEZVOUS TRACKING OPERATIONS.
033555,000766: 
033556,000767:                                                                                                  #  CALLING SEQUENCE- CALL R52
033557,000768: 
033558,000769:                                                                                                  #  INPUT- 1. TARG1FLG AND TARG2FLG - PRESET BY CALLER
033559,000770:                                                                                                  #         2. RNDVZFLG AND TRACKFLG - PRESET BY CALLER
033560,000771:                                                                                                  #         3. STAR CODE - PRESET BY CALLER. ALSO INPUT THROUGH DSKY
033561,000772:                                                                                                  #         4. LAT, LONG AND ALT OF LANDMARK - INPUT THROUGH DSKY
033562,000773:                                                                                                  #         5. NO. OF MARKS (MARKINDX) - PRESET BY CALLER
033563,000774: 
033564,000775:                                                                                                  #  OUTPUT- DRIVE SHAFT AND TRUNNION CDUS
033565,000776: 
033566,000777:                                                                                                  #  SUBROUTINES-  1.  FIXDELAY            7.  CLEANDSP
033567,000778:                                                                                                  #                2.  GOPERF1             8.  GODSPR
033568,000779:                                                                                                  #                3.  GOFLASH             9.  REFLASHR
033569,000780:                                                                                                  #                4.  R53                 10. R52.2

Page 757

033571,000782:                                                                                                  #                5.  ALARM               11. R52.3
033572,000783:                                                                                                  #                6.  SR52.1
033573,000784: 
033574,000785: 14,3005                                           COUNT*   $$/R52                                
033575,000786: 14,3005           77614        R52                CLEAR                                          
033576,000787: 14,3006           04265                                    ADVTRK                                
033577,000788: 14,3007           77420        R52VRB             STQ      EXIT                                  
033578,000789: 14,3010           02576                                    SAVQR52                               
033579,000790: 14,3011           35043                           CAF      EBANK5                                #  CALLER NOT ALWAYS IN E5.
033580,000791: 14,3012           56003                           XCH      EBANK                                 
033581,000792: 14,3013           55577                           TS       R52BNKSV                              
033582,000793: 14,3014           00006                           EXTEND                                         
033583,000794: 14,3015           30036                           DCA      CDUT                                  
033584,000795: 14,3016           53313                           DXCH     DESOPTT                               
033585,000796: 14,3017           00006                           EXTEND                                         
033586,000797: 14,3020           30025                           DCA      TIME2                                 
033587,000798: 14,3021           52364                           DXCH     AOPOLD                                
033588,000799: 14,3022           06006                           TC       INTPRET                               
033589,000800: 14,3023           43131                           SSP      CLEAR                                 
033590,000801: 14,3024           01324                                    OPTIND                                
033591,000802: 14,3025           00000                                    0                                     
033592,000803: 14,3026           00271                                    R53FLAG                               
033593,000804: 14,3027           43014                           BON      CLEAR                                 
033594,000805: 14,3030           00705                                    TARG1FLG                              
033595,000806: 14,3031           31222                                    R52H                                  
033596,000807: 14,3032           03660                                    TERMIFLG                              
033597,000808: 14,3033           77776                           EXIT                                           
033598,000809: 14,3034           31354        R52C               CA       SWSAMPLE                              #  IS OPTICS MODE IN AGC
033599,000810: 14,3035           00006                           EXTEND                                         
033600,000811: 14,3036           63245                           BZMF     R52M                                  #  MANUAL
033601,000812: 14,3037           06006        R52D               TC       INTPRET                               #  THIS IS SR52.1 - NOW IN-LINE
033602,000813:                                                                                                  #  NAME - SR52.1
033603,000814: 
033604,000815:                                                                                                  #  FUNCTION
033605,000816:                                                                                                  #   TARG1 AND TARG2 FLAGS ARE LOOKED AT TO DETERMINE IF THE TARGET IS THE
033606,000817:                                                                                                  #   LEM, STAR OR LANDMARK. IN CASE OF LEM OR LMK, THE PRESENT TIME PLUS
033607,000818:                                                                                                  #   2 SECONDS IS SAVED IN AOPTIME (ALIAS STARAD, +1). IF THE LEM IS 
033608,000819:                                                                                                  #   THE TARGET THEN CONIC UPDATES OF THE CSM AND LEM ARE MADE TO
033609,000820:                                                                                                  #   THE TIME IN AOPTIME. THE UNIT OF THE DIFFERENCE OF LEM AND CSM
033610,000821:                                                                                                  #   POSITION VECTORS BECOMES THE REFERENCE SIGHTING VECTOR USED IN THE
033611,000822:                                                                                                  #   COMMON PART OF THIS PROGRAM.
033612,000823: 
033613,000824:                                                                                                  #   IN THE CASE OF LANDMARK, THE CSM IS UPDATED CONICALLY. THE RADIUS
033614,000825:                                                                                                  #   VECTOR FOR THE LANDMARK IS OBTAINED FROM LALOTORV. BOTH OF THESE ARE
033615,000826:                                                                                                  #   FOUND FOR THE TIME IN AOPTIME. THE UNIT OF THE DIFFERENCE BETWEEN
033616,000827:                                                                                                  #   THE LANDMARK AND CSM RADIUS VECTORS BECOMES THE REFERENCE SIGHTING
033617,000828:                                                                                                  #   VECTOR FOR THE COMMON PART OF THIS ROUTINE.
033618,000829: 
033619,000830:                                                                                                  #   IF A STAR IS THE TARGET, THE PROPER STAR IS OBTAINED FROM THE CATALOG
033620,000831:                                                                                                  #   AND THIS VECTOR BECOMES THE REFERENCE SIGHTING VECTOR.
033621,000832: 
033622,000833:                                                                                                  #   THE COMMON PART OF THIS PROGRAM TRANSFORMS THE REFERENCE SIGHTING

Page 758

033624,000835:                                                                                                  #   VECTOR INTO STABLE MEMBER COORDINATES. IT READS THE IMU-CDUS AND USES
033625,000836:                                                                                                  #   THIS DATA IN A CALL TO CALCSXA. ON RETURN FROM CALCSXA A TEST IS
033626,000837:                                                                                                  #   MADE TO SEE IF THE TRUNNION ANGLE IS GREATER THAN 90DEG. OR 50DEG.
033627,000838: 
033628,000839:                                                                                                  #  OUTPUT
033629,000840:                                                                                                  #   SAC - SINGLE PREC, 2S COMP, SCALED AT HALF REVS - SHAFT ANGLE DESIRED
033630,000841:                                                                                                  #   PAC - SINGLE PREC, 2S COMP SCALED AT EIGTH REVS - TRUNNION ANGLE DESIRED
033631,000842: 
033632,000843:                                                                                                  #  INITIALIZATION
033633,000844:                                                                                                  #   IF TARG1FLG =1 THEN TARGET IS LEM - NO OTHER INPUT REQUIRED
033634,000845:                                                                                                  #   IF TARG1FLG =0 AND TARG2FLG =0 THE TARGET IS STAR, STARIND SHOULD
033635,000846:                                                                                                  #   0 OR 1 DENOTING BESTI OR BESTJ RESPECTIVELY AS STAR CODE. STAR CODES
033636,000847:                                                                                                  #   ARE 6 TIMES STAR NUMBER.
033637,000848:                                                                                                  #   IF TARG1FLG =0 AND TARG2FLG =1 THEN TARGET IS LANDMARK. SEE ROUTINE
033638,000849:                                                                                                  #   LALOTORV FOR INPUT REQUIREMENTS. HERE FIXERAD=1 FOR CONSTANT EARTH
033639,000850:                                                                                                  #   RADIUS
033640,000851: 
033641,000852:                                                                                                  #  DEBRIS
033642,000853:                                                                                                  #   WORK AREA
033643,000854:                                                                                                  #   STARAD - STAR+5 (STAR IS DESIRED LOS IN STABLE MEMBER COORDINATES)
033644,000855: 
033645,000856: 14,3040           43234                 +1        RTB      DAD                                   
033646,000857: 14,3041           51751                                    LOADTIME                              
033647,000858: 14,3042           31271                                    2.4SECDP                              
033648,000859: 14,3043           45214                           BOFF     DSU                                   
033649,000860: 14,3044           04741                                    P24FLAG                               
033650,000861: 14,3045           31047                                    +2                                    
033651,000862: 14,3046           31273                                    .5SECDP                               
033652,000863: 14,3047           02347                           STORE    AOPTIME                               
033653,000864: 14,3050           43014                           BON      BON                                   
033654,000865: 14,3051           00705                                    TARG1FLG                              
033655,000866: 14,3052           31066                                    LEM52                                 
033656,000867: 14,3053           00706                                    TARG2FLG                              
033657,000868: 14,3054           31075                                    LMK52                                 
033658,000869: 14,3055           72131                           SSP      LXA,1                                 
033659,000870: 14,3056           00051                                    S1                                    
033660,000871: 14,3057           00000                                    0                                     
033661,000872: 14,3060           00304                                    STARIND                               
033662,000873: 14,3061           77700                           TIX,1                                          
033663,000874: 14,3062           31116                                    ST52ST                                
033664,000875: 14,3063           52175                           VLOAD    GOTO                                  
033665,000876: 14,3064           02617                                    STARSAV2                              
033666,000877: 14,3065           31120                                    COM52                                 
033667,000878: 14,3066           77745        LEM52              DLOAD                                          
033668,000879: 14,3067           02347                                    AOPTIME                               
033669,000880: 14,3070           34041                           STCALL   TDEC1                                 
033670,000881: 14,3071           27202                                    LEMCONIC                              
033671,000882: 14,3072           52175                           VLOAD    GOTO                                  
033672,000883: 14,3073           00001                                    RATT                                  
033673,000884: 14,3074           31105                                    LMKLMCOM                              

Page 759

033675,000886: 14,3075           71214        LMK52              BON      DLOAD                                 
033676,000887: 14,3076           04305                                    ADVTRK                                
033677,000888: 14,3077           54040                                    ADVTRACK                              
033678,000889: 14,3100           02347                                    AOPTIME                               
033679,000890: 14,3101           77624                           CALL                                           
033680,000891: 14,3102           26524                                    LALOTORV                              
033681,000892: 14,3103           77775                           VLOAD                                          
033682,000893: 14,3104           02152                                    ALPHAV                                
033683,000894: 14,3105           16766        LMKLMCOM           STODL    STAR                                  
033684,000895: 14,3106           02347                                    AOPTIME                               
033685,000896: 14,3107           34041                           STCALL   TDEC1                                 
033686,000897: 14,3110           27170                                    CSMCONIC                              
033687,000898: 14,3111           52375                           VLOAD    VSU                                   
033688,000899: 14,3112           02766                                    STAR                                  
033689,000900: 14,3113           00001                                    RATT                                  
033690,000901: 14,3114           52056                           UNIT     GOTO                                  
033691,000902: 14,3115           31120                                    COM52                                 
033692,000903: 14,3116           77775        ST52ST             VLOAD                                          
033693,000904: 14,3117           02611                                    STARSAV1                              
033694,000905: 14,3120           53521        COM52              MXV      UNIT                                  
033695,000906: 14,3121           01734                                    REFSMMAT                              
033696,000907: 14,3122           02766                           STORE    STAR                                  
033697,000908: 14,3123           45001                           SETPD    CALL                                  
033698,000909: 14,3124           00001                                    0                                     
033699,000910: 14,3125           47530                                    CDUTRIG                               #  COMPUTES SINES AND COSINES FOR CALCSXA
033700,000911: 14,3126           77624                           CALL                                           #        NOW EXPECT TO SEE THE CDU ANGLES
033701,000912: 14,3127           46034                                    CALCSXA                               
033702,000913: 14,3130           71214                           BON      DLOAD                                 
033703,000914: 14,3131           01710                                    CULTFLAG                              
033704,000915: 14,3132           31276                                    R52L                                  #  GR 90 DEGREES
033705,000916: 14,3133           02776                                    PAC                                   
033706,000917: 14,3134           51025                           DSU      BPL                                   
033707,000918: 14,3135           31267                                    38TRDEG                               
033708,000919: 14,3136           31241                                    R52J                                  #  GR 50 DEGREES
033709,000920: 14,3137           45345                           DLOAD    DSU                                   
033710,000921: 14,3140           02776                                    PAC                                   
033711,000922: 14,3141           31275                                    20DEGSMN                              
033712,000923: 14,3142           77440                           BMN      EXIT                                  
033713,000924: 14,3143           31241                                    R52J                                  
033714,000925: 14,3144           31775                           CA       PAC                                   
033715,000926: 14,3145           54330                           TS       PACTEMP                               
033716,000927: 14,3146           06006        R52JA              TC       INTPRET                               
033717,000928: 14,3147           43014                           BON      BOFF                                  
033718,000929: 14,3150           00705                                    TARG1FLG                              
033719,000930: 14,3151           31170                                    R52E                                  
033720,000931: 14,3152           04741                                    P24FLAG                               
033721,000932: 14,3153           31161                                    R53CHK                                
033722,000933: 14,3154           71214                           BOFCLR   DLOAD                                 
033723,000934: 14,3155           04241                                    NEWLMFLG                              
033724,000935: 14,3156           16530                                    RATESUB                               

Page 760

033726,000937: 14,3157           02347                                    AOPTIME                               
033727,000938: 14,3160           00364                           STORE    AOPOLD                                
033728,000939: 14,3161           77414        R53CHK             BON      EXIT                                  
033729,000940: 14,3162           00311                                    R53FLAG                               
033730,000941: 14,3163           31170                                    R52E                                  
033731,000942: 14,3164           33265                           CAF      V06N92                                #  NO
033732,000943: 14,3165           04636                           TC       BANKCALL                              
033733,000944: 14,3166           20710                           CADR     GODSPR                                
033734,000945: 14,3167           06006                           TC       INTPRET                               
033735,000946: 14,3170           77776        R52E               EXIT                                           
033736,000947: 14,3171           30330                           CA       PACTEMP                               
033737,000948: 14,3172           55312                           TS       DESOPTT                               
033738,000949: 14,3173           31773                           CA       SAC                                   
033739,000950: 14,3174           55313                           TS       DESOPTS                               
033740,000951: 14,3175           05354        R52F               TC       CHECKMM                               
033741,000952: 14,3176           00030                           MM       24         B-14                       
033742,000953: 14,3177           13202                           TCF      R52FA                                 #  NO
033743,000954: 14,3200           34773                           CAF      FIVE                                  #  YES DELAY .05 SEC
033744,000955: 14,3201           13203                           TCF      R52FA      +1                         
033745,000956: 14,3202           35011        R52FA              CAF      .5SEC                                 #  WAIT .5 SEC
033746,000957: 14,3203           04636                 +1        TC       BANKCALL                              
033747,000958: 14,3204           01731                           CADR     DELAYJOB                              
033748,000959: 14,3205           34757                           CAF      TARG1BIT                              
033749,000960: 14,3206           70075                           MASK     FLAGWRD1                              
033750,000961: 14,3207           10000                           CCS      A                                     
033751,000962: 14,3210           03223                           TC       R52HA                                 
033752,000963: 
033753,000964: 14,3211           34752                           CAF      TERMIBIT                              
033754,000965: 14,3212           70103                           MASK     FLAGWRD7                              
033755,000966: 14,3213           00006                           EXTEND                                         
033756,000967: 14,3214           13034                           BZF      R52C                                  
033757,000968: 
033758,000969: 14,3215           31577        R52Q               CA       R52BNKSV                              
033759,000970: 14,3216           54003                           TS       EBANK                                 
033760,000971: 
033761,000972: 14,3217           06006                           TC       INTPRET                               
033762,000973: 14,3220           77650                           GOTO                                           
033763,000974: 14,3221           02576                                    SAVQR52                               
033764,000975: 
033765,000976: 14,3222           77776        R52H               EXIT                                           #  LEM
033766,000977: 14,3223           04636        R52HA              TC       BANKCALL                              
033767,000978: 14,3224           76333                           CADR     R61CSM                                
033768,000979: 14,3225           34764                           CAF      TRACKBIT                              
033769,000980: 14,3226           70075                           MASK     FLAGWRD1                              
033770,000981: 14,3227           00006                           EXTEND                                         
033771,000982: 14,3230           13215                           BZF      R52Q                                  
033772,000983: 14,3231           06006                           TC       INTPRET                               
033773,000984: 14,3232           52014                           BOF      GOTO                                  
033774,000985: 14,3233           00750                                    UPDATFLG                              
033775,000986: 14,3234           31236                                    R52SYNC                               

Page 761

033777,000988: 14,3235           31040                                    R52D       +1                         
033778,000989: 14,3236           77776        R52SYNC            EXIT                                           
033779,000990: 14,3237           33311                           CAF      1.8SEC                                
033780,000991: 14,3240           13203                           TCF      R52FA      +1                         
033781,000992: 14,3241           77776        R52J               EXIT                                           
033782,000993: 14,3242           33266                           CA       38TRDEG                               
033783,000994: 14,3243           54330                           TS       PACTEMP                               
033784,000995: 14,3244           03146                           TC       R52JA                                 
033785,000996: 14,3245           34763        R52M               CAF      R53FLBIT                              #  IS R53FLAG SET
033786,000997: 14,3246           70074                           MASK     FLAGWRD0                              
033787,000998: 14,3247           10000                           CCS      A                                     
033788,000999: 14,3250           03316                           TC       R52G                                  #  YES
033789,001000: 14,3251           00004                           INHINT                                         #  NO
033790,001001: 14,3252           37645                           CAF      PRIO24                                
033791,001002: 14,3253           05135                           TC       FINDVAC                               
033792,001003: 14,3254  E7,1722                                  EBANK=   MRKBUF1                               
033793,001004: 14,3254           03260 30067                     2CADR    R53JOB                                
033794,001005: 
033795,001006: 14,3256           00003                           RELINT                                         
033796,001007: 14,3257           03316                           TC       R52G                                  
033797,001008: 14,3260           06006        R53JOB             TC       INTPRET                               
033798,001009: 14,3261           77624                           CALL                                           
033799,001010: 14,3262           31571                                    R53                                   
033800,001011: 14,3263           77776        ENDPLAC            EXIT                                           #  INTERPRETER RETURN TO ENDOFJOB (R22 USES)
033801,001012: 14,3264           05205                           TC       ENDOFJOB                              
033802,001013: 14,3265           01534        V06N92             VN       00692                                 
033803,001014: 14,3266           25252 25254  38TRDEG            2DEC     .66666667                             #  CORRESPONDS TO 50 DEGS IN TRUNNION
033804,001015: 
033805,001016: 14,3270           00000 00360  2.4SECDP           2DEC     240        B-28                       
033806,001017: 
033807,001018: 14,3272           00000 00062  .5SECDP            2DEC     50         B-28                       
033808,001019: 
033809,001020: 14,3274           61740        20DEGSMN           DEC      -07199     B-14                       
033810,001021: 14,3275           77777                           DEC      -0         B-14                       
033811,001022: 14,3276           77414        R52L               BON      EXIT                                  
033812,001023: 14,3277           00705                                    TARG1FLG                              
033813,001024: 14,3300           31241                                    R52J                                  
033814,001025: 14,3301           33310                           CAF      OCT404                                
033815,001026: 14,3302           04636                           TC       BANKCALL                              
033816,001027: 14,3303           21766                           CADR     PRIOLARM                              
033817,001028: 14,3304           13312                           TCF      TERM52                                #  TERMINATE
033818,001029: 14,3305           13175                           TCF      R52F                                  #  PROCEED
033819,001030: 14,3306           13175                           TCF      R52F                                  #  NO PROVISION FOR NEW DATA
033820,001031: 14,3307           15205                           TCF      ENDOFJOB                              
033821,001032: 
033822,001033: 14,3310           00404        OCT404             OCT      404                                   
033823,001034: 
033824,001035: 14,3311           00264        1.8SEC             DEC      180        B-14                       
033825,001036: 
033826,001037: 14,3312           04636        TERM52             TC       BANKCALL                              

Page 762

033828,001039: 14,3313           20575                           CADR     KLEENEX                               
033829,001040: 
033830,001041: 14,3314           04655                           TC       POSTJUMP                              
033831,001042: 14,3315           16031                           CADR     TERMSXT                               
033832,001043: 
033833,001044: 14,3316           05354        R52G               TC       CHECKMM                               
033834,001045: 14,3317           00030                           MM       24         B-14                       
033835,001046: 14,3320           13202                           TCF      R52FA                                 #  NO
033836,001047: 14,3321           11131                           CCS      PASSCNT                               #  IS THIS THE NTH(N = NO. PASS)TIME THRU
033837,001048: 14,3322           13407                           TCF      NOT4TH                                #  NO
033838,001049: 14,3323           40076                           CS       FLAGWRD2                              #  HAS A NEW MARK BEEN TAKEN
033839,001050: 14,3324           74766                           MASK     P24MKBIT                              
033840,001051: 14,3325           10000                           CCS      A                                     
033841,001052: 14,3326           13037                           TCF      R52D                                  #  NO
033842,001053: 14,3327           06006                           TC       INTPRET                               #  YES OBTAIN ADDRESS OF LAST MARK
033843,001054: 14,3330           46135                           SLOAD    BHIZ                                  
033844,001055: 14,3331           03754                                    P22DEX                                
033845,001056: 14,3332           31411                                    LSTMRK                                
033846,001057: 14,3333           54160                           AXC,1    XSU,1                                 
033847,001058: 14,3334           03530                           ECADR    SVMRKDAT   -7                         
033848,001059: 14,3335           03753                                    P22DEX                                
033849,001060: 14,3336           70730        R52K               SXA,1    DLOAD*                                
033850,001061: 14,3337           01077                                    MARKDATA                              
033851,001062: 14,3340           00001                                    0,1                                   
033852,001063: 14,3341           47044                           BPL      RTB                                   
033853,001064: 14,3342           31344                                    +2                                    
033854,001065: 14,3343           31037                                    R52D                                  
033855,001066: 14,3344           03670                           STORE    S22TOFF                               
033856,001067: 14,3345           34041                           STCALL   TDEC1                                 #  INT TO TIME OF MARK
033857,001068: 14,3346           27170                                    CSMCONIC                              
033858,001069: 14,3347           77775                           VLOAD                                          
033859,001070: 14,3350           00017                                    RATT1                                 
033860,001071: 14,3351           01046                           STORE    CSMPOS                                #  EARTH B29 MOON B27
033861,001072: 14,3352           45150                           LXA,1    CALL                                  
033862,001073: 14,3353           01077                                    MARKDATA                              
033863,001074: 14,3354           47017                                    GETUM                                 
033864,001075: 14,3355           25072                           STOVL    UM                                    #  UNIT TIME OF SIGHT VECTOR
033865,001076: 14,3356           01046                                    CSMPOS                                
033866,001077: 14,3357           77656                           UNIT                                           
033867,001078: 14,3360           36152                           STCALL   ALPHAV                                #  ALPHAV +4 = SINL FOR SETRE
033868,001079: 14,3361           26654                                    SETRE                                 
033869,001080: 14,3362           43345                           DLOAD    DAD                                   #  CORRECT R0 FOR ALT OF LMK
033870,001081: 14,3363           02240                                    ERADM                                 
033871,001082: 14,3364           00753                                    ALT                                   
033872,001083: 14,3365           02240                           STORE    ERADM                                 
033873,001084: 14,3366           77624                           CALL                                           #  COMPUTE LANDMARK VECTOR
033874,001085: 14,3367           61331                                    S22F2410                              
033875,001086: 14,3370           70414                           BOFF     VSR2                                  
033876,001087: 14,3371           04343                                    CMOONFLG                              
033877,001088: 14,3372           31373                                    +1                                    

Page 763

033879,001090: 14,3373           16152                           STODL    ALPHAV                                
033880,001091: 14,3374           03670                                    S22TOFF                               
033881,001092: 14,3375           77624                           CALL                                           #  COMPUTE LAT, LONG, ALT
033882,001093: 14,3376           26453                                    LAT-LONG                              
033883,001094: 14,3377           77624                           CALL                                           
033884,001095: 14,3400           62363                                    LLASRD                                
033885,001096: 14,3401           77414                           SET      EXIT                                  
033886,001097: 14,3402           04061                                    NEWLMFLG                              
033887,001098: 14,3403           05561                           TC       DOWNFLAG                              
033888,001099: 14,3404           00052                           ADRES    P24MKFLG                              
033889,001100: 14,3405           44770                           CS       ONE                                   
033890,001101: 14,3406           60737                           AD       NO.PASS                               
033891,001102: 14,3407           55131        NOT4TH             TS       PASSCNT                               
033892,001103: 14,3410           13037                           TCF      R52D                                  
033893,001104: 14,3411           52160        LSTMRK             AXC,1    GOTO                                  
033894,001105: 14,3412           03573                           ECADR    SVMRKDAT   +28D                       
033895,001106: 14,3413           31336                                    R52K                                  
033896,001107: 07,2000                                           SETLOC   RATEBNK                               
033897,001108: 07,2000                                           BANK                                           
033898,001109: 
033899,001110: 07,2530                                           COUNT*   $$/R52                                
033900,001111: 07,2530           45345        RATESUB            DLOAD    DSU                                   
033901,001112: 07,2531           02347                                    AOPTIME                               
033902,001113: 07,2532           00364                                    AOPOLD                                
033903,001114: 07,2533           77634                           RTB                                            
033904,001115: 07,2534           45636                                    SGNAGREE                              
033905,001116: 07,2535           77612                           SL4                                            
033906,001117: 07,2536           14772                           STODL    RATETEMP                              #  TIME DIF SCALLED B24
033907,001118: 07,2537           02347                                    AOPTIME                               
033908,001119: 07,2540           00364                           STORE    AOPOLD                                #  UPDATE OLD TIME REG
033909,001120: 07,2541           77545                           DLOAD    EXIT                                  #  LOAD SHAFT AND TRUNNION SCALE FACTORS
033910,001121: 07,2542           01771                                    TRUNSF                                
033911,001122: 07,2543           30772                           CA       RATETEMP   +1                         
033912,001123: 07,2544           56771                           XCH      RATETEMP                              #  TIME DIF SP SCALED B10
033913,001124: 07,2545           22007                           ZL                                             
033914,001125: 07,2546           30155                           CA       MPAC       +1                         #  SHAFTSF B25
033915,001126: 07,2547           00006                           EXTEND                                         
033916,001127: 07,2550           10771                           DV       RATETEMP                              #  B15
033917,001128: 07,2551           56001                           XCH      L                                     
033918,001129: 07,2552           31773                           CA       SAC                                   #  SHAFT
033919,001130: 07,2553           00006                           EXTEND                                         
033920,001131: 07,2554           21313                           MSU      DESOPTS                               #  B-1
033921,001132: 07,2555           00006                           EXTEND                                         
033922,001133: 07,2556           70001                           MP       L                                     #  B14
033923,001134: 07,2557           55657                           TS       SRTEMP                                
033924,001135: 07,2560           22007                           ZL                                             
033925,001136: 07,2561           30154                           CA       MPAC                                  #  TRUNSF B27
033926,001137: 07,2562           00006                           EXTEND                                         
033927,001138: 07,2563           10771                           DV       RATETEMP                              #  B17
033928,001139: 07,2564           56001                           XCH      L                                     

Page 764

033930,001141: 07,2565           30330                           CA       PACTEMP                               #  TRUNNION
033931,001142: 07,2566           00006                           EXTEND                                         
033932,001143: 07,2567           21312                           MSU      DESOPTT                               #  B-3
033933,001144: 07,2570           00006                           EXTEND                                         
033934,001145: 07,2571           70001                           MP       L                                     #  B14
033935,001146: 07,2572           55656                           TS       TRTEMP                                
033936,001147: 07,2573           34770                           CAF      ONE                                   #  INITIALIZE FOR SHAFT RATE
033937,001148: 07,2574           54772        MAGCK              TS       RATETEMP   +1                         #  CHECK IF SHAFT,TRUN RATES GR THAN MAX
033938,001149: 07,2575           50772                           INDEX    RATETEMP   +1                         
033939,001150: 07,2576           31656                           CA       TRTEMP                                
033940,001151: 07,2577           00006                           EXTEND                                         
033941,001152: 07,2600           62610                           BZMF     NEGRATE                               
033942,001153: 07,2601           62626                           AD       -MAXSRT                               
033943,001154: 07,2602           00006                           EXTEND                                         
033944,001155: 07,2603           62617                           BZMF     CMDCMP                                
033945,001156: 07,2604           42626                           CS       -MAXSRT                               
033946,001157: 07,2605           50772                           INDEX    RATETEMP   +1                         
033947,001158: 07,2606           55656                           TS       TRTEMP                                #  SET RATE TO +MAX RATE
033948,001159: 07,2607           12617                           TCF      CMDCMP                                
033949,001160: 07,2610           40000        NEGRATE            COM                                            
033950,001161: 07,2611           62626                           AD       -MAXSRT                               
033951,001162: 07,2612           00006                           EXTEND                                         
033952,001163: 07,2613           62617                           BZMF     CMDCMP                                
033953,001164: 07,2614           32626                           CA       -MAXSRT                               
033954,001165: 07,2615           50772                           INDEX    RATETEMP   +1                         
033955,001166: 07,2616           55656                           TS       TRTEMP                                #  SET RATE TO -MAX RATE
033956,001167: 07,2617           10772        CMDCMP             CCS      RATETEMP   +1                         
033957,001168: 07,2620           12574                           TCF      MAGCK                                 #  GO DO TRUN RATE
033958,001169: 07,2621           06006                           TC       INTPRET                               
033959,001170: 07,2622           77745                           DLOAD                                          
033960,001171: 07,2623           02657                                    TRTEMP                                
033961,001172: 07,2624           34736                           STCALL   TRATE                                 
033962,001173: 07,2625           31161                                    R53CHK                                
033963,001174: 07,2626           77177        -MAXSRT            DEC      -384       B-14                       #  MAX PULSES
033964,001175: 

Page 765

033966,001177:                                                                                                  #  NAME - LOCSAM ALIAS S50
033967,001178: 
033968,001179:                                                                                                  #  FUNCTION - TO COMPUTE QUATITIGS LISTED BELOW, USED IN THE
033969,001180:                                                                                                  #             IMU ALIGNMENT PROGRAMS
033970,001181: 
033971,001182:                                                                                                  #  DEFINE:
033972,001183:                                                                                                  #        RATT    = POSITION VECTOR OF CM  WRT PRIMARY BODY
033973,001184:                                                                                                  #        VATT    = VELOCITY VECTOR OF CM  WRT PRIMARY BODY
033974,001185:                                                                                                  #        RE      = RADIUS OF EARTH
033975,001186:                                                                                                  #        RM      = RADIUS OF MOON
033976,001187:                                                                                                  #        ECLIPOL = POLE OF ECLIPTIC SCALED BY TANGENTIAL VELOCITY OF EARTH
033977,001188:                                                                                                  #                  WRT TO SUN  OVER  THE VELOCITY OF LIGHT
033978,001189:                                                                                                  #        REM     = POSITION OF MOON  WRT  EARTH
033979,001190:                                                                                                  #        RES     = POSITION OF SUN  WRT  EARTH
033980,001191:                                                                                                  #        C       = VELOCITY OF LIGHT
033981,001192: 
033982,001193: 
033983,001194:                                                                                                  #                EARTH IS PRIMARY                        MOON IS PRIMARY
033984,001195:                                                                                                  #                        -                                       -
033985,001196:                                                                                                  #                VEARTH=-1(RATT)                         VEARTH=-1(REM+RATT)
033986,001197:                                                                                                  #                        -                                       -
033987,001198:                                                                                                  #                VMOON = 1(REM-RATT)                     VMOON =-1(RATT)
033988,001199:                                                                                                  #                        -                                       -
033989,001200:                                                                                                  #                VSUN  = 1(RES)                          VSUN  = 1(RES-REM)
033990,001201:                                                                                                  #                              -1
033991,001202:                                                                                                  #                CEARTH=COS(SIN  (RE/RATT)+5)            CEARTH=COS 5
033992,001203:                                                                                                  #                                                                      -1
033993,001204:                                                                                                  #                CMOON =COS 5                            CMOON =COS(SIN  CRM/RATT)+5)
033994,001205: 
033995,001206:                                                                                                  #                CSUN  =COS 15                           CSUN  =COS 15
033996,001207: 
033997,001208:                                                                                                  #                            VEL/C = VSUN X ECLIPOL + VATT/C
033998,001209: 
033999,001210: 
034000,001211:                                                                                                  #  CALL -        DLOAD   CALL
034001,001212:                                                                                                  #                        DESIRED TIME
034002,001213:                                                                                                  #                        LOCSAM
034003,001214: 
034004,001215:                                                                                                  #  INPUTS - MPAC = TIME
034005,001216: 
034006,001217:                                                                                                  #  OUTPUTS- VEARTH,VMOON,VSUN,CEARTH,CMOON,CSUN,VEL/C
034007,001218: 
034008,001219:                                                                                                  #  SUBROUTINES- LSPOS,CSMCONIC
034009,001220: 
034010,001221:                                                                                                  #  DEBRIS - VAC AREA, SEE SUBROUTINES
034011,001222: 

Page 766

034013,001224: 13,2000                                           SETLOC   SR52/1                                
034014,001225: 13,2000                                           BANK                                           
034015,001226: 
034016,001227: 13,2345                                           COUNT*   $$/S50                                
034017,001228: 
034018,001229: 13,2345  13,2345               LOCSAM             =        S50                                   
034019,001230: 13,2345           77620        S50                STQ                                            
034020,001231: 13,2346           00300                                    QMAJ                                  
034021,001232: 13,2347           36607                           STCALL   TSIGHT                                
034022,001233: 13,2350           54136                                    LSPOS                                 
034023,001234: 13,2351           26752                           STOVL    VMOON                                 
034024,001235: 13,2352           00003                                    2D                                    
034025,001236: 13,2353           16744                           STODL    VSUN                                  
034026,001237: 13,2354           02607                                    TSIGHT                                
034027,001238: 13,2355           34041                           STCALL   TDEC1                                 
034028,001239: 13,2356           27170                                    CSMCONIC                              
034029,001240: 13,2357           61131                           SSP      TIX,2                                 
034030,001241: 13,2360           00052                                    S2                                    
034031,001242: 13,2361           00000                                    0                                     
034032,001243: 13,2362           26405                                    MOONCNTR                              
034033,001244: 13,2363           52375        EARTCNTR           VLOAD    VSU                                   
034034,001245: 13,2364           02752                                    VMOON                                 
034035,001246: 13,2365           00001                                    RATT                                  
034036,001247: 13,2366           77656                           UNIT                                           
034037,001248: 13,2367           26752                           STOVL    VMOON                                 
034038,001249: 13,2370           00001                                    RATT                                  
034039,001250: 13,2371           57456                           UNIT     VCOMP                                 
034040,001251: 13,2372           16736                           STODL    VEARTH                                
034041,001252: 13,2373           34636                                    RSUBE                                 
034042,001253: 13,2374           77624                           CALL                                           
034043,001254: 13,2375           26445                                    OCCOS                                 
034044,001255: 13,2376           14017                           STODL    CEARTH                                
034045,001256: 13,2377           34654                                    CSS5                                  
034046,001257: 13,2400           24023                           STOVL    CMOON                                 
034047,001258: 13,2401           02744                                    VSUN                                  
034048,001259: 13,2402           77656                           UNIT                                           
034049,001260: 13,2403           36744                           STCALL   VSUN                                  
034050,001261: 13,2404           26432                                    ENDSAM                                
034051,001262: 13,2405           40575        MOONCNTR           VLOAD    VSR8                                  
034052,001263: 13,2406           02752                                    VMOON                                 
034053,001264: 13,2407           51362                           VSR1     BVSU                                  
034054,001265: 13,2410           02744                                    VSUN                                  
034055,001266: 13,2411           77656                           UNIT                                           
034056,001267: 13,2412           26744                           STOVL    VSUN                                  
034057,001268: 13,2413           02752                                    VMOON                                 
034058,001269: 13,2414           53455                           VAD      UNIT                                  
034059,001270: 13,2415           00001                                    RATT                                  
034060,001271: 13,2416           77676                           VCOMP                                          
034061,001272: 13,2417           26736                           STOVL    VEARTH                                

Page 767

034063,001274: 13,2420           00001                                    RATT                                  
034064,001275: 13,2421           57456                           UNIT     VCOMP                                 
034065,001276: 13,2422           16752                           STODL    VMOON                                 
034066,001277: 13,2423           34634                                    RSUBM                                 
034067,001278: 13,2424           77624                           CALL                                           
034068,001279: 13,2425           26445                                    OCCOS                                 
034069,001280: 13,2426           14023                           STODL    CMOON                                 
034070,001281: 13,2427           34654                                    CSS5                                  
034071,001282: 13,2430           24017                           STOVL    CEARTH                                
034072,001283: 13,2431           02744                                    VSUN                                  
034073,001284: 13,2432           77635        ENDSAM             VXV                                            
034074,001285: 13,2433           34644                                    ECLIPOL                               
034075,001286: 13,2434           27452                           STOVL    VEL/C                                 
034076,001287: 13,2435           00007                                    VATT                                  
034077,001288: 13,2436           53361                           VXSC     VAD                                   
034078,001289: 13,2437           34642                                    1/C                                   
034079,001290: 13,2440           03452                                    VEL/C                                 
034080,001291: 13,2441           17452                           STODL    VEL/C                                 
034081,001292: 13,2442           34656                                    CSSUN                                 
034082,001293: 13,2443           34021                           STCALL   CSUN                                  
034083,001294: 13,2444           00300                                    QMAJ                                  
034084,001295: 13,2445           70471        OCCOS              DDV      SR1                                   
034085,001296: 13,2446           00045                                    36D                                   
034086,001297: 13,2447           43336                           ASIN     DAD                                   
034087,001298: 13,2450           34640                                    5DEGREES                              
034088,001299: 13,2451           70546                           COS      SR1                                   
034089,001300: 13,2452           77616                           RVQ                                            
034090,001301: 16,2000                                           SETLOC   P50S2                                 
034091,001302: 16,2000                                           BANK                                           
034092,001303: 16,2633                                           COUNT*   $$/S50                                
034093,001304: 16,2633           00065 01265  RSUBM              2DEC     1738090    B-29                       #  MOON RADIUS IN METERS
034094,001305: 
034095,001306: 16,2635           00302 24533  RSUBE              2DEC     6378166    B-29                       
034096,001307: 
034097,001308: 16,2637           00343 21616  5DEGREES           2DEC     .013888889                            #  SCALED IN REVS
034098,001309: 
034099,001310: 16,2641           00000 13143  1/C                2DEC     .000042696 B-1                        #  1/(9835712 FT/CS) SCALED CSEC/M B+7
034100,001311: 
034101,001312: 16,2643           00000 00000  ECLIPOL            2DEC     0          B-28                       #  POLE OF ECLIPTIC FOR B0=.409157363336 RAD
034102,001313: 
034103,001314: 16,2645           77777 53213                     2DEC     -.0000395319722                            #  AND CONST.AB = 20.496 ARC-SEC
034104,001315: 
034105,001316: 16,2647           00001 17630                     2DEC     +.0000911652662                            #  ECLIPOL = CONST.AB.(0, -SIN B0, COS B0)
034106,001317: 
034107,001318: 16,2651           00001 16700  TSIGHT1            2DEC     24000      B-28                       
034108,001319: 
034109,001320: 16,2653                        CEARTH             =        14D                                   
034110,001321: 16,2653                        CSUN               =        16D                                   
034111,001322: 16,2653                        CMOON              =        18D                                   
034112,001323: 16,2653           07760 14473  CSS5               2DEC     .2490475                              #  (COS 5)/4
034113,001324: 

Page 768

034115,001326: 16,2655           07564 15042  CSSUN              2DEC     .24148                                #  COS 15 /4
034116,001327: 
034117,001328: 16,2657  16,2657               R54                =        CHKSDATA                              
034118,001329: 
034119,001330:                                                                                                  #  NAME - CHKSDATA
034120,001331: 
034121,001332:                                                                                                  #  FUNCTIONAL DESCRIPTION - CHECKS THE VALIDITY OF A PAIR OF STAR SIGHTINGS. WHEN A PAIR OF STAR SIGHTINGS ARE MADE
034122,001333:                                                                                                  #  BY THE ASTRONAUT THIS ROUTINE OPERATES AND CHECKS THE OBSERVED SIGHTINGS AGAINST STORED STAR VECTORS IN THE
034123,001334:                                                                                                  #  COMPUTER TO INSURE A PROPER SIGHTING WAS MADE. THE FOLLOWING COMPUTATIONS ARE PERFORMED_
034124,001335: 
034125,001336:                                                                                                  #        OS1 = OBSERVED STAR 1 VECTOR
034126,001337:                                                                                                  #        OS2 = OBSERVED STAR 2 VECTOR
034127,001338:                                                                                                  #        SS1 = STORED STAR 1 VECTOR
034128,001339:                                                                                                  #        SS2 = STORED STAR 2 VECTOR
034129,001340:                                                                                                  #         A1 = ARCCOS(OS1 - OS2)
034130,001341:                                                                                                  #         A2 = ARCCOS(SS1 - SS2)
034131,001342:                                                                                                  #          A = ABS(2(A1 - A2))
034132,001343: 
034133,001344:                                                                                                  #  THE ANGULAR DIFFERENCE IS DISPLAYED FOR ASTRONAUT ACCEPTENCE
034134,001345:                                                                                                  #  EXIT MODE 1. FREEFLAG SET  IMPLIES ASTRONAUT WANTS TO PROCEED
034135,001346:                                                                                                  #            2. FREEFLAG RESET IMPLIES ASTRONAUT WANTS TO RECYCLE            ERANCE)
034136,001347:                                                                                                  #  OUTPUT - 1. VERB 6,NOUN 3 - DISPLAYS ANGULAR DIFFERENCE BETWEEN 2 SETS OF STARS.
034137,001348:                                                                                                  #           2. STAR VECTORS FROM STAR CATALOG ARE LEFT IN 6D AND 12D.
034138,001349: 
034139,001350:                                                                                                  #  ERASABLE INITIALIZATION REQUIRED -
034140,001351:                                                                                                  #        1. MARK VECTORS ARE STORED IN STARAD AND STARAD +6.
034141,001352:                                                                                                  #        2. CATALOG VECTORS ARE STORED IN 6D AND 12D.
034142,001353: 
034143,001354:                                                                                                  #  DEBRIS -
034144,001355: 
034145,001356: 16,2657  0003777                                  EBANK=   WHOCARES                              
034146,001357: 16,2657                                           COUNT*   $$/R54                                
034147,001358: 16,2657           43020        CHKSDATA           STQ      SET                                   
034148,001359: 16,2660           02777                                    QMIN                                  
034149,001360: 16,2661           00074                                    FREEFLAG                              
034150,001361: 16,2662           77760        CHKSAB             AXC,1                                          #  SET X1 TO STORE EPHEMERIS DATA
034151,001362: 16,2663           02735                                    STARAD                                
034152,001363: 
034153,001364: 16,2664           47773        CHKSB              VLOAD*   DOT*                                  #  CAL. ANGLE THETA
034154,001365: 16,2665           00001                                    0,1                                   
034155,001366: 16,2666           00007                                    6,1                                   
034156,001367: 16,2667           65552                           SL1      ACOS                                  
034157,001368: 16,2670           00025                           STORE    THETA                                 
034158,001369: 16,2671           43014                           BOFF     INVERT                                #  BRANCH TO CHKSD IF THIS IS 2ND PASS
034159,001370: 16,2672           00354                                    FREEFLAG                              
034160,001371: 16,2673           34702                                    CHKSD                                 
034161,001372: 16,2674           00174                                    FREEFLAG                              #  CLEAR FREEFLAG
034162,001373: 16,2675           71360                           AXC,1    DLOAD                                 #  SET X1 TO MARK ANGLES
034163,001374: 16,2676           00006                                    6D                                    
034164,001375: 16,2677           00025                                    THETA                                 
034165,001376: 16,2700           34023                           STCALL   18D                                   
034166,001377: 16,2701           34664                                    CHKSB                                 

Page 769

034168,001379: 16,2702           45345        CHKSD              DLOAD    DSU                                   
034169,001380: 16,2703           00025                                    THETA                                 
034170,001381: 16,2704           00023                                    18D                                   #  COMPUTE POS DIFF
034171,001382: 16,2705           47046                           ABS      RTB                                   
034172,001383: 16,2706           45636                                    SGNAGREE                              
034173,001384: 16,2707           01251                           STORE    NORMTEM1                              
034174,001385: 16,2710           77414                           SET      EXIT                                  
034175,001386: 16,2711           00074                                    FREEFLAG                              
034176,001387: 16,2712           34772                           CAF      ZERO                                  
034177,001388: 16,2713           04636                           TC       BANKCALL                              
034178,001389: 16,2714           20715                           CADR     CLEANDSP                              
034179,001390: 
034180,001391: 16,2715           32727                           CAF      VB6N5                                 
034181,001392: 16,2716           04636                           TC       BANKCALL                              
034182,001393: 16,2717           20743                           CADR     GOFLASH                               
034183,001394: 16,2720           14103                           TCF      GOTOPOOH                              
034184,001395: 16,2721           02724                           TC       CHKSDA                                #  PROCEED
034185,001396: 16,2722           05561                           TC       DOWNFLAG                              
034186,001397: 16,2723           00014                           ADRES    FREEFLAG                              
034187,001398: 16,2724           06006        CHKSDA             TC       INTPRET                               
034188,001399: 16,2725           77650                           GOTO                                           
034189,001400: 16,2726           02777                                    QMIN                                  
034190,001401: 16,2727           01405        VB6N5              VN       605                                   
034191,001402: 
034192,001403: 16,2730                                           COUNT*   $$/R50                                
034193,001404: 16,2730           77773        MATMOVE            VLOAD*                                         #  TRANSFER MATRIX
034194,001405: 16,2731           00001                                    0,1                                   
034195,001406: 16,2732           10001                           STORE    0,2                                   
034196,001407: 16,2733           77773                           VLOAD*                                         
034197,001408: 16,2734           00007                                    6D,1                                  
034198,001409: 16,2735           10007                           STORE    6D,2                                  
034199,001410: 16,2736           77773                           VLOAD*                                         
034200,001411: 16,2737           00015                                    12D,1                                 
034201,001412: 16,2740           10015                           STORE    12D,2                                 
034202,001413: 16,2741           77616                           RVQ                                            
034203,001414: 16,2742           00056        DEGREE1            DEC      46         B-14                       
034204,001415: 16,2743           37722        DEG359             DEC      16338      B-14                       
034205,001416: 16,2744           00004        RDCDUS             INHINT                                         #  READ CDUS
034206,001417: 16,2745           00006                           EXTEND                                         
034207,001418: 16,2746           30033                           DCA      CDUX                                  
034208,001419: 16,2747           50120                           INDEX    FIXLOC                                
034209,001420: 16,2750           52002                           DXCH     1                                     
034210,001421: 16,2751           30034                           CA       CDUZ                                  
034211,001422: 16,2752           50120                           INDEX    FIXLOC                                
034212,001423: 16,2753           54003                           TS       3                                     
034213,001424: 16,2754           00003                           RELINT                                         
034214,001425: 16,2755           06030                           TC       DANZIG                                
034215,001426: 
034216,001427:                                                                                                  #  NAME - CALCSMSC
034217,001428: 
034218,001429:                                                                                                  #  FUNCTION - DETERMINE AND COMPUTE THE DESIRED GIMBAL ANGLES TO BE USED FOR COARSE ALIGNMENT.

Page 770

034220,001431: 
034221,001432:                                                                                                  #  CALLING SEQUENCE - CALL CALCSMSC
034222,001433: 
034223,001434:                                                                                                  #  INPUT - DESIRED IMU INERTIAL ORIENTATION VECTORS - XSMD, YSMD, ZSMD
034224,001435: 
034225,001436:                                                                                                  #  OUTPUT - GIMBAL ANGLES LEFT IN THETAD, +1, +2                         +
034226,001437: 
034227,001438:                                                                                                  #  SUBROUTINES USED - 1.CDUTRIG 2.CALCSMSC 3.CALCGA
034228,001439: 
034229,001440: 16,2000                                           SETLOC   P50S2                                 
034230,001441: 16,2000                                           BANK                                           
034231,001442: 16,2756                                           COUNT*   $$/R51                                
034232,001443: 16,2756           41345        CALCSMSC           DLOAD    DMP                                   
034233,001444: 16,2757           01142                                    SINCDUY                               
034234,001445: 16,2760           01152                                    COSCDUZ                               
034235,001446: 16,2761           77676                           DCOMP                                          
034236,001447: 16,2762           70525                           PDDL     SR1                                   
034237,001448: 16,2763           01144                                    SINCDUZ                               
034238,001449: 16,2764           41325                           PDDL     DMP                                   
034239,001450: 16,2765           01150                                    COSCDUY                               
034240,001451: 16,2766           01152                                    COSCDUZ                               
034241,001452: 16,2767           76466                           VDEF     VSL1                                  
034242,001453: 16,2770           16714                           STODL    XNB                                   
034243,001454: 16,2771           01146                                    SINCDUX                               
034244,001455: 16,2772           72405                           DMP      SL1                                   
034245,001456: 16,2773           01144                                    SINCDUZ                               
034246,001457: 16,2774           00033                           STORE    26D                                   
034247,001458: 16,2775           65205                           DMP      PDDL                                  
034248,001459: 16,2776           01142                                    SINCDUY                               
034249,001460: 16,2777           01154                                    COSCDUX                               
034250,001461: 16,3000           45205                           DMP      DSU                                   
034251,001462: 16,3001           01150                                    COSCDUY                               
034252,001463: 16,3002           41325                           PDDL     DMP                                   
034253,001464: 16,3003           01146                                    SINCDUX                               
034254,001465: 16,3004           01152                                    COSCDUZ                               
034255,001466: 16,3005           65276                           DCOMP    PDDL                                  
034256,001467: 16,3006           01154                                    COSCDUX                               
034257,001468: 16,3007           65205                           DMP      PDDL                                  
034258,001469: 16,3010           01142                                    SINCDUY                               
034259,001470: 16,3011           01150                                    COSCDUY                               
034260,001471: 16,3012           43205                           DMP      DAD                                   
034261,001472: 16,3013           00033                                    26D                                   
034262,001473: 16,3014           76466                           VDEF     VSL1                                  
034263,001474: 16,3015           02730                           STORE    ZNB                                   
034264,001475: 16,3016           76435                           VXV      VSL1                                  
034265,001476: 16,3017           02714                                    XNB                                   
034266,001477: 16,3020           02722                           STORE    YNB                                   
034267,001478: 16,3021           77616                           RVQ                                            
034268,001479: 

Page 771

034270,001481:                                                                                                  #  PROGRAM NAME - P51 - IMU ORIENTATION DETERMINATION            DATE - AUGUST 1,1969
034271,001482:                                                                                                  #  MODIFICATION BY ALBERT,BARNERT,HASLAM                         LOG SECTION - P51-P5
034272,001483: 
034273,001484:                                                                                                  #  FUNCTION -
034274,001485: 
034275,001486:                                                                                                  #  DETERMINES THE INERTIAL ORIENTATION OF THE IMU. THE PROGRAM IS SELECTED BY DSKY ENTRY. THE SIGHTING
034276,001487:                                                                                                  #  ROUTINE IS CALLED TO COLLECT THE CDU COUNTERS AND SHAFT AND TRUNNION ANGLES FOR A SIGHTED STAR. THE DATA IS
034277,001488:                                                                                                  #  THEN PROCESSED AS FOLLOWS.
034278,001489: 
034279,001490:                                                                                                  #        1. SEXTANT ANGLES ARE COMPUTED IN TERMS OF NAVIGATIONAL BASE COORDINATES. LET SA AND TA BE THE SHAFT AND
034280,001491:                                                                                                  #        TRUNNION ANGLES, RESPECTIVELY. THEN,
034281,001492:                                                                                                  #                -
034282,001493:                                                                                                  #                V  = (SIN(TA)*COS(SA), SIN(TA)*SIN(SA), COS(TA))        (A COLUMN VECTOR)
034283,001494:                                                                                                  #                 NB
034284,001495:                                                                                                  #        THE OUTPUT IS A HALF-UNIT VECTOR STORED IN STARM.
034285,001496: 
034286,001497:                                                                                                  #        2. THIS VECTOR IN NAV. BASE COORDS. IS THEN TRANSFORMED TO ONE IN STABLE MEMBER COORDINATES.
034287,001498: 
034288,001499:                                                                                                  #                -    T  T  T -
034289,001500:                                                                                                  #                V = Q *Q *Q *V  , WHERE
034290,001501:                                                                                                  #                     1  2  3  NB
034291,001502: 
034292,001503:                                                                                                  #                     ( COS(IG)   0    -SIN(IG) )
034293,001504:                                                                                                  #                     (                         )                                THE GIMBAL ANGLES ARE COMPUTED FROM
034294,001505:                                                                                                  #                Q  = (   0       1       0     ), IG= INNER GIMBAL ANGLE        THE CDU COUNTERS AT NBSM (USING AXIS-
034295,001506:                                                                                                  #                 1   (                         )                                ROT AND CDULOGIC)
034296,001507:                                                                                                  #                     ( SIN(IG)   0     COS(IG) )
034297,001508: 
034298,001509: 
034299,001510:                                                                                                  #                     ( COS(MG) SIN(MG)   0     )
034300,001511:                                                                                                  #                     (                         )
034301,001512:                                                                                                  #                Q  = (-SIN(MG) COS(MG)   0     ), MG= MIDDLE GIMBAL ANGLE
034302,001513:                                                                                                  #                 2   (                         )
034303,001514:                                                                                                  #                     (   0       0       1     )
034304,001515: 
034305,001516: 
034306,001517:                                                                                                  #                     (   1       0       0     )
034307,001518:                                                                                                  #                     (                         )
034308,001519:                                                                                                  #                Q  = (   0     COS(OG) SIN(OG) ), OG= OUTER GIMBAL ANGLE
034309,001520:                                                                                                  #                 3   (                         )
034310,001521:                                                                                                  #                     (   0    -SIN(OG) COS(OG) )
034311,001522: 
034312,001523:                                                                                                  #        3. THE STAR NUMBER IS SAVED AND THE SECOND STAR IS THEN SIMILARLY PROCESSED.
034313,001524: 
034314,001525:                                                                                                  #        4. THE ANGLE BETWEEN THE TWO STARS IS THEN CHECKED AT CKSDATA.
034315,001526: 
034316,001527:                                                                                                  #        5. REFSMMAT IS THEN COMPUTED AT AXISGEN AS FOLLOWS.
034317,001528:                                                                                                  #                    -      -
034318,001529:                                                                                                  #           LET S  AND S  BE TWO STAR VECTORS EXPRESSED IN TWO COORDINATE SYSTEMS, A AND B (BASIC AND STABLE MEMBER).

Page 772

034320,001531:                                                                                                  #                     1      2
034321,001532: 
034322,001533:                                                                                                  #      DEFINE,   -    -
034323,001534:                                                                                                  #                U  = S
034324,001535:                                                                                                  #                 A    A1
034325,001536: 
034326,001537:                                                                                                  #                -         -    -
034327,001538:                                                                                                  #                V  = UNIT(S  X S  )
034328,001539:                                                                                                  #                 A         A1   A2
034329,001540: 
034330,001541:                                                                                                  #                -    -   -
034331,001542:                                                                                                  #                W  = U X V
034332,001543:                                                                                                  #                 A    A   A
034333,001544: 
034334,001545:                                                                                                  #          AND
034335,001546:                                                                                                  #                -    -
034336,001547:                                                                                                  #                U  = S
034337,001548:                                                                                                  #                 B    B1
034338,001549: 
034339,001550:                                                                                                  #                -         -    -
034340,001551:                                                                                                  #                V  = UNIT(S  X S  )
034341,001552:                                                                                                  #                 B         B1   B2
034342,001553: 
034343,001554:                                                                                                  #                -    -   -
034344,001555:                                                                                                  #                W  = U X V
034345,001556:                                                                                                  #                 B    B   B
034346,001557: 
034347,001558:                                                                                                  #         THEN   -        -       -       -
034348,001559:                                                                                                  #                X  = U  *U + V  *V + W  *W
034349,001560:                                                                                                  #                      B1  A   B1  A   B1  A
034350,001561: 
034351,001562:                                                                                                  #                -        -       -       -              (REFSMMAT)
034352,001563:                                                                                                  #                Y  = U  *U + V  *V + W  *W
034353,001564:                                                                                                  #                      B2  A   B2  A   B2  A
034354,001565: 
034355,001566:                                                                                                  #                -        -       -       -
034356,001567:                                                                                                  #                Z  = U  *U + V  *V + W  *W
034357,001568:                                                                                                  #                      B3  A   B3  A   B3  A
034358,001569: 
034359,001570:                                                                                                  #           THE INPUTS CONSIST OF THE FOUR HALF-UNIT VECTORS STORED AS FOLLOWS
034360,001571:                                                                                                  #                -
034361,001572:                                                                                                  #                S   IN 6-11 OF THE VAC AREA
034362,001573:                                                                                                  #                 A1
034363,001574: 
034364,001575:                                                                                                  #                -
034365,001576:                                                                                                  #                S   IN 12-17 OF THE VAC AREA
034366,001577:                                                                                                  #                 A2
034367,001578: 
034368,001579:                                                                                                  #                -
034369,001580:                                                                                                  #                S   IN STARAD

Page 773

034371,001582:                                                                                                  #                 B1
034372,001583: 
034373,001584:                                                                                                  #                -
034374,001585:                                                                                                  #                S   IN STARAD +6
034375,001586:                                                                                                  #                 B2
034376,001587: 
034377,001588:                                                                                                  #  CALLING SEQUENCE
034378,001589: 
034379,001590:                                                                                                  #        THE PROGRAM IS CALLED BY THE ASTRONAUT BY DSKY ENTRY.
034380,001591: 
034381,001592:                                                                                                  #  SUBROUTINES CALLED.
034382,001593: 
034383,001594:                                                                                                  #        GOPERF3
034384,001595:                                                                                                  #        GOPERF1R
034385,001596:                                                                                                  #        GODSPR
034386,001597:                                                                                                  #        IMUCOARS
034387,001598:                                                                                                  #        IMUFIN20
034388,001599:                                                                                                  #        R53
034389,001600:                                                                                                  #        SXTNB
034390,001601:                                                                                                  #        NBSM
034391,001602:                                                                                                  #        MKRELEAS
034392,001603:                                                                                                  #        CHKSDATA
034393,001604:                                                                                                  #        MATMOVE
034394,001605: 
034395,001606:                                                                                                  #  ALARMS
034396,001607: 
034397,001608:                                                                                                  #        NONE.
034398,001609: 
034399,001610:                                                                                                  #  ERASABLE INITIALIZATION
034400,001611: 
034401,001612:                                                                                                  #        IMU ZERO FLAG SHOULD BE SET.
034402,001613: 
034403,001614:                                                                                                  #  OUTPUT
034404,001615: 
034405,001616:                                                                                                  #        REFSMMAT
034406,001617:                                                                                                  #        REFSMFLG
034407,001618: 
034408,001619:                                                                                                  #  DEBRIS
034409,001620: 
034410,001621:                                                                                                  #        WORK AREA
034411,001622:                                                                                                  #        STARAD
034412,001623:                                                                                                  #        STARIND
034413,001624:                                                                                                  #        BESTI
034414,001625:                                                                                                  #        BESTJ
034415,001626: 
034416,001627: 14,2000                                           SETLOC   P50S1                                 
034417,001628: 14,2000                                           BANK                                           
034418,001629: 14,3414                                           COUNT*   $$/P5153                              
034419,001630: 14,3414  14,3414               P53                EQUALS   P51                                   
034420,001631: 14,3414           41333        P51                CS       IMODES30                              
034421,001632: 14,3415           74760                           MASK     IMUOPBIT                              

Page 774

034423,001634: 14,3416           10000                           CCS      A                                     
034424,001635: 14,3417           03423                           TC       P51A                                  
034425,001636: 14,3420           05671                           TC       ALARM                                 
034426,001637: 14,3421           00210                           OCT      210                                   
034427,001638: 14,3422           04103                           TC       GOTOPOOH                              
034428,001639: 14,3423           04636        P51A               TC       BANKCALL                              
034429,001640: 14,3424           03745                           CADR     R02ZERO                               
034430,001641: 
034431,001642: 14,3425           34776        P51AA              CAF      PRFMSTAQ                              
034432,001643: 14,3426           04636                           TC       BANKCALL                              
034433,001644: 14,3427           21067                           CADR     GOPERF1                               
034434,001645: 14,3430           04103                           TC       GOTOPOOH                              #  TERM.
034435,001646: 14,3431           03454                           TC       P51B                                  #  V 33
034436,001647: 14,3432           05402                           TC       PHASCHNG                              
034437,001648: 14,3433           05024                           OCT      05024                                 
034438,001649: 14,3434           13000                           OCT      13000                                 
034439,001650: 14,3435           34772                           CAF      P51ZERO                               
034440,001651: 14,3436           55307                           TS       THETAD                                #  ZERO THE GIMBALS
034441,001652: 14,3437           55310                           TS       THETAD     +1                         
034442,001653: 14,3440           55311                           TS       THETAD     +2                         
034443,001654: 14,3441           35025                           CAF      V06N22                                
034444,001655: 14,3442           04636                           TC       BANKCALL                              
034445,001656: 14,3443           20705                           CADR     GODSPRET                              
034446,001657: 14,3444           33565                           CAF      V41K                                  #  NOW DISPLAY COARSE ALIGN VERB 41
034447,001658: 14,3445           04636                           TC       BANKCALL                              
034448,001659: 14,3446           20705                           CADR     GODSPRET                              
034449,001660: 14,3447           03742                           TC       COARSUB                               #  PERFORM ALIGNMENT
034450,001661: 14,3450           05402                           TC       PHASCHNG                              
034451,001662: 14,3451           05024                           OCT      05024                                 
034452,001663: 14,3452           13000                           OCT      13000                                 
034453,001664: 14,3453           13425                           TCF      P51AA                                 #  COARSE ALIGN DONE - RECYCLE FOR FINE
034454,001665: 

Page 775

034456,001667: 
034457,001668:                                                                                                  #     DO STAR SIGHTING AND COMPUTE NEW REFSMMAT
034458,001669: 
034459,001670: 14,3454           06006        P51B               TC       INTPRET                               
034460,001671: 14,3455           40331                           SSP      SETPD                                 
034461,001672: 14,3456           00305                                    STARIND                               #  INDEX - STAR 1 OR 2
034462,001673: 14,3457           00000                                    0                                     
034463,001674: 14,3460           00001                                    0                                     
034464,001675: 14,3461           77234                           RTB      VLOAD                                 
034465,001676: 14,3462           31566                                    SET1/PDT                              
034466,001677: 14,3463           11762                                    ZEROVEC                               
034467,001678: 14,3464           01472                           STORE    GCOMP                                 
034468,001679: 14,3465           43014                           SET      CLEAR                                 
034469,001680: 14,3466           01060                                    DRIFTFLG                              #  ENABLE T4 COMPENSATION
034470,001681: 14,3467           00666                                    TARG2FLG                              #  SHOW MARK IS STAR - NOT LANDMARK
034471,001682: 14,3470           77776                           EXIT                                           
034472,001683: 14,3471           05402        P51C               TC       PHASCHNG                              
034473,001684: 14,3472           05024                           OCT      05024                                 
034474,001685: 14,3473           13000                           OCT      13000                                 
034475,001686: 14,3474           05354                           TC       CHECKMM                               
034476,001687: 14,3475           00065                           MM       53         B-14                       #  BACKUP PROGRAM
034477,001688: 14,3476           13504                           TCF      P51C.1                                #  NOT P53
034478,001689: 14,3477           06006                           TC       INTPRET                               
034479,001690: 14,3500           77624                           CALL                                           
034480,001691: 14,3501           36105                                    R56                                   
034481,001692: 14,3502           77650                           GOTO                                           
034482,001693: 14,3503           31507                                    P51C.2                                
034483,001694: 14,3504           06006        P51C.1             TC       INTPRET                               
034484,001695: 14,3505           77624                           CALL                                           
034485,001696: 14,3506           31571                                    R53                                   #  SIGHTING ROUTINE
034486,001697: 14,3507           77624        P51C.2             CALL                                           #  COMPUTE LOS IN SM FROM MARK DATA
034487,001698: 14,3510           36052                                    SXTSM                                 
034488,001699: 14,3511           77606                           PUSH                                           
034489,001700: 14,3512           53135                           SLOAD    BZE                                   
034490,001701: 14,3513           00305                                    STARIND                               
034491,001702: 14,3514           31520                                    P51D                                  
034492,001703: 14,3515           45575                           VLOAD    STADR                                 
034493,001704: 14,3516           41160                           STCALL   STARSAV2                              #  DOWNLINK
034494,001705: 14,3517           31526                                    P51E                                  
034495,001706: 14,3520           45575        P51D               VLOAD    STADR                                 
034496,001707: 14,3521           61166                           STODL    STARSAV1                              
034497,001708: 14,3522           02607                                    TSIGHT                                
034498,001709: 14,3523           77624                           CALL                                           
034499,001710: 14,3524           31651                                    PLANET                                
034500,001711: 14,3525           02601                           STORE    PLANVEC                               
034501,001712: 14,3526           77776        P51E               EXIT                                           
034502,001713: 14,3527           05402                           TC       PHASCHNG                              
034503,001714: 14,3530           05024                           OCT      05024                                 
034504,001715: 14,3531           13000                           OCT      13000                                 
034505,001716: 14,3532           10304                           CCS      STARIND                               
034506,001717: 14,3533           13542                           TCF      P51F                                  #  STAR 2

Page 776

034508,001719: 14,3534           05402                           TC       PHASCHNG                              
034509,001720: 14,3535           05024                           OCT      05024                                 
034510,001721: 14,3536           13000                           OCT      13000                                 
034511,001722: 14,3537           34770                           CAF      BIT1                                  
034512,001723: 14,3540           54304                           TS       STARIND                               
034513,001724: 14,3541           13471                           TCF      P51C                                  #  GO DO SECOND STAR
034514,001725: 14,3542           05402        P51F               TC       PHASCHNG                              
034515,001726: 14,3543           05024                           OCT      05024                                 
034516,001727: 14,3544           13000                           OCT      13000                                 
034517,001728: 14,3545           06006                           TC       INTPRET                               
034518,001729: 14,3546           45145                           DLOAD    CALL                                  
034519,001730: 14,3547           02607                                    TSIGHT                                
034520,001731: 14,3550           31651                                    PLANET                                
034521,001732: 14,3551           24015                           STOVL    12D                                   
034522,001733: 14,3552           02601                                    PLANVEC                               
034523,001734: 14,3553           24007                           STOVL    6D                                    
034524,001735: 14,3554           02611                                    STARSAV1                              
034525,001736: 14,3555           26736                           STOVL    STARAD                                
034526,001737: 14,3556           02617                                    STARSAV2                              
034527,001738: 14,3557           36744                           STCALL   STARAD     +6                         
034528,001739: 14,3560           34657                                    CHKSDATA                              #  CHECK STAR ANGLES IN STARAD AND
034529,001740: 14,3561           77414                           BON      EXIT                                  
034530,001741: 14,3562           00314                                    FREEFLAG                              
034531,001742: 14,3563           11716                                    P51G                                  
034532,001743: 14,3564           03425                           TC       P51AA                                 
034533,001744: 04,2000                                           SETLOC   P50S4                                 
034534,001745: 04,2000                                           BANK                                           
034535,001746: 
034536,001747: 04,3716                                           COUNT*   $$/P5153                              
034537,001748: 04,3716           77624        P51G               CALL                                           
034538,001749: 04,3717           47432                                    AXISGEN                               #  COME BACK WITH REFSMMAT IN XDC
034539,001750: 04,3720           75160                           AXC,1    AXC,2                                 
034540,001751: 04,3721           02713                                    XDC                                   
034541,001752: 04,3722           01733                                    REFSMMAT                              
034542,001753: 04,3723           45014                           CLEAR    CALL                                  
034543,001754: 04,3724           01662                                    REFSMFLG                              
034544,001755: 04,3725           34730                                    MATMOVE                               
034545,001756: 04,3726           77414                           SET      EXIT                                  
034546,001757: 04,3727           01462                                    REFSMFLG                              
034547,001758: 04,3730           04103                           TC       GOTOPOOH                              
034548,001759: 14,2000                                           SETLOC   P50S1                                 
034549,001760: 14,2000                                           BANK                                           
034550,001761: 
034551,001762: 14,3565                                           COUNT*   $$/P5153                              
034552,001763: 14,3565     4776               PRFMSTAQ           =        OCT15                                 
034553,001764: 14,3565     4772               P51ZERO            =        ZERO                                  
034554,001765: 14,3565     4773               P51FIVE            =        FIVE                                  
034555,001766: 14,3565           12200        V41K               VN       4100                                  
034556,001767: 14,3566           30025        SET1/PDT           CA       TIME1                                 
034557,001768: 14,3567           55277                           TS       1/PIPADT                              

Page 777

034559,001770: 14,3570           16030                           TCF      DANZIG                                
034560,001771: 

Page 778

034562,001773:                                                                                                  #  SXTSM COMPUTES AN LOS VECTOR IN SM COORD FROM OCDU AND ICDU MARK DATA
034563,001774: 
034564,001775: 17,2000                                           SETLOC   P50S3                                 
034565,001776: 17,2000                                           BANK                                           
034566,001777: 17,2052                                           COUNT*   $$/R51                                
034567,001778: 17,2052           77745        SXTSM              DLOAD                                          
034568,001779: 17,2053           03723                                    MRKBUF1                               
034569,001780: 17,2054           02607                           STORE    TSIGHT                                
034570,001781: 17,2055           77760                           AXC,1                                          
034571,001782: 17,2056           03722                                    MRKBUF1                               #  ADDRESS OF MARK DATA FOR P50'S
034572,001783: 17,2057           77620        SXTSM1             STQ                                            #  CALLED HERE FROM GETUM (P20 AND P22)
034573,001784: 17,2060           00300                                    QMAJ                                  
034574,001785: 17,2061           66744                           LXC,2    SLOAD*                                
034575,001786: 17,2062           00304                                    STARIND                               
034576,001787: 17,2063           41673                                    MKDNCDR,2                             
034577,001788: 17,2064           76744                           LXC,2    VLOAD*                                
034578,001789: 17,2065           00154                                    MPAC                                  
034579,001790: 17,2066           00001                                    0,1                                   
034580,001791: 17,2067           10001                           STORE    0,2                                   
034581,001792: 17,2070           77743                           DLOAD*                                         
034582,001793: 17,2071           00006                                    5,1                                   
034583,001794: 17,2072           10006                           STORE    5,2                                   
034584,001795: 17,2073           77773        SXTSM2             VLOAD*                                         
034585,001796: 17,2074           00003                                    2,1                                   
034586,001797: 17,2075           35172                           STCALL   CDUSPOT                               
034587,001798: 17,2076           46000                                    SXTNB                                 
034588,001799: 17,2077           77624                           CALL                                           
034589,001800: 17,2100           47642                                    TRG*NBSM                              #  TRANSFER LOS TO SM
034590,001801: 17,2101           34041                           STCALL   32D                                   
034591,001802: 17,2102           00300                                    QMAJ                                  
034592,001803: 17,2103           03674        MKDNCDR            ECADR    MARKDOWN                              
034593,001804: 17,2104           03460                           ECADR    MARK2DWN                              
034594,001805: 

Page 779

034596,001807:                                                                                                  #  NAME - R53 - SIGHTING MARK ROUTINE

Page 780

034598,001809: 
034599,001810:                                                                                                  #  FUNCTION -
034600,001811:                                                                                                  #   TO PERFORM A SATISFACTORY NUMBER OF SIGHTING MARKS FOR THE REQUESTING PROGRAM (OR ROUTINE). SIGHTINGS
034601,001812:                                                                                                  #   CAN BE MADE ON A STAR OR LANDMARK. WHEN THE CMC ACCEPTS A MARK IT RECORDS AND STORES 5 ANGLES (3 ICDUS AND 2
034602,001813:                                                                                                  #   OCDUS) AND THE TIME OF THE MARK.
034603,001814: 
034604,001815:                                                                                                  #  CALLING SEQUENCE
034605,001816:                                                                                                  #   R53 IS CALLED AND RETURNS IN INTERPRETIVE CODE. RETURN IS VIA QPRET.
034606,001817:                                                                                                  #   THERE IS NO ERROR EXIT IN THIS ROUTINE ITSELF.
034607,001818: 
034608,001819:                                                                                                  #  SUBROUTINES CALLED    
034609,001820:                                                                                                  #   SXTMARK
034610,001821:                                                                                                  #   OPTSTALL
034611,001822:                                                                                                  #   GOFLASH
034612,001823: 
034613,001824:                                                                                                  #  ERASABLE INITIALIZATION
034614,001825:                                                                                                  #   TARGET FLAG - STAR OR LANDMARK
034615,001826:                                                                                                  #   MARKINDX - NUMBER OF MARKS WANTED
034616,001827:                                                                                                  #   STARIND - INDEX TO BESTI OR BESTJ (STAR NUMBER)
034617,001828: 
034618,001829:                                                                                                  #  OUTPUT
034619,001830:                                                                                                  #   MARKSTAT CONTAINS INDEX TO VACANT AREA WHERE MARK DATA IS STORED
034620,001831:                                                                                                  #   BESTI (INDEXED BY STARIND) CONTAINS STAR NUMBER SIGHTED
034621,001832: 
034622,001833:                                                                                                  #  DEBRIS
034623,001834:                                                                                                  #   MARKINDX CONTAINS NUMBER OF MARKS DESIRED
034624,001835: 
034625,001836: 14,2000                                           SETLOC   RT53                                  
034626,001837: 14,2000                                           BANK                                           
034627,001838: 
034628,001839: 14,3571                                           COUNT*   $$/R53                                
034629,001840: 14,3571           43020        R53                STQ      SET                                   #  SET SIGHTING MARK FLAG
034630,001841: 14,3572           03457                                    R53EXIT                               
034631,001842: 14,3573           00071                                    R53FLAG                               
034632,001843: 14,3574           77776                           EXIT                                           
034633,001844: 14,3575           04636        R53A               TC       BANKCALL                              
034634,001845: 14,3576           16000                           CADR     SXTMARK                               
034635,001846: 14,3577           05354                           TC       CHECKMM                               
034636,001847: 14,3600           00030                           MM       24         B-14                       
034637,001848: 14,3601           13603                           TCF      +2                                    
034638,001849: 14,3602           13612                           TCF      R53A1                                 
034639,001850: 14,3603           05354                           TC       CHECKMM                               
034640,001851: 14,3604           00026                           MM       22         B-14                       #  P22?
034641,001852: 14,3605           34766                           CAF      FOUR                                  #  NO, IS MARKINDX = 1
034642,001853: 14,3606           63650                           AD       MIN5                                  #  YES, IS MARKINDX = 5 (CHECKMM LEAVES 0)
034643,001854: 14,3607           60301                           AD       MARKINDX                              
034644,001855: 14,3610           00006                           EXTEND                                         
034645,001856: 14,3611           13575                           BZF      R53A                                  #  NO MARKS TAKEN.  DO AGAIN.
034646,001857: 14,3612           04636        R53A1              TC       BANKCALL                              
034647,001858: 14,3613           16073                           CADR     MKRELEAS                              
034648,001859: 14,3614           34772        R53C1              CAF      ZERO                                  
034649,001860: 14,3615           04636                           TC       BANKCALL                              
034650,001861: 14,3616           20715                           CADR     CLEANDSP                              

Page 781

034652,001863: 14,3617           44763        R53B               CS       BIT6                                  #  CUT BETWEEN P20S AND P50S
034653,001864: 14,3620           61214                           AD       MODREG                                #  P22,P23 CALL          
034654,001865: 14,3621           00006                           EXTEND                                         
034655,001866: 14,3622           63631                           BZMF     R53D                                  #  YES
034656,001867: 14,3623           33635        R53C               CAF      V01N71                                
034657,001868: 14,3624           05535                           TC       VNFLASH                               
034658,001869: 14,3625           03636        R53Z               TC       CHKSCODE                              
034659,001870:                                                                                                  #  ROUTINE TO ALLOW ONLY +0 <= STARCODE <= +50, OTHERWISE 'OPERATOR ERROR'
034660,001871: 14,3626           04362                           TC       FALTON                                
034661,001872: 14,3627           03623                           TC       R53C                                  
034662,001873: 14,3630           03732                           TC       STORIJ                                #  SET BESTI(BESTJ) = 1ST(2ND) STARCODE
034663,001874: 14,3631           06006        R53D               TC       INTPRET                               
034664,001875: 14,3632           77614        R53OUT             SETGO                                          
034665,001876: 14,3633           03420                                    TERMIFLG                              #  SET TERMINATE FOR R52
034666,001877: 14,3634           03457                                    R53EXIT                               
034667,001878: 14,3635     6211               SIGHTSIX           =        SIX                                   
034668,001879: 14,3635           00307        V01N71             VN       0171                                  
034669,001880: 
034670,001881:                                                                                                  #  ****** KEEP IN SAME BANK AS R51 AND R53 *********
034671,001882: 14,3636           11140        CHKSCODE           CCS      STARCODE                              
034672,001883: 14,3637           13643                           TCF      SCPOS                                 #  > 0, CHECK IF <= 50
034673,001884: 14,3640           16710                           TCF      Q+2                                   #  = +0, OK
034674,001885: 14,3641           00002                           TC       Q                                     #  NEGATIVE STARCODE OF ANY
034675,001886: 14,3642           00002                           TC       Q                                     #  MAGNITUDE IS IMPROPER
034676,001887: 14,3643           63647        SCPOS              AD       NEG47                                 
034677,001888: 14,3644           00006                           EXTEND                                         
034678,001889: 14,3645           66710                           BZMF     Q+2                                   #  <= 50, OK
034679,001890: 14,3646           00002                           TC       Q                                     #  > 50, IMPROPER
034680,001891: 14,3647           77730        NEG47              OCT      77730                                 
034681,001892: 14,3650           77772        MIN5               DEC      -5         B-14                       
034682,001893: 

Page 782

034684,001895:                                                                                                  #  NAME - S52.2
034685,001896:                                                                                                  #  FUNCTION - COMPUTE GIMBAL ANGLES FOR DESIRED SM AND PRESENT VEHICLE
034686,001897:                                                                                                  #  CALL - CALL S52.2
034687,001898:                                                                                                  #  INPUT - X,Y,ZSMD
034688,001899:                                                                                                  #  OUTPUT - OGC,IGC,MGC,THETAD,+1,+2
034689,001900:                                                                                                  #  SUBROUTINES - CDUTRIG, CALCSMSC, MATMOVE, CALCGA
034690,001901: 
034691,001902: 11,2000                                           SETLOC   S52/2                                 
034692,001903: 11,2000                                           BANK                                           
034693,001904: 
034694,001905: 11,2247                                           COUNT*   $$/S52.2                              
034695,001906: 11,2247           45020        S52.2              STQ      CALL                                  
034696,001907: 11,2250           00300                                    QMAJ                                  
034697,001908: 11,2251           47530                                    CDUTRIG                               
034698,001909: 11,2252           77624                           CALL                                           
034699,001910: 11,2253           34756                                    CALCSMSC                              
034700,001911: 11,2254           66370                           AXT,1    SSP                                   
034701,001912: 11,2255           00022                                    18D                                   
034702,001913: 11,2256           00051                                    S1                                    
034703,001914: 11,2257           00006                                    6D                                    
034704,001915: 11,2260           61373        S52.2A             VLOAD*   VXM                                   
034705,001916: 11,2261           02736                                    XNB        +18D,1                     
034706,001917: 11,2262           01734                                    REFSMMAT                              
034707,001918: 11,2263           77656                           UNIT                                           
034708,001919: 11,2264           06736                           STORE    XNB        +18D,1                     
034709,001920: 11,2265           77700                           TIX,1                                          
034710,001921: 11,2266           22260                                    S52.2A                                
034711,001922: 11,2267           75160        S52.2.1            AXC,1    AXC,2                                 
034712,001923: 11,2270           00306                                    XSMD                                  
034713,001924: 11,2271           02671                                    XSM                                   
034714,001925: 11,2272           77624                           CALL                                           
034715,001926: 11,2273           34730                                    MATMOVE                               
034716,001927: 11,2274           77624                           CALL                                           
034717,001928: 11,2275           47344                                    CALCGA                                
034718,001929: 11,2276           77650                           GOTO                                           
034719,001930: 11,2277           00300                                    QMAJ                                  
034720,001931: 

Page 783

034722,001933: 
034723,001934:                                                                                                  #  THE ADVTRACK ROUTINE IS USED TO COMPUTE AN OPTICS LOS VECTOR TO
034724,001935:                                                                                                  #  A POINT ON THE GROUND TRACK 60 DEGRESS FORWARD OF THE LOCAL VERTICAL
034725,001936:                                                                                                  #  OF AN ADVANCED ORBIT A SPECIFIED NUMBER OF REVOLUTIONS FROM NOW
034726,001937: 
034727,001938: 26,2000                                           SETLOC   26P50S                                
034728,001939: 26,2000                                           BANK                                           
034729,001940: 26,2040                                           COUNT*   $$/R52                                
034730,001941: 26,2040           77601        ADVTRACK           SETPD                                          
034731,001942: 26,2041           00001                                    0                                     
034732,001943: 26,2042           41575                           VLOAD    PUSH                                  #  INITIALIZE FOR RP-TO-R
034733,001944: 26,2043           15330                                    UNITZ                                 #  UZ VEC IN PD 0-5
034734,001945: 26,2044           41434                           RTB      PUSH                                  #  TIME IN PD 6-7
034735,001946: 26,2045           51751                                    LOADTIME                              
034736,001947: 26,2046           36347                           STCALL   AOPTIME                               #  TIME ALSO IN AOPTIME FOR CSMCONIC
034737,001948: 26,2047           55345                                    RP-TO-R                               #  GET MOON ROTATION VEC IN REF
034738,001949: 26,2050           16766                           STODL    STAR                                  
034739,001950: 26,2051           02347                                    AOPTIME                               #  PICK UP TIME
034740,001951: 26,2052           34041                           STCALL   TDEC1                                 #  UPDATE STATE TO TIME
034741,001952: 26,2053           27170                                    CSMCONIC                              
034742,001953: 26,2054           47375                           VLOAD    VXV                                   
034743,001954: 26,2055           00007                                    VATT                                  
034744,001955: 26,2056           00001                                    RATT                                  
034745,001956: 26,2057           24031                           STOVL    24D                                   #  SAVE -UNIT(V X R) FOR 2ND ROTATION
034746,001957: 26,2060           00001                                    RATT                                  
034747,001958: 26,2061           57456                           UNIT     VCOMP                                 
034748,001959: 26,2062           41401                           SETPD    PUSH                                  #  PUSH LOS=-UNIT(RVEC)  PD 0-5
034749,001960: 26,2063           00001                                    0                                     
034750,001961: 26,2064           54335                           SLOAD    SL                                    
034751,001962: 26,2065           03752                                    LANDMARK                              
034752,001963: 26,2066           20214                                    11D                                   
034753,001964: 26,2067           41342                           SR1      DMP                                   
034754,001965: 26,2070           14135                                    MPERIOD                               
034755,001966: 26,2071           36347                           STCALL   AOPTIME                               #  ROTATE ANG ABOUT UR
034756,001967: 26,2072           54105                                    ROTA                                  
034757,001968: 26,2073           53575                           VLOAD    UNIT                                  
034758,001969: 26,2074           00031                                    24D                                   #  PICK UP 2ND ROTATION AXIS
034759,001970: 26,2075           16766                           STODL    STAR                                  
034760,001971: 26,2076           14133                                    DP1/6                                 
034761,001972: 26,2077           77625                           DSU                                            
034762,001973: 26,2100           02347                                    AOPTIME                               #  2ND RAT ANGLE = 60 - A
034763,001974: 26,2101           36347                           STCALL   AOPTIME                               
034764,001975: 26,2102           54105                                    ROTA                                  #  GO ROTATE 2ND TIME
034765,001976: 26,2103           36766                           STCALL   STAR                                  #  STORE FINAL LOS IN STAR
034766,001977: 26,2104           31120                                    COM52                                 #  RETURN TO SR52.1
034767,001978: 
034768,001979: 26,2105           73545        ROTA               DLOAD    SIN                                   
034769,001980: 26,2106           02347                                    AOPTIME                               
034770,001981: 26,2107           47315                           PDVL     VXV                                   #  PUSH 1/2SIN(A)  PD 6-7
034771,001982: 26,2110           02766                                    STAR                                  #    UR VEC
034772,001983: 26,2111           00001                                    0                                     #    LOS

Page 784

034774,001985: 26,2112           72561                           VXSC     VSL2                                  #  1/2SIN(A)(UR X LOS)  PD 6-11
034775,001986: 26,2113           50315                           PDVL     DOT                                   
034776,001987: 26,2114           02766                                    STAR                                  
034777,001988: 26,2115           00001                                    0                                     
034778,001989: 26,2116           72561                           VXSC     VSL2                                  
034779,001990: 26,2117           02766                                    STAR                                  
034780,001991: 26,2120           71525                           PDDL     COS                                   #  1/2(UR . LOS)UR  12-17
034781,001992: 26,2121           02347                                    AOPTIME                               
034782,001993: 26,2122           51315                           PDVL     BVSU                                  #  PUSH 1/2COS(A)  18-19
034783,001994: 26,2123           00015                                    12D                                   
034784,001995: 26,2124           00001                                    0                                     
034785,001996: 26,2125           76561                           VXSC     VSL1                                  #  UP 18-19
034786,001997: 26,2126           53255                           VAD      VAD                                   #  UP 12-17  UP 6-11
034787,001998: 26,2127           40256                           UNIT     SETPD                                 
034788,001999: 26,2130           00001                                    0                                     
034789,002000: 26,2131           43406                           PUSH     RVQ                                   
034790,002001: 
034791,002002: 26,2132           05252 25251  DP1/6              2DEC     .16666666                             
034792,002003: 
034793,002004: 26,2134           01414 06044  MPERIOD            2DEC     .047619                               #  APPROX LUNAR ROT ANG IN 2HRS X 16
034794,002005: 

Page 785

034796,002007: 
034797,002008:                                                                                                  #  NAME - R56 - ALTERNATE LOS SIGHTING MARK ROUTINE
034798,002009: 
034799,002010:                                                                                                  #  FUNCTIONAL DESCRIPTION
034800,002011:                                                                                                  #  TO PERFORM SIGHTING MARKS FOR THE BACK-UP ALIGNMENT PROGRAMS (P53,P54).  THE ASTRONAUT KNOWS THE
034801,002012:                                                                                                  #  COORDINATES (OPTICS) OF THE ALTERNATE LINE OF SIGHT HE MUST USE FOR THIS ROUTINE.  WHEN THE ASTRONAUT KEYS IN
034802,002013:                                                                                                  #  ENTER IN RESPONSE TO THE FLASHING V50 N25 R1-XXXXX THE CMC STORES THE THREE ICDU ANGLES AND TWO ANGLES DISPLAYED
034803,002014:                                                                                                  #  IN N92.
034804,002015: 
034805,002016:                                                                                                  #  CALLING SEQUENCE
034806,002017:                                                                                                  #        CALL
034807,002018:                                                                                                  #                R56
034808,002019: 
034809,002020:                                                                                                  #  SUBROUTINES CALLED
034810,002021:                                                                                                  #        A PORTION OF SXTMARK (VAC.AREA SEARCH)
034811,002022:                                                                                                  #        GOFLASH
034812,002023:                                                                                                  #        GOPERF1
034813,002024: 
034814,002025:                                                                                                  #  ERASABLE INITIALIZATION
034815,002026:                                                                                                  #        STARIND - INDEX TO STAR NUMBER
034816,002027: 
034817,002028:                                                                                                  #  OUTPUT
034818,002029:                                                                                                  #        MARKSTAT - INDEX TO VAC.AREA WHERE OUTPUT IS STORED.
034819,002030:                                                                                                  #        BESTI (INDEXED BY STARIND) CONTAINS STAR NUMBER.
034820,002031:                                                                                                  #        ICDU AND OCDU ANGLES IN VAC. AREA AS FOLLOWS-
034821,002032:                                                                                                  #                VAC +2  CDUY
034822,002033:                                                                                                  #                VAC +3  CDUS
034823,002034:                                                                                                  #                VAC +4  CDUZ
034824,002035:                                                                                                  #                VAC +5  CDUT
034825,002036:                                                                                                  #                VAC +6  CDUX
034826,002037: 
034827,002038: 17,2000                                           SETLOC   P50S3                                 
034828,002039: 17,2000                                           BANK                                           
034829,002040: 17,2105                                           COUNT*   $$/R56                                
034830,002041: 17,2105           77420        R56                STQ      EXIT                                  
034831,002042: 17,2106           03457                                    R53EXIT                               
034832,002043: 17,2107           32162                           CAF      V06N94B                               
034833,002044: 17,2110           05535                           TC       VNFLASH                               
034834,002045: 17,2111           04636        R56A               TC       BANKCALL                              
034835,002046: 17,2112           16062                           CADR     TESTMARK                              
034836,002047: 
034837,002048: 17,2113           34772                           CAF      ZERO                                  
034838,002049: 17,2114           04636                           TC       BANKCALL                              
034839,002050: 17,2115           20715                           CADR     CLEANDSP                              
034840,002051: 
034841,002052: 17,2116           32161        R56A1              CAF      VB53                                  #  DISPLAY V53 REQUESTING ALTERNATE MARK
034842,002053: 17,2117           04636                           TC       BANKCALL                              
034843,002054: 17,2120           20601                           CADR     GOMARK2                               
034844,002055: 17,2121           14103                           TCF      GOTOPOOH                              #  V34-TERMINATE
034845,002056: 17,2122           12116                           TCF      R56A1                                 #  V33-DONT PROCEED-JUST ENTER TO MARK
034846,002057: 17,2123           06006                           TC       INTPRET                               
034847,002058: 17,2124           77745                           DLOAD                                          

Page 786

034849,002060: 17,2125           03726                                    MRKBUF1    +3                         
034850,002061: 17,2126           16774                           STODL    SAC                                   
034851,002062: 17,2127           03730                                    MRKBUF1    +5                         
034852,002063: 17,2130           02776                           STORE    PAC                                   
034853,002064: 17,2131           77776                           EXIT                                           
034854,002065: 17,2132           00004                           INHINT                                         
034855,002066: 17,2133           04606                           TC       E7SETTER                              
034856,002067: 
034857,002068: 17,2134  E7,1722                                  EBANK=   MRKBUF1                               
034858,002069: 17,2134           00006                           EXTEND                                         
034859,002070: 17,2135           30025                           DCA      TIME2                                 
034860,002071: 17,2136           53723                           DXCH     MRKBUF1                               
034861,002072: 17,2137           30033                           CA       CDUY                                  #  ENTER-THIS IS A BACKUP SYSTEM MARK
034862,002073: 17,2140           55724                           TS       MRKBUF1    +2                         
034863,002074: 17,2141           30034                           CA       CDUZ                                  
034864,002075: 17,2142           55726                           TS       MRKBUF1    +4                         
034865,002076: 17,2143           30032                           CA       CDUX                                  
034866,002077: 17,2144           55730                           TS       MRKBUF1    +6                         
034867,002078: 17,2145           00003                           RELINT                                         
034868,002079: 17,2146           35043                           CAF      EBANK5                                #  MAY NOT NEED TO DO THIS
034869,002080: 17,2147           54003                           TS       EBANK                                 
034870,002081: 
034871,002082: 17,2150  E5,1777                                  EBANK=   QMIN                                  
034872,002083: 
034873,002084: 17,2150           05527                           TC       CLEARMRK                              #  ENABLE EXTENDED VERBS
034874,002085: 17,2151           34321                           CAF      OCT16                                 
034875,002086: 17,2152           04636                           TC       BANKCALL                              
034876,002087: 17,2153           21067                           CADR     GOPERF1                               
034877,002088: 17,2154           04103                           TC       GOTOPOOH                              #  TERM.
034878,002089: 17,2155           12157                           TCF      R56B                                  #  PROCEED-MARK COMPLETED
034879,002090: 17,2156           12111                           TCF      R56A                                  #  RECYCLE - DO ANOTHER MARK - LIKE REJECT
034880,002091: 17,2157           04636        R56B               TC       BANKCALL                              
034881,002092: 17,2160           31614                           CADR     R53C1                                 
034882,002093: 17,2161           15200        VB53               VN       05300                                 #  ALTERNATE MARK VERB
034883,002094: 17,2162           01536        V06N94B            VN       00694                                 
034884,002095: 14,2000                                           SETLOC   P50S1                                 
034885,002096: 14,2000                                           BANK                                           
034886,002097: 
034887,002098: 14,3651                                           COUNT*   $$/PLNET                              
034888,002099: 14,3651           02607        PLANET             STORE    TSIGHT                                
034889,002100: 14,3652           45020                           STQ      CALL                                  
034890,002101: 14,3653           02777                                    QMIN                                  
034891,002102: 14,3654           26345                                    LOCSAM                                
034892,002103: 14,3655           77775                           VLOAD                                          
034893,002104: 14,3656           02736                                    VEARTH                                
034894,002105: 14,3657           24001                           STOVL    0D                                    
034895,002106: 14,3660           02744                                    VSUN                                  
034896,002107: 14,3661           26736                           STOVL    VEARTH                                
034897,002108: 14,3662           00001                                    0D                                    
034898,002109: 14,3663           02744                           STORE    VSUN                                  

Page 787

034900,002111: 14,3664           77776        NOSAM              EXIT                                           
034901,002112: 14,3665           03732                           TC       STORIJ                                #  SET BESTI(BESTJ) = 1ST(2ND) STARCODE
034902,002113: 14,3666           10000                           CCS      A                                     
034903,002114: 14,3667           13700                           TCF      NOTPLAN                               
034904,002115: 14,3670           35035                           CAF      VNPLANV                               
034905,002116: 14,3671           05535                           TC       VNFLASH                               
034906,002117: 14,3672           06006                           TC       INTPRET                               
034907,002118: 14,3673           74375                           VLOAD    VXSC                                  
034908,002119: 14,3674           03705                                    STARSAV3                              
034909,002120: 14,3675           31731                                    1/SQR3                                
034910,002121: 14,3676           52056                           UNIT     GOTO                                  
034911,002122: 14,3677           31723                                    CORPLAN                               
034912,002123: 14,3700           40000        NOTPLAN            CS       A                                     
034913,002124: 14,3701           63727                           AD       DEC227                                
034914,002125: 14,3702           00006                           EXTEND                                         
034915,002126: 14,3703           63714                           BZMF     CALSAM1                               
034916,002127: 14,3704           50304                           INDEX    STARIND                               
034917,002128: 14,3705           30302                           CA       BESTI                                 
034918,002129: 14,3706           50120                           INDEX    FIXLOC                                
034919,002130: 14,3707           54046                           TS       X1                                    
034920,002131: 14,3710           06006                           TC       INTPRET                               
034921,002132: 14,3711           52173                           VLOAD*   GOTO                                  
034922,002133: 14,3712           33776                                    CATLOG,1                              
034923,002134: 14,3713           31723                                    CORPLAN                               
034924,002135: 14,3714           06006        CALSAM1            TC       INTPRET                               
034925,002136: 14,3715           70740                           LXC,1    DLOAD*                                
034926,002137: 14,3716           00304                                    STARIND                               
034927,002138: 14,3717           00303                                    BESTI,1                               
034928,002139: 14,3720           76740                           LXC,1    VLOAD*                                
034929,002140: 14,3721           00154                                    MPAC                                  
034930,002141: 14,3722           02372                                    STARAD     -228D,1                    
034931,002142: 14,3723           53455        CORPLAN            VAD      UNIT                                  
034932,002143: 14,3724           03452                                    VEL/C                                 
034933,002144: 14,3725           77650                           GOTO                                           
034934,002145: 14,3726           02777                                    QMIN                                  
034935,002146: 14,3727           00343        DEC227             DEC      227        B-14                       
034936,002147: 14,3730     5035               VNPLANV            =        V06N88                                
034937,002148: 14,3730           22363 11623  1/SQR3             2DEC     .57735021                             
034938,002149: 
034939,002150: 14,3732           47677        STORIJ             CS       HIGH9                                 #  CALLED AT R53Z, NOSAM(PLANET)
034940,002151: 14,3733           71140                           MASK     STARCODE                              
034941,002152: 14,3734           00006                           EXTEND                                         
034942,002153: 14,3735           76211                           MP       SIGHTSIX                              
034943,002154: 14,3736           56001                           XCH      L                                     
034944,002155: 14,3737           50304                           INDEX    STARIND                               
034945,002156: 14,3740           54302                           TS       BESTI                                 
034946,002157: 14,3741           00002                           TC       Q                                     #  RETURN TO CALLER
034947,002158: 14,3742                                           COUNT*   $$/R50                                
034948,002159: 14,3742           30002        COARSUB            CA       Q                                     
034949,002160: 14,3743           55777                           TS       QMIN                                  

Page 788

034951,002162: 14,3744           31335        STALLOOP           CA       MODECADR                              #  IS IMU IN USE?
034952,002163: 14,3745           00006                           EXTEND                                         
034953,002164: 14,3746           13753                           BZF      CORSCALL                              #  NO, GO AHEAD WITH COARSE ALIGN
034954,002165: 14,3747           35016                           CAF      1SEC                                  #  YES, SO WAIT A SEC
034955,002166: 14,3750           04636                           TC       BANKCALL                              
034956,002167: 14,3751           01731                           CADR     DELAYJOB                              
034957,002168: 14,3752           03744                           TC       STALLOOP                              #                        AND TRY AGAIN
034958,002169: 14,3753           04636        CORSCALL           TC       BANKCALL                              
034959,002170: 14,3754           16724                           CADR     IMUCOARS                              #  PERFORM COARSE ALIGN
034960,002171: 14,3755           04636                           TC       BANKCALL                              
034961,002172: 14,3756           17644                           CADR     IMUSTALL                              
034962,002173: 14,3757           03766                           TC       217ALARM                              #  BAD END
034963,002174: 14,3760           04636                           TC       BANKCALL                              
034964,002175: 14,3761           17133                           CADR     IMUFIN20                              #  PERFORM FINE ALIGN
034965,002176: 14,3762           04636                           TC       BANKCALL                              
034966,002177: 14,3763           17644                           CADR     IMUSTALL                              
034967,002178: 14,3764           03766                           TC       217ALARM                              #  BAD END
034968,002179: 14,3765           01777                           TC       QMIN                                  
034969,002180: 14,3766           00004        217ALARM           INHINT                                         #  JUST LIKE 'CURTAINS', NOW DEPARTED
034970,002181: 14,3767           30002                           CA       Q                                     
034971,002182: 14,3770           05673                           TC       ALARM2                                
034972,002183: 14,3771           00217                           OCT      00217                                 
034973,002184: 14,3772           01363                           TC       ALMCADR                               #  RETURN TO USER

End of include-file P51-P53.agc.  Parent file is MAIN.agc