Source Code

These source-code files are part of a reconstructed copy of Comanche 51, the initial release (though not the final mission release) of the Apollo 11 Command Module (CM) Apollo Guidance Computer (AGC) software. The flown, final release was Comanche 55. The reconstruction is believed to be exactly accurate, but in the absence of an actual Apollo-era listing of Comanche 51, some explanation of the reconstruction process is needed to insure confidence in that accuracy.

The starting point was the source code of Comanche 55, whose original source code is available. Comanche 55 source code was then modified by undoing changes known to have been made between revisions 51 and 55. The most-significant steps involved reverting changes related to the R-2 lunar potential model, the details of which were known from the previous, separate, independent reconstruction of the Apollo 10 Lunar Module software Luminary 69/2. The now-reconstructed Comanche 51 source code was verified by assembling it and checking that the assembled code had the expected known-correct memory-bank checksums. Note that page numbers in the reconstructed code match those on the Comanche 55 or Luminary 69 printouts, although the source code would likely have different page numbers in a contemporary Comanche 51 listing.

Annotations that were not present in the contemporary source code have been added to the reconstructed code to justify each change relative to Comanche 55. Here's a guide to some of the Apollo documentation relevant to those annotations:
Among documentation not actually referenced in the annotations, there is a short writeup about the reconstruction process in our software repository that may be helpful in understanding it from a different perspective. There's also a handy table that lists what the number of memory-words should be for each routine in Comanche 51, which could make a nice double-check; however, we've not performed that double-check ourselves.

Comments expected to have been present in 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.

012154,000002:                                                                                                  ## Copyright:   Public domain.
012155,000003:                                                                                                  ## Filename:    CSM_GEOMETRY.agc
012156,000004:                                                                                                  ## Purpose:     A section of Comanche revision 051.
012157,000005:                                                                                                  ##              It is part of the reconstructed source code for the
012158,000006:                                                                                                  ##              original release of the flight software for the Command
012159,000007:                                                                                                  ##              Module's (CM) Apollo Guidance Computer (AGC) for Apollo 11.
012160,000008:                                                                                                  ##              The code has been recreated from a copy of Comanche 055. It
012161,000009:                                                                                                  ##              has been adapted such that the resulting bugger words
012162,000010:                                                                                                  ##              exactly match those specified for Comanche 51 in NASA drawing
012163,000011:                                                                                                  ##              2021153D, which gives relatively high confidence that the
012164,000012:                                                                                                  ##              reconstruction is correct.
012165,000013:                                                                                                  ## Reference:   pp. 285-296
012166,000014:                                                                                                  ## Assembler:   yaYUL
012167,000015:                                                                                                  ## Contact:     Ron Burkey <info@sandroid.org>.
012168,000016:                                                                                                  ## Website:     www.ibiblio.org/apollo/index.html
012169,000017:                                                                                                  ## Mod history: 2019-07-30 MAS  Created from Comanche 55.
012170,000018: 

Page 285

012172,000020: 22,2000                                           BANK     22                                    
012173,000021: 23,2000                                           SETLOC   COMGEOM1                              
012174,000022: 23,2000                                           BANK                                           
012175,000023: 
012176,000024:                                                                                                  #  THIS ROUTINE TAKES THE SHAFT AND TRUNNION ANGLES AS READ BY THE CM OPTICAL SYSTEM AND CONVERTS THEM INTO A UNIT
012177,000025:                                                                                                  #  VECTOR REFERENCED TO THE NAVIGATION BASE COORDINATE SYSTEM AND COINCIDENT WITH THE SEXTANT LINE OF SIGHT.
012178,000026: 
012179,000027:                                                                                                  #  THE INPUTS ARE  1) THE SEXTANT SHAFT AND TRUNNION ANGLES ARE STORED SP IN LOCATIONS 3 AND 5 RESPECTIVELY OF THE
012180,000028:                                                                                                  #  MARK VAC AREA.  2) THE COMPLEMENT OF THE BASE ADDRESS OF THE MARK VAC AREA IS STORED SP AT LOCATION X1 OF YOUR
012181,000029:                                                                                                  #  JOB VAC AREA.
012182,000030: 
012183,000031:                                                                                                  #  THE OUTPUT IS A HALF-UNIT VECTOR IN NAVIGATION BASE COORDINATES AND STORED AT LOCATION 32D OF THE VAC AREA. THE
012184,000032:                                                                                                  #  OUTPUT IS ALSO AVAILABLE AT MPAC.
012185,000033: 
012186,000034: 23,2000                                           COUNT    23/GEOM                               
012187,000035: 
012188,000036: 23,2000           47133        SXTNB              SLOAD*   RTB                                   #  PUSHDOWN 00,02,04,(17D-19D),32D-36D
012189,000037: 23,2001           00006                                    5,1                                   #  TRUNNION = TA
012190,000038: 23,2002           45513                                    CDULOGIC                              
012191,000039: 23,2003           41434                           RTB      PUSH                                  
012192,000040: 23,2004           46027                                    SXTLOGIC                              
012193,000041: 23,2005           72556                           SIN      SL1                                   
012194,000042: 23,2006           66606                           PUSH     SLOAD*                                #  PD2 = SIN(TA)
012195,000043: 23,2007           00004                                    3,1                                   #  SHAFT = SA
012196,000044: 23,2010           41434                           RTB      PUSH                                  #  PD4 = SA
012197,000045: 23,2011           45513                                    CDULOGIC                              
012198,000046: 
012199,000047: 23,2012           41346                           COS      DMP                                   
012200,000048: 23,2013           00003                                    2                                     
012201,000049: 23,2014           14041                           STODL    STARM                                 #  COS(SA)SIN(TA)
012202,000050: 
012203,000051: 23,2015           41356                           SIN      DMP                                   
012204,000052: 23,2016           77626                           STADR                                          
012205,000053: 23,2017           63734                           STODL    STARM      +2                         #  SIN(SA)SIN(TA)
012206,000054: 
012207,000055: 23,2020           77746                           COS                                            
012208,000056: 23,2021           24045                           STOVL    STARM      +4                         
012209,000057: 23,2022           00041                                    STARM                                 #  STARM = 32D
012210,000058: 23,2023           76521                           MXV      VSL1                                  
012211,000059: 23,2024           06302                                    NB1NB2                                
012212,000060: 23,2025           00041                           STORE    32D                                   
012213,000061: 23,2026           77616                           RVQ                                            
012214,000062: 
012215,000063: 23,2027           32323        SXTLOGIC           CAF      10DEGS-                               #  CORRECT FOR 19.775 DEGREE OFFSET
012216,000064: 23,2030           26154                           ADS      MPAC                                  
012217,000065: 23,2031           35003                           CAF      QUARTER                               
012218,000066: 23,2032           07256                           TC       SHORTMP                               
012219,000067: 23,2033           06030                           TC       DANZIG                                
012220,000068: 

Page 286

012222,000070:                                                                                                  #  CALCSXA COMPUTES THE SEXTANT SHAFT AND TRUNNION ANGLES REQUIRED TO POSITION THE OPTICS SUCH THAT A STAR LINE-
012223,000071:                                                                                                  #  OF-SIGHT LIES ALONG THE STAR VECTOR.  THE ROUTINE TAKES THE GIVEN STAR VECTOR AND EXPRESSES IT AS A VECTOR REF-
012224,000072:                                                                                                  #  ERENCED TO THE OPTICS COORDINATE SYSTEM.  IN ADDITION IT SETS UP THREE UNIT VECTORS DEFINING THE X, Y, AND Z AXES
012225,000073:                                                                                                  #  REFERENCED TO THE OPTICS COORDINATE SYSTEM.
012226,000074: 
012227,000075:                                                                                                  #  THE INPUTS ARE  1) THE STAR VECTOR REFERRED TO PRESENT STABLE MEMBER COORDINATES STORED AT STAR.  2) SAME ANGLE
012228,000076:                                                                                                  #  INPUT AS *SMNB*, I.E. SINES AND COSINES OF THE CDU ANGLES, IN THE ORDER Y Z X, AT SINCDU AND COSCDU.  A CALL
012229,000077:                                                                                                  #  TO CDUTRIG WILL PROVIDE THIS INPUT.
012230,000078: 
012231,000079:                                                                                                  #  THE OUTPUTS ARE THE SEXTANT SHAFT AND TRUNNION ANGLES STORED DP AT SAC AND PAC RESPECTIVELY.  (LOW ORDER PART
012232,000080:                                                                                                  #  EQUAL TO ZERO).
012233,000081: 
012234,000082: 23,2034           77220        CALCSXA            ITA      VLOAD                                 #  PUSHDOWN 00-26D, 28D, 30D, 32D-36D
012235,000083: 23,2035           00034                                    28D                                   
012236,000084: 23,2036           02766                                    STAR                                  
012237,000085: 23,2037           77624                           CALL                                           
012238,000086: 23,2040           47644                                    *SMNB*                                
012239,000087: 23,2041           76521                           MXV      VSL1                                  
012240,000088: 23,2042           06260                                    NB2NB1                                
012241,000089: 23,2043           26766                           STOVL    STAR                                  
012242,000090: 23,2044           15333                                    HIUNITX                               
012243,000091: 23,2045           26555                           STOVL    XNB1                                  
012244,000092: 23,2046           15331                                    HIUNITY                               
012245,000093: 23,2047           26563                           STOVL    YNB1                                  
012246,000094: 23,2050           15327                                    HIUNITZ                               
012247,000095: 23,2051           36571                           STCALL   ZNB1                                  
012248,000096: 23,2052           46076                                    SXTANG1                               
012249,000097: 

Page 287

012251,000099:                                                                                                  #  SXTANG COMPUTES THE SEXTANT SHAFT AND TRUNNION ANGLES REQUIRED TO POSITION THE OPTICS SUCH THAT A STAR LINE-OF-
012252,000100:                                                                                                  #  SIGHT LIES ALONG THE STAR VECTOR.
012253,000101: 
012254,000102:                                                                                                  #  THE INPUTS ARE  1) THE STAR VECTOR REFERRED TO ANY COORDINATE SYSTEM STORED AT STAR.  2) THE NAVIGATION BASE
012255,000103:                                                                                                  #  COORDINATES REFERRED TO THE SAME COORDINATE SYSTEM.  THESE THREE HALF-UNIT VECTORS ARE STORED AT XNB, YNB,AND
012256,000104:                                                                                                  #  ZNB.
012257,000105: 
012258,000106:                                                                                                  #  THE OUTPUTS ARE THE SEXTANT SHAFT AND TRUNNION ANGLES STORED DP AT SAC AND PAC RESPECTIVELY.  (LOW ORDER PART
012259,000107:                                                                                                  #  EQUAL TO ZERO).
012260,000108: 
012261,000109: 23,2053           47020        SXTANG             ITA      RTB                                   #  PUSHDOWN 16D,18D,22D-26D,28D
012262,000110: 23,2054           00034                                    28D                                   
012263,000111: 23,2055           45662                                    TRANSP1                               #  EREF WRT NB2
012264,000112: 23,2056           64375                           VLOAD    MXV                                   
012265,000113: 23,2057           02714                                    XNB                                   
012266,000114: 23,2060           06260                                    NB2NB1                                
012267,000115: 23,2061           77772                           VSL1                                           
012268,000116: 23,2062           26555                           STOVL    XNB1                                  
012269,000117: 23,2063           02722                                    YNB                                   
012270,000118: 23,2064           76521                           MXV      VSL1                                  
012271,000119: 23,2065           06260                                    NB2NB1                                
012272,000120: 23,2066           26563                           STOVL    YNB1                                  
012273,000121: 23,2067           02730                                    ZNB                                   
012274,000122: 23,2070           76521                           MXV      VSL1                                  
012275,000123: 23,2071           06260                                    NB2NB1                                
012276,000124: 23,2072           02571                           STORE    ZNB1                                  
012277,000125: 
012278,000126: 23,2073           47034                           RTB      RTB                                   
012279,000127: 23,2074           45662                                    TRANSP1                               
012280,000128: 23,2075           45676                                    TRANSP2                               
012281,000129: 
012282,000130: 23,2076           47375        SXTANG1            VLOAD    VXV                                   
012283,000131: 23,2077           02571                                    ZNB1                                  
012284,000132: 23,2100           02766                                    STAR                                  
012285,000133: 23,2101           77600                           BOV                                            
012286,000134: 23,2102           46103                                    +1                                    
012287,000135: 23,2103           40056                           UNIT     BOV                                   
012288,000136: 23,2104           46145                                    ZNB=S1                                
012289,000137: 23,2105           00027                           STORE    PDA                                   #  PDA = UNIT(ZNB X S)
012290,000138: 
012291,000139: 23,2106           57441                           DOT      DCOMP                                 
012292,000140: 23,2107           02555                                    XNB1                                  
012293,000141: 23,2110           24023                           STOVL    SINTH                                 #  SIN(SA) = PDA . -XNB
012294,000142: 23,2111           00027                                    PDA                                   
012295,000143: 
012296,000144: 23,2112           77641                           DOT                                            
012297,000145: 23,2113           02563                                    YNB1                                  
012298,000146: 23,2114           34021                           STCALL   COSTH                                 #  COS(SA) = PDA . YNB
012299,000147: 23,2115           47256                                    ARCTRIG                               

Page 288

012301,000149: 23,2116           77634                           RTB                                            
012302,000150: 23,2117           45546                                    1STO2S                                
012303,000151: 23,2120           26774                           STOVL    SAC                                   
012304,000152: 23,2121           02766                                    STAR                                  
012305,000153: 23,2122           77600                           BOV                                            
012306,000154: 23,2123           46124                                    +1                                    
012307,000155: 23,2124           72441                           DOT      SL1                                   
012308,000156: 23,2125           02571                                    ZNB1                                  
012309,000157: 23,2126           77726                           ACOS                                           
012310,000158: 23,2127           62440                           BMN      SL2                                   
012311,000159: 23,2130           46142                                    SXTALARM                              #  TRUNNION ANGLE NEGATIVE
012312,000160: 23,2131           45200                           BOV      DSU                                   
012313,000161: 23,2132           46142                                    SXTALARM                              #  TRUNNION ANGLE GREATER THAN 90 DEGREES
012314,000162: 23,2133           06331                                    20DEG-                                
012315,000163: 23,2134           77634                           RTB                                            
012316,000164: 23,2135           45546                                    1STO2S                                
012317,000165: 23,2136           02776                           STORE    PAC                                   #  FOR FLIGHT USE, CULTFLAG IS ON IF
012318,000166: 23,2137           77614                           CLRGO                                          #  TRUNION IS GREATER THAN 90 DEG
012319,000167: 23,2140           01630                                    CULTFLAG                              
012320,000168: 23,2141           00034                                    28D                                   
012321,000169: 23,2142           77614        SXTALARM           SETGO                                          #  ALARM HAS BEEN REMOVED FROM THIS
012322,000170: 23,2143           01430                                    CULTFLAG                              
012323,000171: 23,2144           00034                                    28D                                   #  SUBROUTINE, ALARM WILL BE SET BY MPI
012324,000172: 23,2145           77745        ZNB=S1             DLOAD                                          
012325,000173: 23,2146           06325                                    270DEG                                
012326,000174: 23,2147           16774                           STODL    SAC                                   
012327,000175: 23,2150           06327                                    20DEGS-                               
012328,000176: 23,2151           02776                           STORE    PAC                                   
012329,000177: 23,2152           77614                           CLRGO                                          
012330,000178: 23,2153           01630                                    CULTFLAG                              
012331,000179: 23,2154           00034                                    28D                                   
012332,000180: 

Page 289

012334,000182:                                                                                                  #  THESE TWO ROUTINES COMPUTE THE ACTUAL STATE VECTOR FOR LM, CSM BY ADDING
012335,000183:                                                                                                  #  THE CONIC R,V AND THE DEVIATIONS R,V.  THE STATE VECTORS ARE CONVERTED TO
012336,000184:                                                                                                  #  METERS B-29 AND METERS/CSEC B-7 AND STORED APPROPRIATELY IN RN,VN OR
012337,000185:                                                                                                  #  R-OTHER, V-OTHER FOR DOWNLINK.  THE ROUTINES NAMES ARE SWITCHED IN THE
012338,000186:                                                                                                  #  OTHER VEHICLES COMPUTER.
012339,000187: 
012340,000188:                                                                                                  #  INPUT
012341,000189:                                                                                                  #        STATE VECTOR IN TEMPORARY STORAGE AREA
012342,000190:                                                                                                  #        IF STATE VECTOR IS SCALED POS B27 AND VEL B5
012343,000191:                                                                                                  #                SET X2 TO +2
012344,000192:                                                                                                  #        IF STATE VECTOR IS SCALED POS B29 AND VEL B7
012345,000193:                                                                                                  #                SET X2 TO 0
012346,000194: 
012347,000195:                                                                                                  #  OUTPUT
012348,000196:                                                                                                  #        R(T) IN RN, V(T) IN VN, T IN PIPTIME
012349,000197:                                                                                                  #                OR
012350,000198:                                                                                                  #        R(T) IN R-OTHER, V(T) IN V-OTHER        (T IS DEFINED BY T-OTHER)
012351,000199: 
012352,000200: 23,2155                                           BANK     23                                    
012353,000201: 10,2000                                           SETLOC   COMGEOM2                              
012354,000202: 10,2000                                           BANK                                           
012355,000203: 10,2237                                           COUNT    10/GEOM                               
012356,000204: 10,2237           43414        SVDWN1             BOF      RVQ                                   #  SW=1=AVETOMID DOING W-MATRIX INTEG
012357,000205: 10,2240           04756                                    AVEMIDSW                              
012358,000206: 10,2241           20242                                    +1                                    
012359,000207: 10,2242           53775                           VLOAD    VSL*                                  
012360,000208: 10,2243           01521                                    TDELTAV                               
012361,000209: 10,2244           57605                                    0          -7,2                       
012362,000210: 10,2245           53655                           VAD      VSL*                                  
012363,000211: 10,2246           01535                                    RCV                                   
012364,000212: 10,2247           57576                                    0,2                                   
012365,000213: 10,2250           25171                           STOVL    RN                                    
012366,000214: 10,2251           01527                                    TNUV                                  
012367,000215: 10,2252           53257                           VSL*     VAD                                   
012368,000216: 10,2253           57602                                    0          -4,2                       
012369,000217: 10,2254           01543                                    VCV                                   
012370,000218: 10,2255           77657                           VSL*                                           
012371,000219: 10,2256           57576                                    0,2                                   
012372,000220: 10,2257           15177                           STODL    VN                                    
012373,000221: 10,2260           01517                                    TET                                   
012374,000222: 10,2261           01205                           STORE    PIPTIME                               
012375,000223: 10,2262           77616                           RVQ                                            
012376,000224: 
012377,000225: 10,2263           53775        SVDWN2             VLOAD    VSL*                                  
012378,000226: 10,2264           01521                                    TDELTAV                               
012379,000227: 10,2265           57605                                    0          -7,2                       
012380,000228: 10,2266           53655                           VAD      VSL*                                  
012381,000229: 10,2267           01535                                    RCV                                   

Page 290

012383,000231: 10,2270           57576                                    0,2                                   
012384,000232: 10,2271           25722                           STOVL    R-OTHER                               
012385,000233: 10,2272           01527                                    TNUV                                  
012386,000234: 10,2273           53257                           VSL*     VAD                                   
012387,000235: 10,2274           57602                                    0          -4,2                       
012388,000236: 10,2275           01543                                    VCV                                   
012389,000237: 10,2276           77657                           VSL*                                           
012390,000238: 10,2277           57576                                    0,2                                   
012391,000239: 10,2300           01730                           STORE    V-OTHER                               
012392,000240: 10,2301           77616                           RVQ                                            
012393,000241: 

Page 291

012395,000243:                                                                                                  #  SUBROUTINE TO COMPUTE THE NATURAL LOG OF C(MPAC, MPAC +1).
012396,000244: 
012397,000245:                                                                                                  #        ENTRY:  CALL
012398,000246:                                                                                                  #                        LOG
012399,000247: 
012400,000248:                                                                                                  #  SUBROUTINE RETURNS WITH -LOG IN DP MPAC.
012401,000249: 
012402,000250:                                                                                                  #  EBANK IS ARBITRARY..
012403,000251: 
012404,000252: 14,2000                                           BANK     14                                    
012405,000253: 23,2000                                           SETLOC   POWFLIT2                              
012406,000254: 23,2000                                           BANK                                           
012407,000255: 23,2155                                           COUNT    23/GEOM                               
012408,000256: 
012409,000257: 23,2155           44301        LOG                NORM     BDSU                                  #  GENERATES LOG BY SHIFTING ARG
012410,000258: 23,2156           00160                                    MPAC       +3                         #  UNTIL IT LIES BETWEEN .5 AND 1.
012411,000259: 23,2157           06212                                    NEARLY1                               #  THE LOG OF THIS PART IS FOUND AND THE
012412,000260: 23,2160           77776                           EXIT                                           #  LOG OF THE SHIFTED PART IS COMPUTED
012413,000261: 23,2161           07171                           TC       POLY                                  #  AND ADDED IN.  SHIFT COUNT STORED
012414,000262: 23,2162           00002                           DEC      2          B-14                       #  (N-1, SUPPLIED BY SMERZH)
012415,000263: 23,2163           00000 00000                     2DEC     0          B-28                       #  IN MPAC +3.
012416,000264: 23,2165           01001 14636                     2DEC     .031335467                            
012417,000265: 23,2167           00325 07310                     2DEC     .0130145859                            
012418,000266: 23,2171           00541 16735                     2DEC     .0215738898                            
012419,000267: 
012420,000268: 23,2173           35021                           CAF      ZERO                                  
012421,000269: 23,2174           54156                           TS       MPAC       +2                         
012422,000270: 23,2175           00006                           EXTEND                                         
012423,000271: 23,2176           32214                           DCA      CLOG2/32                              
012424,000272: 23,2177           52155                           DXCH     MPAC                                  
012425,000273: 23,2200           52160                           DXCH     MPAC       +3                         
012426,000274: 23,2201           40000                           COM                                            #  LOAD POSITIVE SHIFT COUNT IN A.
012427,000275: 23,2202           07256                           TC       SHORTMP                               #  MULTIPLY BY SHIFT COUNT.
012428,000276: 
012429,000277: 23,2203           52156                           DXCH     MPAC       +1                         
012430,000278: 23,2204           52155                           DXCH     MPAC                                  
012431,000279: 23,2205           52160                           DXCH     MPAC       +3                         
012432,000280: 23,2206           20155                           DAS      MPAC                                  
012433,000281: 23,2207           06006                           TC       INTPRET                               #  RESULT IN MPAC, MPAC +1
012434,000282: 
012435,000283: 23,2210           77616                           RVQ                                            
012436,000284: 
012437,000285: 23,2211           37777 37777  NEARLY1            2DEC     .999999999                            
012438,000286: 

Page 292

012440,000288: 23,2213           00542 34414  CLOG2/32           2DEC     .0216608494                            
012441,000289: 

Page 293

012443,000291:                                                                                                  #  SUBROUTINE NAME:  EARTH ROTATOR       (EARROT1 OR EARROT2)            DATE:  15 FEB 67
012444,000292:                                                                                                  #  MOD NO:  N +1                                                         LOG SECTION:  POWERED FLIGHT SUBROS
012445,000293:                                                                                                  #  MOD BY:  ENTRY GROUP (BAIRNSFATHER)
012446,000294: 
012447,000295:                                                                                                  #  FUNCTIONAL DESCRIPTION:  THIS ROUTINE PROJECTS THE INITIAL EARTH TARGET VECTOR RTINIT AHEAD THROUGH
012448,000296:                                                                                                  #        THE ESTIMATED TIME OF FLIGHT.  INITIAL CALL RESOLVES THE INITIAL TARGET VECTOR RTINIT INTO EASTERLY
012449,000297:                                                                                                  #        AND NORMAL COMPONENTS RTEAST AND RTNORM.  INITIAL AND SUBSEQUENT CALLS ROTATE THIS VECTOR
012450,000298:                                                                                                  #        ABOUT THE (FULL) UNIT POLAR AXIS UNITW THROUGH THE ANGLE  WIE DTEAROT  TO OBTAIN THE ROTATED
012451,000299:                                                                                                  #        TARGET VECTOR RT.  ALL VECTORS EXCEPT UNITW ARE HALF UNIT.
012452,000300:                                                                                                  #        THE EQUATIONS ARE
012453,000301:                                                                                                  #                -    -        -                      -
012454,000302:                                                                                                  #                RT = RTINIT + RTNORM (COS(WT) - 1) + RTEAST SIN(WT)
012455,000303: 
012456,000304:                                                                                                  #        WHERE   WT = WIE DTEAROT
012457,000305: 
012458,000306:                                                                                                  #                RTINIT = INITIAL TARGET VECTOR
012459,000307:                                                                                                  #                -        -       -
012460,000308:                                                                                                  #                RTEAST = UNITW * RTINIT
012461,000309:                                                                                                  #                -        -        -
012462,000310:                                                                                                  #                RTNORM = RTEAST * UNITW
012463,000311: 
012464,000312:                                                                                                  #        FOR CONTINUOUS UPDATING, ONLY ONE ENTRY TO EARROT1 IS REQUIRED, WITH SUBSEQUENT ENTRIES AT EARROT2.
012465,000313:                                                                                                  #        
012466,000314:                                                                                                  #  CALLING SEQUENCE:     FIRST CALL                      SUBSEQUENT CALL
012467,000315:                                                                                                  #                        STCALL  DTEAROT                 STCALL  DTEAROT
012468,000316:                                                                                                  #                                EARROT1                         EARROT2
012469,000317:                                                                                                  #                        C(MPAC) UNSPECIFIED             C(MPAC) = DTEAROT
012470,000318:                                                                                                  #        PUSHLOC = PDL+0, ARBITRARY.  6 LOCATIONS USED.
012471,000319: 
012472,000320:                                                                                                  #  SUBROUTINES USED:  NONE
012473,000321: 
012474,000322:                                                                                                  #  NORMAL EXIT MODES:  RVQ
012475,000323: 
012476,000324:                                                                                                  #  ALARMS:  NONE
012477,000325: 
012478,000326:                                                                                                  #  OUTPUT:       RTEAST  (-1)            .5 UNIT VECTOR EAST, COMPNT OF RTINIT   LEFT BY FIRST CALL
012479,000327:                                                                                                  #                RTNORM  (-1)            .5 UNIT VECTOR NORML, COMPNT OF RTINIT  LEFT BY FIRST CALL
012480,000328:                                                                                                  #                RT      (-1)            .5 UNIT TARGET VECTOR, ROTATED          LEFT BY ALL CALLS
012481,000329:                                                                                                  #                DTEAROT (-28) CS        MAY BE CHANGED BY EARROT2, IF OVER 1 DAY
012482,000330: 
012483,000331:                                                                                                  #  ERASABLE INITIALIZATION REQUIRED:
012484,000332:                                                                                                  #                UNITW   (0)             UNIT POLAR VECTOR                       PAD LOADED
012485,000333:                                                                                                  #                RTINIT  (-1)            .5 UNIT INITIAL TARGET VECTOR           LEFT BY ENTRY
012486,000334:                                                                                                  #                DTEAROT (-28) CS        TIME OF FLIGHT                          LEFT BY CALLER
012487,000335: 
012488,000336:                                                                                                  #  DEBRIS:  QPRET, PDL+0 ... PDL+5

Page 294

012490,000338: 23,2215  E7,1451                                  EBANK=   RTINIT                                
012491,000339: 
012492,000340: 23,2215           47375        EARROT1            VLOAD    VXV                                   
012493,000341: 23,2216           01714                                    UNITW                                 #  FULL UNIT VECTOR
012494,000342: 23,2217           03452                                    RTINIT                                #  .5 UNIT
012495,000343: 23,2220           03460                           STORE    RTEAST                                #  .5 UNIT
012496,000344: 
012497,000345: 23,2221           77635                           VXV                                            
012498,000346: 23,2222           01714                                    UNITW                                 #  FULL UNIT
012499,000347: 23,2223           17466                           STODL    RTNORM                                #  .5 UNIT
012500,000348: 23,2224           03606                                    DTEAROT                               #  (-28) CS
012501,000349: 
012502,000350: 23,2225           56204        EARROT2            BOVB     DDV                                   
012503,000351: 23,2226           57352                                    TCDANZIG                              #  RESET OVFIND, IF ON
012504,000352: 23,2227           06256                                    1/WIE                                 
012505,000353: 23,2230           41400                           BOV      PUSH                                  
012506,000354: 23,2231           46245                                    OVERADAY                              
012507,000355: 23,2232           45346                           COS      DSU                                   
012508,000356: 23,2233           15333                                    HIDPHALF                              
012509,000357: 23,2234           65361                           VXSC     PDDL                                  #  XCH W PUSH LIST
012510,000358: 23,2235           03466                                    RTNORM                                #  .5 UNIT
012511,000359: 23,2236           74356                           SIN      VXSC                                  
012512,000360: 23,2237           03460                                    RTEAST                                #  .5 UNIT
012513,000361: 23,2240           76455                           VAD      VSL1                                  
012514,000362: 23,2241           53455                           VAD      UNIT                                  #  INSURE THAT RT IS 'UNIT'.
012515,000363: 23,2242           03452                                    RTINIT                                #  .5 UNIT
012516,000364: 23,2243           03474                           STORE    RT                                    #  .5 UNIT TARGET VECTOR
012517,000365: 
012518,000366: 23,2244           77616                           RVQ                                            
012519,000367: 
012520,000368: 23,2245           75345        OVERADAY           DLOAD    SIGN                                  
012521,000369: 23,2246           06256                                    1/WIE                                 
012522,000370: 23,2247           03606                                    DTEAROT                               
012523,000371: 23,2250           77621                           BDSU                                           
012524,000372: 23,2251           03606                                    DTEAROT                               
012525,000373: 23,2252           03606                           STORE    DTEAROT                               
012526,000374: 
012527,000375: 23,2253           77650                           GOTO                                           
012528,000376: 23,2254           46225                                    EARROT2                               
012529,000377: 
012530,000378:                                                                                                  # WIE            2DEC    .1901487997
012531,000379: 23,2255           01015 34732  1/WIE              2DEC     8616410    B-28                       
012532,000380: 23,2257           15373 11346  NB2NB1             2DEC     +.8431756920 B-1                        
012533,000381: 23,2261           00000 00000                     2DEC     0          B-28                       
012534,000382: 23,2263           67313 65307                     2DEC     -.5376381241 B-1                        

Page 295

012536,000384: 23,2265           00000 00000  ZERINFLT           2DEC     0          B-28                       
012537,000385: 23,2267           20000 00000  HALFNFLT           2DEC     .5                                    
012538,000386: 23,2271           00000 00000                     2DEC     0          B-28                       
012539,000387: 23,2273           10464 12470                     2DEC     +.5376381241 B-1                        
012540,000388: 23,2275           00000 00000                     2DEC     0          B-28                       
012541,000389: 23,2277           15373 11346                     2DEC     +.8431756920 B-1                        
012542,000390: 23,2301           15373 11346  NB1NB2             2DEC     +.8431756920 B-1                        
012543,000391: 23,2303           00000 00000                     2DEC     0          B-28                       
012544,000392: 23,2305           10464 12470                     2DEC     +.5376381241 B-1                        
012545,000393: 23,2307           00000 00000                     2DEC     0          B-28                       
012546,000394: 23,2311           20000 00000                     2DEC     .5                                    
012547,000395: 23,2313           00000 00000                     2DEC     0          B-28                       
012548,000396: 23,2315           67313 65307                     2DEC     -.5376381241 B-1                        
012549,000397: 23,2317           00000 00000                     2DEC     0          B-28                       
012550,000398: 23,2321           15373 11346                     2DEC     +.8431756920 B-1                        

Page 296

012552,000400: 23,2323           07020        10DEGS-            DEC      3600       B-14                       
012553,000401: 23,2324           60000        270DEG             OCT      60000                                 #  SHAFT 270 DEGREES     2S COMP.
012554,000402: 23,2325           00000                           OCT      00000                                 
012555,000403: 23,2326           61740        20DEGS-            DEC      -07199     B-14                       
012556,000404: 23,2327           77777                           DEC      -00000     B-14                       
012557,000405: 23,2330           07020        20DEG-             DEC      03600      B-14                       
012558,000406: 23,2331           00000                           DEC      00000      B-14                       
012559,000407: 

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