Source Code

These source-code files were from the printout at the MIT Museum, with many thanks to Deborah Douglas, the Museum's Curator of Science and Technology, for releasing it to us. The printout was digitally photographed by Paul Fjeld. A team of volunteers transcribed the source code manually from these images or, where appropriate, modified already-transcribed but similar source Colossus 249 (Apollo 9) source code to agree with the images from the printout. Note that the page images presented online are of reduced quality, and that higher-quality images are available. Report any conversion errors or legibility problems in page images to info@sandroid.org. Notations on the program listing read, in part:

	GAP:  ASSEMBLE REVISION 055 OF AGC PROGRAM COMANCHE BY NASA 2021113-051
	10:28 APR.  1,1969
Note that the date is the date of the printout, not the date of the program revision.

022442,000002:                                                                                                  ## Copyright:   Public domain.
022443,000003:                                                                                                  ## Filename:    R30.agc
022444,000004:                                                                                                  ## Purpose:     Part of the source code for Colossus 2A, AKA Comanche 055.
022445,000005:                                                                                                  ##              It is part of the source code for the Command Module's (CM)
022446,000006:                                                                                                  ##              Apollo Guidance Computer (AGC), for Apollo 11.
022447,000007:                                                                                                  ## Assembler:   yaYUL
022448,000008:                                                                                                  ## Contact:     Hartmuth Gutsche <hgutsche@xplornet.com>.
022449,000009:                                                                                                  ## Website:     www.ibiblio.org/apollo.
022450,000010:                                                                                                  ## Pages:       514-524
022451,000011:                                                                                                  ## Mod history: 2009-05-09 HG   Started adapting from the Colossus249/ file 
022452,000012:                                                                                                  ##                              of the same name, using Comanche055 page 
022453,000013:                                                                                                  ##                              images 0514.jpg - 0524.jpg. 
022454,000014:                                                                                                  ##              2016-12-10 RSB  Proofed comments with octopus/ProoferComments
022455,000015:                                                                                                  ##                              and fixed the errors found.
022456,000016:                                                                                                  ##              2017-01-18 RSB  Fixed comment-text errors noted while diff'ing
022457,000017:                                                                                                  ##                              vs Colossus 249.
022458,000018:                                                                                                  ##              2017-02-08 RSB  Comment-text fixes discovered while proofing Artemis 72.
022459,000019:                                                                                                  ##
022460,000020:                                                                                                  ## This source code has been transcribed or otherwise adapted from digitized
022461,000021:                                                                                                  ## images of a hardcopy from the MIT Museum.  The digitization was performed
022462,000022:                                                                                                  ## by Paul Fjeld, and arranged for by Deborah Douglas of the Museum.  Many
022463,000023:                                                                                                  ## thanks to both.  The images (with suitable reduction in storage size and
022464,000024:                                                                                                  ## consequent reduction in image quality as well) are available online at
022465,000025:                                                                                                  ## www.ibiblio.org/apollo.  If for some reason you find that the images are
022466,000026:                                                                                                  ## illegible, contact me at info@sandroid.org about getting access to the 
022467,000027:                                                                                                  ## (much) higher-quality images which Paul actually created.
022468,000028:                                                                                                  ##
022469,000029:                                                                                                  ## Notations on the hardcopy document read, in part:
022470,000030:                                                                                                  ##
022471,000031:                                                                                                  ##    Assemble revision 055 of AGC program Comanche by NASA
022472,000032:                                                                                                  ##    2021113-051.  10:28 APR. 1, 1969  
022473,000033:                                                                                                  ##
022474,000034:                                                                                                  ##    This AGC program shall also be referred to as
022475,000035:                                                                                                  ##            Colossus 2A
022476,000036: 

Page 514

022478,000038:                                                                                                  #  SUBROUTINE NAME:  V82CALL
022479,000039:                                                                                                  #  MOD NO: 0                                                             DATE: 16 FEB 67
022480,000040:                                                                                                  #  MOD BY: RR BAIRNSFATHER                                               LOG SECTION:  R30
022481,000041:                                                                                                  #  MOD NO: 1     MOD BY:  RR BAIRNSFATHER        DATE: 11 APR 67         SR30.1 CHANGED TO ALLOW MONITOR OPERN
022482,000042:                                                                                                  #  MOD NO: 2     MOD  BY  ALONSO                 DATE: 11 DEC 67         VB82 PROGRAM REWRITTEN
022483,000043:                                                                                                  #  MOD NO: 3     MOD  BY  ALONSO                 DATE: 26 MAR 68         PROG MOD TO HANDLE DIF EARTH/MOON SCALE
022484,000044: 
022485,000045:                                                                                                  #  NEW FUNCTIONAL DESCRIPTION:   CALLED BY VERB 82 ENTER.  PRIORITY 10
022486,000046:                                                                                                  #  USED THROUGHOUT.              CALCULATE AND DISPLAY ORBITAL PARAMETERS
022487,000047: 
022488,000048:                                                                                                  #  1.    IF AVERAGE G IS OFF:
022489,000049:                                                                                                  #                FLASH DISPLAY V04N06.  R2 INDICATES WHICH SHIP'S STATE VECTOR IS
022490,000050:                                                                                                  #                        TO BE UPDATED.  INITIAL CHOICE IS THIS SHIP (R2=1).  ASTRONAUT
022491,000051:                                                                                                  #                        CAN CHANGE TO OTHER SHIP BY V22EXE, WHERE X NOT EQ 1.
022492,000052:                                                                                                  #                SELECTED STATE VECTOR UPDATED BY THISPREC (OTHPREC).
022493,000053:                                                                                                  #                CALLS SR30.1 (WHICH CALLS TFFCONMU + TFFRP/RA) TO CALCULATE
022494,000054:                                                                                                  #                        RPER (PERIGEE RADIUS), RAPO (APOGEE RADIUS), HPER (PERIGEE
022495,000055:                                                                                                  #                        HEIGHT ABOVE LAUNCH PAD OR LUNAR LANDING SITE), HAPO (APOGEE
022496,000056:                                                                                                  #                        HEIGHT AS ABOVE), TPER (TIME TO PERIGEE), TFF (TIME TO
022497,000057:                                                                                                  #                        INTERSECT 300 KFT ABOVE PAD OR 35KFT ABOVE LANDING SITE).
022498,000058:                                                                                                  #                FLASH MONITOR V16N44 (HAPO, HPER, TFF).  TFF IS -59M59S IF IT WAS
022499,000059:                                                                                                  #                        NOT COMPUTABLE, OTHERWISE IT INCREMENTS ONCE PER SECOND.
022500,000060:                                                                                                  #                        ASTRONAUT HAS OPTION TO MONITOR TPER BY KEYING IN N 32 E.
022501,000061:                                                                                                  #                        DISPLAY IS IN HMS, IS NEGATIVE (AS WAS TFF), AND INCREMENTS
022502,000062:                                                                                                  #                        ONCE PER SECOND ONLY IF TFF DISPLAY WAS -59M59S.
022503,000063:                                                                                                  #        2.      IF AVERAGE G IS ON:
022504,000064:                                                                                                  #                        CALLS SR30.1 APPROX EVERY TWO SECS.  STATE VECTOR IS ALWAYS
022505,000065:                                                                                                  #                                FOR THIS VEHICLE.  V82 DOES NOT DISTURB STATE VECTOR.  RESULTS
022506,000066:                                                                                                  #                                OF SR30.1 ARE RAPO, RPER, HAPO, HPER, TPER, TFF.
022507,000067:                                                                                                  #                        FLASH MONITOR V16N44 (HAPO, HPER, TFF).
022508,000068:                                                                                                  #                        IF MODE IS P11, THEN CALL DELRSPL SO ASTRONAUT CAN MONITOR
022509,000069:                                                                                                  #                                RESULTS BY N50E.  SPLASH COMPUTATION DONE ONCE PER TWO SECS.
022510,000070:                                                                                                  #        ADDENDUM:  HAPO AND HPER SHOULD BE CHANGED TO READ HAPOX AND HPERX IN THE
022511,000071:                                                                                                  #                ABOVE REMARKS.
022512,000072: 
022513,000073:                                                                                                  #  CALLING SEQUENCE: VERB 82 ENTER.
022514,000074: 
022515,000075:                                                                                                  #  SUBROUTINES CALLED:   SR30.1, GOXDSPF
022516,000076:                                                                                                  #                        MAYBE - THISPREC, OTHPREC, LOADTIME, DELRSPL
022517,000077: 
022518,000078:                                                                                                  #  NORMAL EXIT MODES:  TC ENDEXT
022519,000079: 
022520,000080:                                                                                                  #  ALARMS:  NONE
022521,000081: 
022522,000082:                                                                                                  #  OUTPUT:       HAPOX   (-29) M
022523,000083:                                                                                                  #                HPERX   (-29) M
022524,000084:                                                                                                  #                RAPO    (-29) M EARTH
022525,000085:                                                                                                  #                        (-27) M MOON

Page 515

022527,000087:                                                                                                  #                RPER    (-29) M EARTH
022528,000088:                                                                                                  #                        (-27) M MOON
022529,000089:                                                                                                  #                TFF     (-28) CS        CONTAINS NEGATIVE QUANTITY
022530,000090:                                                                                                  #                -TPER   (-28) CS        CONTAINS NEGATIVE QUANTITY
022531,000091:                                                                                                  #                RSP-RREC(-29) M         IF DELRSPL CALLED
022532,000092: 
022533,000093:                                                                                                  #  ERASABLE INITIALIZATION REQUIRED:  STATE VECTOR.
022534,000094: 
022535,000095:                                                                                                  #  DEBRIS:       QPRET, RONE, VONE, TFF/RTMU, HPERMIN, RPADTEM, V82EMFLG.
022536,000096:                                                                                                  #                MAYBE:  TSTART82, V82FLAGS, TDEC1.
022537,000097: 
022538,000098: 13,2231  E4,1751                                  EBANK=   HAPOX                                 
022539,000099: 31,2332                                           BANK     31                                    
022540,000100: 23,2000                                           SETLOC   R30LOC                                
022541,000101: 23,2000                                           BANK                                           
022542,000102: 23,2332                                           COUNT*   $$/R30                                
022543,000103: 
022544,000104: 23,2332           06006        V82CALL            TC       INTPRET                               
022545,000105: 23,2333           52014                           BON      GOTO                                  
022546,000106: 23,2334           00716                                    AVEGFLAG                              
022547,000107: 23,2335           46566                                    V82GON                                #  IF AVERAGE G ON
022548,000108: 23,2336           46337                                    V82GOFF                               #  IF AVERAGE G OFF
022549,000109: 
022550,000110: 23,2337           77776        V82GOFF            EXIT                                           #  ALLOW ASTRONAUT TO SELECT VEHICLE
022551,000111: 23,2340           35016                           CAF      TWO                                   #  DESIRED FOR ORBITAL PARAMETERS
022552,000112: 23,2341           55051                           TS       OPTIONX                               
022553,000113: 23,2342           35017                           CAF      ONE                                   
022554,000114: 23,2343           55052                           TS       OPTIONX    +1                         
022555,000115: 23,2344           32406                           CAF      OPTIONVN                              #  V 04 N 06
022556,000116: 23,2345           04662                           TC       BANKCALL                              
022557,000117: 23,2346           20561                           CADR     GOXDSPF                               
022558,000118: 23,2347           05534                           TC       ENDEXT                                #  TERMINATE
022559,000119: 23,2350           02352                           TC       +2                                    #  PROCEED
022560,000120: 23,2351           02344                           TC       -5                                    #  DATA IN.  OPTIONX +1 = 1 FOR THIS VEHIC.
022561,000121:                                                                                                  #                 UNEQ 1 FOR OTHER VEHICLE.
022562,000122: 23,2352           35014                           CAF      BIT4                                  #  80 MS
022563,000123: 23,2353           05245                           TC       WAITLIST                              
022564,000124: 23,2354  E4,1743                                  EBANK=   TFF                                   
022565,000125: 23,2354           02531 46064                     2CADR    TICKTEST                              
022566,000126: 
022567,000127: 23,2356           00003                           RELINT                                         
022568,000128: 23,2357           32410        V82GOFLP           CAF      TFFBANK                               #  MAJOR RECYCLE LOOP ENTRY
022569,000129: 23,2360           54003                           TS       EBANK                                 
022570,000130: 23,2361           35021                           CAF      ZERO                                  
022571,000131: 23,2362           55742                           TS       V82FLAGS                              #  ZERO FLAGS FOR TICKTEST. INHIBITS
022572,000132:                                                                                                  #  DECREMENTING OF TFF AND -TPER.
022573,000133: 23,2363           35063                           CAF      PRIO7                                 
022574,000134: 23,2364           05147                           TC       FINDVAC                               #  V82GOFF1 WILL EXECUTE STATE VECTOR

Page 516

022576,000136: 23,2365  E4,1743                                  EBANK=   TFF                                   #  UPDATE AND ORBIT CALCULATIONS FOR
022577,000137: 23,2365           02411 46064                     2CADR    V82GOFF1                              #  SELECTED VEHICLE ABOUT PROPER BODY.
022578,000138: 
022579,000139: 23,2367           00003                           RELINT                                         
022580,000140: 23,2370           36214        V82STALL           CAF      THREE                                 #  STALL IN THIS LOOP AND WITHOLD V 16 N 44
022581,000141: 23,2371           71742                           MASK     V82FLAGS                              #  UNTIL STATE VECTOR UPDATE SETS ONE OF
022582,000142: 23,2372           10000                           CCS      A                                     #  OUR FLAG BITS.
022583,000143: 23,2373           02400                           TC       FLAGGON                               #  EXIT FROM STALL LOOP.
022584,000144: 23,2374           35041                           CAF      1SEC                                  
022585,000145: 23,2375           04662                           TC       BANKCALL                              
022586,000146: 23,2376           01732                           CADR     DELAYJOB                              
022587,000147: 23,2377           02370                           TC       V82STALL                              
022588,000148: 
022589,000149: 23,2400           32407        FLAGGON            CAF      V16N44                                #  MONITOR HAPO,HPER,TFF.
022590,000150: 23,2401           04662                           TC       BANKCALL                              
022591,000151: 23,2402           20561                           CADR     GOXDSPF                               
022592,000152: 23,2403           05625                           TC       B5OFF                                 #  TERM THIS TELLS TICKTEST TO KILL ITSELF
022593,000153: 23,2404           05625                           TC       B5OFF                                 #  PROCEED  DITTO
022594,000154: 23,2405           02357                           TC       V82GOFLP                              #  RECYCLE  RECOMPUTE STATE VECT + DISPLAY
022595,000155: 
022596,000156: 23,2406           01014        OPTIONVN           VN       0412                                  
022597,000157: 23,2407           04054        V16N44             VN       1644                                  
022598,000158: 23,2410           02343        TFFBANK            ECADR    TFF                                   
022599,000159: 
022600,000160: 23,2411           06006        V82GOFF1           TC       INTPRET                               
022601,000161: 23,2412           77634                           RTB                                            
022602,000162: 23,2413           45510                                    LOADTIME                              
022603,000163: 23,2414           00041                           STORE    TDEC1                                 #  TIME FOR STATE VECTOR UPDATE.
022604,000164: 23,2415           02325                           STORE    TSTART82                              #  TIME FOR INTERNAL USE.
022605,000165: 23,2416           77776                           EXIT                                           
022606,000166: 23,2417           41052                           CS       OPTIONX    +1                         #  1 FOR THIS VEHICLE, NOT 1 FOR OTHER
022607,000167: 23,2420           65017                           AD       ONE                                   
022608,000168: 23,2421           00006                           EXTEND                                         
022609,000169: 23,2422           12446                           BZF      THISSHIP                              
022610,000170: 23,2423           06006        OTHSHIP            TC       INTPRET                               
022611,000171: 23,2424           77624                           CALL                                           #  CALL STATE VECTOR UPDATE FOR OTHER SHIP.
022612,000172: 23,2425           27105                                    OTHPREC                               
022613,000173: 23,2426           77775        BOTHSHIP           VLOAD                                          #  MOVE RESULTS INTO TFFCONIC STORAGE AREAS
022614,000174: 23,2427           00001                                    RATT                                  #  TO BE CALLED BY SR30.1.
022615,000175: 23,2430           26327                           STOVL    RONE                                  #  RATT AT (-29)M FOR EARTH OR MOON
022616,000176: 23,2431           00007                                    VATT                                  
022617,000177: 23,2432           02335                           STORE    VONE                                  #  VATT AT (-7)M/CS FOR EARTH OR MOON
022618,000178: 23,2433           77743                           DLOAD*                                         
022619,000179: 23,2434           71321                                    1/RTMUE,2                             #  X2 IS 0 FOR EARTH CENTERED STATE VEC

HG remark: In Comanche055 scan this line (5324) looks pretty much like 1/RTMUF.2 can not decide, leave it as it is in start source.

022622,000182: 23,2435           00037                           STORE    TFF/RTMU                              #  X2 IS 2 FOR MOON
022623,000183: 23,2436           77743                           DLOAD*                                         #  AS LEFT BY THISPREC OR OTHPREC.
022624,000184: 23,2437           71315                                    MINPERE,2                             
022625,000185: 23,2440           02321                           STORE    HPERMIN                               #  TFFRTMU, HPERMIN AND RPADTEM ARE ALL
022626,000186: 23,2441           46135                           SLOAD    BHIZ                                  #  EARTH/MOON PARAMETERS AS SET HERE.

Page 517

022628,000188: 23,2442           00050                                    X2                                    
022629,000189: 23,2443           46463                                    EARTHPAD                              
022630,000190: 23,2444           77650                           GOTO                                           
022631,000191: 23,2445           46467                                    MOONPAD                               
022632,000192: 23,2446           06006        THISSHIP           TC       INTPRET                               
022633,000193: 23,2447           77624                           CALL                                           #  CALL STATE VECTOR UPDATE FOR THIS SHIP.
022634,000194: 23,2450           27071                                    THISPREC                              
022635,000195: 23,2451           77650                           GOTO                                           
022636,000196: 23,2452           46426                                    BOTHSHIP                              
022637,000197: 
022638,000198:                                                                                                  #  THE FOLLOWING CONSTANTS ARE PAIRWISE INDEXED.  DO NOT SEPARATE PAIRS.
022639,000199: 
022640,000200: 23,2453           27533 07571  1/RTMUM            2DEC*    .45162595  E-4        B14*            
022641,000201: 23,2455           25004 06702  1/RTMUE            2DEC*    .50087529  E-5        B17*            
022642,000202: 
022643,000203: 23,2457           00001 11530  MINPERM            2DEC     10668      B-27                       #  35 KFT MIN PERIGEE HEIGHT FOR MOON(-27)M
022644,000204: 23,2461           00002 31230  MINPERE            2DEC     91440      B-29                       #  300 KFT (-29)M FOR EARTH
022645,000205: 
022646,000206: 23,2463           43145        EARTHPAD           DLOAD    CLRGO                                 #  PAD 37-B RADIUS.  SCALED AT (-29)M.
022647,000207: 23,2464           05152                                    RPAD                                  
022648,000208: 23,2465           04622                                    V82EMFLG                              #  INDICATE EARTH SCALING FOR SR30.1
022649,000209: 23,2466           46473                                    BOTHPAD                               
022650,000210: 
022651,000211: 23,2467           51575        MOONPAD            VLOAD    ABVAL                                 #  COMPUTE MOON PAD RADIUS FROM RLS VECTOR.
022652,000212: 23,2470           02026                                    RLS                                   #  SCALED AT (-27)M.
022653,000213: 23,2471           77614                           SET                                            
022654,000214: 23,2472           04462                                    V82EMFLG                              #  INDICATE MOON SCALING FOR SR30.1
022655,000215: 23,2473           36323        BOTHPAD            STCALL   RPADTEM                               
022656,000216: 23,2474           46667                                    SR30.1                                #  CALCULATE ORBITAL PARAMETERS
022657,000217: 23,2475           77776                           EXIT                                           
022658,000218: 23,2476           31011                           CA       MODREG                                #  ARE WE IN POO
022659,000219: 23,2477           00006                           EXTEND                                         
022660,000220: 23,2500           12645                           BZF      CANDEL                                #  YES, DO DELRSPL
022661,000221: 23,2501           06006        SPLRET1            TC       INTPRET                               
022662,000222: 23,2502           45234                           RTB      DSU                                   
022663,000223: 23,2503           45510                                    LOADTIME                              
022664,000224: 23,2504           02325                                    TSTART82                              #  PRESENT TIME - TIME V82GOFF1 BEGAN
022665,000225: 23,2505           02325                           STORE    TSTART82                              #                 SAVE IT
022666,000226: 23,2506           53145                           DLOAD    BZE                                   #  SR30.1 SETS -TPER=0 IF HPER L/
022667,000227: 23,2507           02346                                    -TPER                                 #  HPERMIN (300 OR 35) KFT.
022668,000228: 23,2510           46521                                    TICKTFF                               #  (-TPER = 0)
022669,000229: 23,2511           43345        TICKTPER           DLOAD    DAD                                   #  (-TPER NON ZERO) TFF WAS NOT COMPUTED,
022670,000230: 23,2512           02346                                    -TPER                                 #  BUT WAS SET TO 59M59S.  DONT TICK TFF, DO
022671,000231: 23,2513           02325                                    TSTART82                              #  TICK -TPER.  DISPLAY BOTH.
022672,000232: 23,2514           02346                           STORE    -TPER                                 #  -TPER CORRECTED FOR TIME SINCE V82GOFF1
022673,000233: 23,2515           77776                           EXIT                                           #  BEGAN.
022674,000234: 

Page 518

022676,000236: 23,2516           35017                           CAF      BIT1                                  
022677,000237: 23,2517           55742                           TS       V82FLAGS                              #  INFORMS TICKTEST TO INCREMENT ONLY -TPER
022678,000238: 23,2520           05217                           TC       ENDOFJOB                              
022679,000239: 
022680,000240: 23,2521           43345        TICKTFF            DLOAD    DAD                                   #  (-TPER=0) TFF WAS COMPUTED.  TICK TFF.
022681,000241: 23,2522           02344                                    TFF                                   #  DO NOT TICK -TPER.  DISPLAY TFF, BUT NOT
022682,000242: 23,2523           02325                                    TSTART82                              #  -TPER.
022683,000243: 23,2524           02344                           STORE    TFF                                   #  TFF CORRECTED FOR TIME SINCE V82GOFF1
022684,000244: 23,2525           77776                           EXIT                                           #  BEGAN.
022685,000245: 23,2526           35016                           CAF      BIT2                                  
022686,000246: 23,2527           55742                           TS       V82FLAGS                              #  INFORMS TICKTEST TO INCREMENT ONLY TFF.
022687,000247: 23,2530           05217                           TC       ENDOFJOB                              
022688,000248: 
022689,000249: 23,2531           35013        TICKTEST           CAF      BIT5                                  #  THIS WAITLIST PROGRAM PERPETUATES ITSELF
022690,000250: 23,2532           71044                           MASK     EXTVBACT                              #  ONCE A SEC UNTIL BIT 5 OF EXTVBACT =0.
022691,000251: 23,2533           10000                           CCS      A                                     
022692,000252: 23,2534           02542                           TC       DOTICK                                
022693,000253: 23,2535           37662                           CAF      PRIO25                                
022694,000254: 23,2536           05134                           TC       NOVAC                                 #  TERMINATE V 82.  CANT CALL ENDEXT IN RUPT.
022695,000255: 23,2537     1044                                  EBANK=   EXTVBACT                              
022696,000256: 23,2537           05534 04062                     2CADR    ENDEXT                                
022697,000257: 
022698,000258: 23,2541           05324                           TC       TASKOVER                              
022699,000259: 23,2542           35041        DOTICK             CAF      1SEC                                  #  RE-REQUEST TICKTEST.
022700,000260: 23,2543           05245                           TC       WAITLIST                              
022701,000261: 23,2544  E4,1743                                  EBANK=   TFF                                   
022702,000262: 23,2544           02531 46064                     2CADR    TICKTEST                              
022703,000263: 
022704,000264: 23,2546           36214                           CAF      THREE                                 
022705,000265: 23,2547           71742                           MASK     V82FLAGS                              
022706,000266: 23,2550           50000                           INDEX    A                                     
022707,000267: 23,2551           02552                           TC       +1                                    
022708,000268: 23,2552           05324                           TC       TASKOVER                              #  IF NO FLAGBITS SET DONT CHANGE TFF OR
022709,000269:                                                                                                  #  -TPER, BUT CONTINUE LOOP.
022710,000270: 23,2553           02561                           TC       TPERTICK                              #  ONLY BIT 1 SET.  INCR -TPER BY 1 SEC.
022711,000271: 23,2554           35041        TFFTICK            CAF      1SEC                                  #  ONLY BIT 2 SET.  INCR TFF BY 1 SEC.
022712,000272: 23,2555           54001                           TS       L                                     
022713,000273: 23,2556           35021                           CAF      ZERO                                  
022714,000274: 23,2557           21744                           DAS      TFF                                   
022715,000275: 23,2560           05324                           TC       TASKOVER                              
022716,000276: 23,2561           35041        TPERTICK           CAF      1SEC                                  
022717,000277: 23,2562           54001                           TS       L                                     
022718,000278: 23,2563           35021                           CAF      ZERO                                  
022719,000279: 23,2564           21746                           DAS      -TPER                                 
022720,000280: 23,2565           05324                           TC       TASKOVER                              

Page 519

022722,000282: 23,2566           77776        V82GON             EXIT                                           #  AVERAGE G ON.  USE CURRENT STATE VECTOR
022723,000283:                                                                                                  #  FOR ORBITAL PARAMETER CALCULATIONS.
022724,000284: 23,2567           35063                           CAF      PRIO7                                 #  LESS THAN LAMBERT
022725,000285: 23,2570           05147                           TC       FINDVAC                               #  V82GON1 WILL PERFORM ORBIT CALCULATIONS
022726,000286: 23,2571  E4,1743                                  EBANK=   TFF                                   #  ABOUT PROPER BODY APPROX ONCE PER SEC.
022727,000287: 23,2571           02604 46064                     2CADR    V82GON1                               
022728,000288: 
022729,000289: 23,2573           00003                           RELINT                                         
022730,000290: 23,2574           10067                           CCS      NEWJOB                                #  WITHOLD V16 N44 UNTIL FIRST ORBIT CALC
022731,000291: 23,2575           05164                           TC       CHANG1                                #  IS DONE.  NOTE:  V82GON1 (PRIO7, FINDVAC
022732,000292:                                                                                                  #  JOB) IS COMPLETED BEFORE V82GON (PRIO7,
022733,000293:                                                                                                  #  NOVAC JOB).
022734,000294: 23,2576           32407        V82REDSP           CAF      V16N44                                #  MONITOR HAPO, HPER, TFF
022735,000295: 23,2577           04662                           TC       BANKCALL                              
022736,000296: 23,2600           20561                           CADR     GOXDSPF                               
022737,000297: 23,2601           05625                           TC       B5OFF                                 #  TERM THIS TELLS V82GON1 TO KILL ITSELF.
022738,000298: 23,2602           05625                           TC       B5OFF                                 #  PROC DITTO.
022739,000299: 23,2603           02576                           TC       V82REDSP                              #  RECYCLE
022740,000300: 
022741,000301: 23,2604           06006        V82GON1            TC       INTPRET                               #  THIS EXEC PROGRAM PERPETUATES ITSELF
022742,000302:                                                                                                  #  ONCE A SEC UNTIL BIT 5 OF EXTVBACT =0.
022743,000303: 23,2605           52175                           VLOAD    GOTO                                  #  HOLDS OFF CCS NEWJOB BETWEEN RN AND
022744,000304: 23,2606           01171                                    RN                                    #  VN FETCH SO RN, VN ARE FROM SAME
022745,000305: 23,2607           46610                                    NEXTLINE                              #  STATE VECTOR UPDATE.
022746,000306: 23,2610           26327        NEXTLINE           STOVL    RONE                                  #  RN AT (-29)M FOR EARTH OR MOON
022747,000307: 23,2611           01177                                    VN                                    
022748,000308: 23,2612           02335                           STORE    VONE                                  #  VN AT (-7)M/CS FOR EARTH OR MOON
022749,000309: 23,2613           52014                           BON      GOTO                                  
022750,000310: 23,2614           00315                                    AMOONFLG                              #  FLAG INDICATES BODY ABOUT WHICH ORBITAL
022751,000311: 23,2615           46617                                    MOONGON                               #  CALCULATIONS ARE TO BE PERFORMED.
022752,000312: 23,2616           46630                                    EARTHGON                              #  IF SET - MOON, IF RESET - EARTH.
022753,000313: 
022754,000314: 23,2617           71214        MOONGON            SET      DLOAD                                 
022755,000315: 23,2620           04462                                    V82EMFLG                              #  INDICATE MOON SCALING FOR SR30.1
022756,000316: 23,2621           06454                                    1/RTMUM                               #  LUNAR PARAMETERS LOADED HERE FOR SR30.1
022757,000317: 23,2622           14037                           STODL    TFF/RTMU                              
022758,000318: 23,2623           06460                                    MINPERM                               
022759,000319: 23,2624           26321                           STOVL    HPERMIN                               
022760,000320: 23,2625           02026                                    RLS                                   #  SCALED AT (-27)M.
022761,000321: 23,2626           52046                           ABVAL    GOTO                                  
022762,000322: 23,2627           46637                                    V82GON2                               
022763,000323: 23,2630           71214        EARTHGON           CLEAR    DLOAD                                 
022764,000324: 23,2631           04662                                    V82EMFLG                              #  INDICATE EARTH SCALING FOR SR30.1
022765,000325: 23,2632           06456                                    1/RTMUE                               #  EARTH PARAMETERS LOADED HERE FOR SR30.1
022766,000326: 23,2633           14037                           STODL    TFF/RTMU                              
022767,000327: 23,2634           06462                                    MINPERE                               
022768,000328: 23,2635           16321                           STODL    HPERMIN                               
022769,000329: 23,2636           05152                                    RPAD                                  
022770,000330: 23,2637           36323        V82GON2            STCALL   RPADTEM                               #  COMMON CODE FOR EARTH & MOON.
022771,000331: 23,2640           46667                                    SR30.1                                

Page 520

022773,000333: 23,2641           77776                           EXIT                                           
022774,000334: 23,2642           05364                           TC       CHECKMM                               
022775,000335: 23,2643           00013                           DEC      11         B-14                       
022776,000336: 23,2644           02657                           TC       V82GON3                               #  NOT IN MODE 11.
022777,000337: 23,2645           06006        CANDEL             TC       INTPRET                               #  IN MODE 11 OR 00
022778,000338: 23,2646           77624                           CALL                                           
022779,000339: 23,2647           27442                                    INTSTALL                              #  DELRSPL DOES INTWAKE
022780,000340: 23,2650           45145                           DLOAD    CALL                                  
022781,000341: 23,2651           02344                                    TFF                                   
022782,000342: 23,2652           64017                                    DELRSPL                               #  RETURN IS TO NEXT LINE (SPLRET).
022783,000343: 23,2653           77776        SPLRET             EXIT                                           
022784,000344: 
022785,000345: 23,2654           31011                           CA       MODREG                                
022786,000346: 23,2655           00006                           EXTEND                                         
022787,000347: 23,2656           12501                           BZF      SPLRET1                               
022788,000348: 23,2657           35013        V82GON3            CAF      BIT5                                  
022789,000349: 23,2660           71044                           MASK     EXTVBACT                              #  SEE IF ASTRONAUT HAS SIGNALLED TERMINATE
022790,000350: 23,2661           00006                           EXTEND                                         
022791,000351: 23,2662           15534                           BZF      ENDEXT                                #  YES, TERMINATE VB 82 LOOP
022792,000352: 23,2663           35041                           CAF      1SEC                                  
022793,000353: 23,2664           04662                           TC       BANKCALL                              #  WAIT ONE SECOND BEFORE REPEATING
022794,000354: 23,2665           01732                           CADR     DELAYJOB                              #  ORBITAL PARAMETER COMPUTATION.
022795,000355: 23,2666           02604                           TC       V82GON1                               
022796,000356: 

Page 521

022798,000358:                                                                                                  #  SUBROUTINE NAME: SR30.1
022799,000359:                                                                                                  #  MOD NO: 0                                                             DATE: 16 FEB 67
022800,000360:                                                                                                  #  MOD BY: RR BAIRNSFATHER                                               LOG SECTION: R32
022801,000361:                                                                                                  #  MOD NO: 1     MOD BY: RR BAIRNSFATHER         DATE: 11 APR 67         SR30.1 CHANGED TO ALLOW MONITOR OPERN
022802,000362:                                                                                                  #  MOD NO: 2     MOD BY: RR BAIRNSFATHER         DATE: 14 APR 67         ADD OVFL CK FOR RAPO
022803,000363:                                                                                                  #  MOD NO: 3     MOD BY ALONSO                   DATE: 11 DEC 67         SUBROUTINE REWRITTEN
022804,000364:                                                                                                  #  MOD NO: 4     MOD BY ALONSO                   DATE: 26 MAR 68         PROG MOD TO HANDLE DIF EARTH/MOON SCALE
022805,000365:                                                                                                  #  MOD NO: 5     MOD BY: RR BAIRNSFATHER         DATE: 6 AUG 68          OVFL CK FOR HAPO & HPER. VOIDS MOD #2.
022806,000366: 
022807,000367:                                                                                                  #  NEW FUNCTIONAL DESCRIPTION:  ORBITAL PARAMETERS DISPLAY FOR NOUNS 32 AND 44.
022808,000368:                                                                                                  #  SR30.1 CALLS TFFCONMU AND TFFRP/RA TO CALCULATE RPER (PERIGEE RADIUS),
022809,000369:                                                                                                  #  RAPO (APOGEE RADIUS), HPER (PERIGEE HEIGHT ABOVE LAUNCH PAD OR LUNAR
022810,000370:                                                                                                  #  LANDING SITE), HAPO (APOGEE HEIGHT AS ABOVE), TPER (TIME TO PERIGEE),
022811,000371:                                                                                                  #  TFF (TIME TO INTERSECT 300 KFT ABOVE PAD OR 35KFT ABOVE LANDING SITE).
022812,000372:                                                                                                  #  IF HPER IS GREATER THAN OR EQUAL TO HPERMIN, CALCULATES TPER AND STORES
022813,000373:                                                                                                  #  NEGATIVE    IN -TPER. OTHERWISE STORES +0 IN -TPER. WHENEVER TPER IS
022814,000374:                                                                                                  #  CALCULATED, TFF IS NOT COMPUTABLE AND DEFAULTS TO -59MIN 59SEC.  IF HAPO
022815,000375:                                                                                                  #  WOULD EXCEED 9999.9 NM, IT IS LIMITED TO THAT VALUE FOR DISPLAY.
022816,000376: 
022817,000377:                                                                                                  #  ADDENDUM:     HAPO AND HPER SHOULD BE CHANGED TO READ HAPOX AND HPERX IN THE
022818,000378:                                                                                                  #                ABOVE REMARKS.
022819,000379: 
022820,000380:                                                                                                  #  CALLING SEQUENCE:     CALL
022821,000381:                                                                                                  #                                SR30.1
022822,000382: 
022823,000383:                                                                                                  #  SUBROUTINES CALLED:   TFFCONMU, TFFRP/RA, CALCTPER, CALCTFF
022824,000384: 
022825,000385:                                                                                                  #  NORMAL EXIT MODE:     CALLING LINE +1 (STILL IN INTERPRETIVE MODE)
022826,000386: 
022827,000387:                                                                                                  #  ALARMS:       NONE
022828,000388: 
022829,000389:                                                                                                  #  OUTPUT:       RAPO    (-29) M EARTH   APOGEE RADIUS   EARTH CENTERED COORD.
022830,000390:                                                                                                  #                        (-27) M MOON                    MOON CENTERED COORD.
022831,000391:                                                                                                  #                RPER    (-29) M EARTH   PERIGEE RADIUS  EARTH CENTERED COORD.
022832,000392:                                                                                                  #                        (-27) M MOON                    MOON CENTERED COORD.
022833,000393:                                                                                                  #                HAPOX   (-29) M         APOGEE ALTITUDE ABOVE PAD OR LAND. SITE MAX VALUE LIMITED TO 9999.9 NM.
022834,000394:                                                                                                  #                HPERX   (-29) M         PERIGEE ALT. ABOVE PAD OR LAND. SITE    MAX VALUE LIMITED TO 9999.9 NM.
022835,000395:                                                                                                  #                TFF     (-28) CS        TIME TO 300KFT OR 35KFT ALTITUDE
022836,000396:                                                                                                  #                -TPER   (-28) CS        TIME TO PERIGEE
022837,000397: 
022838,000398:                                                                                                  #  ERASABLE INITIALIZATION REQUIRED -
022839,000399:                                                                                                  #        TFF/RTMU        (+17) EARTH     RECIPROCAL OF PROPER GRAV CONSTANT FOR
022840,000400:                                                                                                  #                        (+14) MOON      EARTH OR MOON = 1/SQRT(MU).
022841,000401:                                                                                                  #        RONE            (-29) M         STATE VECTOR
022842,000402:                                                                                                  #        VONE            (-7)  M/CS      STATE VECTOR
022843,000403:                                                                                                  #        RPADTEM         (-29) M EARTH   RADIUS OF LAUNCH PAD OR LUNAR LANDING
022844,000404:                                                                                                  #                        (-27) M MOON    SITE.
022845,000405:                                                                                                  #        HPERMIN         (-29) M EARTH   (300 OR 35) KFT MINIMUM PERIGEE ALTITUDE
022846,000406:                                                                                                  #                        (-27) M MOON    ABOVE LAUNCH PAD OR LUNAR LANDING SITE.
022847,000407:                                                                                                  #        V82EMFLG        (INT SW BIT)    RESET FOR EARTH, SET FOR MOON.
022848,000408: 
022849,000409:                                                                                                  #  DEBRIS:       QPRET, PDL, S2
022850,000410: 

Page 522

022852,000412: 23,2667                                           COUNT*   $$/SR30S                              
022853,000413: 
022854,000414: 23,2667           44001        SR30.1             SETPD    STQ                                   #  INITIALIZE PUSHDOWN LIST.
022855,000415: 23,2670           00001                                    0                                     
022856,000416: 23,2671           00051                                    S2                                    
022857,000417:                                                                                                  #  SR30.1 INPUT: RONE AT (-29)M EARTH/MOON
022858,000418:                                                                                                  #                VONE AT (-7)M/CS
022859,000419:                                                                                                  #  TFFCONMU, TFFRP/RA, CALCTPER AND CALCTFF
022860,000420:                                                                                                  #  CALLS REQUIRE:
022861,000421:                                                                                                  #  EARTH CENTERED (NO RESCALING REQUIRED)
022862,000422:                                                                                                  #        RONE SCALED TO B-29 M
022863,000423:                                                                                                  #        VONE SCALED TO B-7 M/CS
022864,000424:                                                                                                  #  MOON CENTERED (RESCALING REQUIRED)
022865,000425:                                                                                                  #        RONE SCALED TO B-27 M
022866,000426:                                                                                                  #        VONE SCALED TO B-5 M/CS
022867,000427: 23,2672           77214                           BOFF     VLOAD                                 
022868,000428: 23,2673           04742                                    V82EMFLG                              #  OFF FOR EARTH, ON FOR MOON.
022869,000429: 23,2674           46703                                    TFFCALLS                              
022870,000430: 23,2675           02327                                    RONE                                  
022871,000431: 23,2676           77752                           VSL2                                           
022872,000432: 23,2677           26327                           STOVL    RONE                                  
022873,000433: 23,2700           02335                                    VONE                                  
022874,000434: 23,2701           77752                           VSL2                                           
022875,000435: 23,2702           02335                           STORE    VONE                                  
022876,000436: 23,2703           77624        TFFCALLS           CALL                                           
022877,000437: 23,2704           56760                                    TFFCONMU                              
022878,000438: 23,2705           77624                           CALL                                           #  TFFRP/RA COMPUTES RAPO,RPER.
022879,000439: 23,2706           57026                                    TFFRP/RA                              
022880,000440:                                                                                                  #  RETURNS WITH RAPO IN D(MPAC).
022881,000441: 23,2707           77625                           DSU                                            
022882,000442: 23,2710           02323                                    RPADTEM                               
022883,000443: 23,2711           64414                           BOFF     SR2R                                  #  NEED HAPO AT (-29)M FOR DISPLAY.
022884,000444:                                                                                                  #  IF MOON CENTERED, RESCALE FROM (-27)M.
022885,000445:                                                                                                  #  IF EARTH CENTERED ALREADY AT (-29)M.
022886,000446: 23,2712           04742                                    V82EMFLG                              #  OFF FOR EARTH, ON FOR MOON.
022887,000447: 23,2713           46714                                    +1                                    
022888,000448: 23,2714           77624                           CALL                                           #  IF HAPO > MAXNM, SET HAPO =9999.9 NM.
022889,000449: 23,2715           46754                                    MAXCHK                                #  OTHERWISE STORE (RAPO-RPADTEM) IN HAPO.
022890,000450: 23,2716           16352        STORHAPO           STODL    HAPOX                                 
022891,000451: 23,2717           00017                                    RPER                                  
022892,000452: 23,2720           77625                           DSU                                            
022893,000453: 23,2721           02323                                    RPADTEM                               #  GIVES HPER AT (-29)M EARTH, (-27)M MOON.
022894,000454: 23,2722           00161                           STORE    MPAC       +4                         #  SAVE THIS FOR COMPARISON TO HPERMIN.
022895,000455: 23,2723           64414                           BOFF     SR2R                                  #  NEED HPER AT (-29)M FOR DISPLAY.
022896,000456:                                                                                                  #  IF MOON CENTERED, RESCALE FROM (-27)M.
022897,000457:                                                                                                  #  IF EARTH CENTERED ALREADY AT (-29)M.
022898,000458: 23,2724           04742                                    V82EMFLG                              #  OFF FOR EARTH, ON FOR MOON.
022899,000459: 23,2725           46726                                    +1                                    
022900,000460: 23,2726           77624                           CALL                                           #  IF HPER > MAXNM, SET HPER = 9999.9 NM.
022901,000461: 23,2727           46754                                    MAXCHK                                

Page 523

022903,000463: 23,2730           16354        STORHPER           STODL    HPERX                                 #  STORE (RPER - RPADTEM) INTO HPERX.
022904,000464: 23,2731           00161                                    MPAC       +4                         
022905,000465: 23,2732           51025                           DSU      BPL                                   #  HPERMIN AT (-29)M FOR EARTH, (-27)M MOON
022906,000466: 23,2733           02321                                    HPERMIN                               #  IF HPER L/ HPERMIN (300 OR 35) KFT,
022907,000467: 23,2734           46740                                    DOTPER                                #  THEN ZERO INTO -TPER.
022908,000468: 23,2735           52145                           DLOAD    GOTO                                  #  OTHERWISE CALCULATE TPER.
022909,000469: 23,2736           15335                                    HI6ZEROS                              
022910,000470: 23,2737           46744                                    SKIPTPER                              
022911,000471: 23,2740           45145        DOTPER             DLOAD    CALL                                  
022912,000472: 23,2741           00017                                    RPER                                  
022913,000473: 23,2742           57064                                    CALCTPER                              
022914,000474: 23,2743           77676                           DCOMP                                          #  TPER IS PUT NEG INTO -TPER.
022915,000475: 23,2744           16346        SKIPTPER           STODL    -TPER                                 
022916,000476: 23,2745           02321                                    HPERMIN                               #  HPERMIN AT (-29)M FOR EARTH, (-27)M MOON
022917,000477: 23,2746           45015                           DAD      CALL                                  
022918,000478: 23,2747           02323                                    RPADTEM                               #  RPADTEM AT (-29)M FOR EARTH, (-27)M MOON
022919,000479: 23,2750           57067                                    CALCTFF                               #  GIVES 59M59S FOR TFF IF RPER G/
022920,000480: 23,2751           77676                           DCOMP                                          #  HPERMIN + RPADTEM.  (TPER WAS NON ZERO)
022921,000481: 23,2752           36344                           STCALL   TFF                                   #  OTHERWISE COMPUTES TFF.       (GOTO)
022922,000482: 23,2753           00051                                    S2                                    
022923,000483: 
022924,000484: 23,2754           51025        MAXCHK             DSU      BPL                                   #  IF C(MPAC) > 9999.9 NM, MPAC = 9999.9 NM
022925,000485: 23,2755           06764                                    MAXNM                                 
022926,000486: 23,2756           46761                                    +3                                    #  OTHERWISE C(MPAC) = B(MPAC).
022927,000487: 23,2757           43415                           DAD      RVQ                                   
022928,000488: 23,2760           06764                                    MAXNM                                 
022929,000489: 23,2761           43545                 +3        DLOAD    RVQ                                   #  (USED BY P30 - P37 ALSO)
022930,000490: 23,2762           06764                                    MAXNM                                 
022931,000491: 
022932,000492: 23,2763           01065 05603  MAXNM              2OCT     0106505603                            
022933,000493: 

Page 524

022935,000495: 

There is no source code on this page — HG 2009


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