Source Code
These source-code files derive from a printout of Luminary 116 (the Apollo 12
Lunar Module guidance computer program), from the personal library of
original AGC developer Don Eyles, digitally photographed at archive.org,
financially sponsored by Ron Burkey, and transcribed to source code by a
team of volunteers. This colorized, syntax-highlighted form was created
by assembling that transcribed source code. Note that the full page images
are available on the
Virtual AGC project page at archive.org, while reduced-size images
are presented at the VirtualAGC project website. Report or fix any
transcription errors at
the Virtual AGC project code repository. Notations on the program listing read, in part: GAP: ASSEMBLE REVISION 116 OF AGC PROGRAM LUMINARY BY NASA 2021112-071 19:09 AUG. 11,1969Note that the date is the date of the printout, not the date of the program revision. |
036053,000002: ## Copyright: Public domain.
036054,000003: ## Filename: ASCENT_GUIDANCE.agc
036055,000004: ## Purpose: A section of Luminary revision 116.
036056,000005: ## It is part of the source code for the Lunar Module's (LM)
036057,000006: ## Apollo Guidance Computer (AGC) for Apollo 12.
036058,000007: ## This file is intended to be a faithful transcription, except
036059,000008: ## that the code format has been changed to conform to the
036060,000009: ## requirements of the yaYUL assembler rather than the
036061,000010: ## original YUL assembler.
036062,000011: ## Reference: pp. 836-851
036063,000012: ## Assembler: yaYUL
036064,000013: ## Contact: Ron Burkey <info@sandroid.org>.
036065,000014: ## Website: www.ibiblio.org/apollo/index.html
036066,000015: ## Mod history: 2017-01-22 MAS Created from Luminary 99.
036067,000016: ## 2017-03-14 RSB Comment-text fixes identified in 5-way
036068,000017: ## side-by-side diff of Luminary 69/99/116/131/210.
036069,000018: ## 2017-03-15 HG Transcribed
036070,000019:
Page 836 |
036072,000021: 34,3372 BANK 34
036073,000022: 34,2000 SETLOC ASCFILT
036074,000023: 34,2000 BANK
036075,000024:
036076,000025: 34,3372 E7,1515 EBANK= DVCNTR
036077,000026:
036078,000027: 34,3372 COUNT* $$/ASENT
036079,000028:
036080,000029: 34,3372 05353 ATMAG TC PHASCHNG
036081,000030: 34,3373 00035 OCT 00035
036082,000031: 34,3374 06042 TC INTPRET
036083,000032: 34,3375 77614 BON
036084,000033: 34,3376 04705 FLRCS
036085,000034: 34,3377 60315 ASCENT
036086,000035: 34,3400 45345 DLOAD DSU
036087,000036: 34,3401 03514 ABDVCONV
036088,000037: 34,3402 26203 MINABDV
036089,000038: 34,3403 43040 BMN CLEAR
036090,000039: 34,3404 60756 ASCTERM4
036091,000040: 34,3405 04267 SURFFLAG
036092,000041: 34,3406 67214 CLEAR SLOAD
036093,000042: 34,3407 02676 RENDWFLG
036094,000043: 34,3410 31446 BIT3H
036095,000044: 34,3411 77471 DDV EXIT
036096,000045: 34,3412 03514 ABDVCONV
036097,000046: 34,3413 52155 DXCH MPAC
036098,000047: 34,3414 53641 DXCH 1/DV3
036099,000048: 34,3415 53637 DXCH 1/DV2
036100,000049: 34,3416 53635 DXCH 1/DV1
036101,000050: 34,3417 53571 DXCH 1/DV0
036102,000051: 34,3420 06042 TC INTPRET
036103,000052: 34,3421 43345 DLOAD DAD
036104,000053: 34,3422 03571 1/DV0
036105,000054: 34,3423 03635 1/DV1
036106,000055: 34,3424 43215 DAD DAD
036107,000056: 34,3425 03637 1/DV2
036108,000057: 34,3426 03641 1/DV3
036109,000058: 34,3427 41205 DMP DMP
036110,000059: 34,3430 02265 VE
036111,000060: 34,3431 21017 2SEC(9)
036112,000061: 34,3432 65252 SL3 PDDL
036113,000062: 34,3433 02271 TBUP
036114,000063: 34,3434 43342 SR1 DAD
036115,000064: 34,3435 77625 DSU
036116,000065: 34,3436 21014 6SEC(18)
036117,000066: 34,3437 16271 STODL TBUP
036118,000067: 34,3440 02265 VE
036119,000068: 34,3441 56342 SR1 DDV
036120,000069: 34,3442 02271 TBUP
036121,000070: 34,3443 36263 STCALL AT
036122,000071:
Page 837 |
036124,000073: 34,3444 60315 ASCENT
036125,000074: 34,3445 00004 BIT3H OCT 4
036126,000075:
Page 838 |
036128,000077: 30,2315 BANK 30
036129,000078: 30,2000 SETLOC ASENT
036130,000079: 30,2000 BANK
036131,000080: 30,2315 COUNT* $$/ASENT
036132,000081:
036133,000082: 30,2315 51575 ASCENT VLOAD ABVAL
036134,000083: 30,2316 03521 R
036135,000084: 30,2317 26301 STOVL /R/MAG
036136,000085: 30,2320 03726 ZAXIS1
036137,000086: 30,2321 72441 DOT SL1
036138,000087: 30,2322 03527 V # Z.V = ZDOT*2(-8).
036139,000088: 30,2323 26313 STOVL ZDOT # ZDOT*2(-7)
036140,000089: 30,2324 03726 ZAXIS1
036141,000090: 30,2325 76435 VXV VSL1
036142,000091: 30,2326 03537 UNIT/R/ # Z X UR = LAXIS*2(-2)
036143,000092: 30,2327 02303 STORE LAXIS # LAXIS*2(-1)
036144,000093: 30,2330 72441 DOT SL1
036145,000094: 30,2331 03527 V # L.V = YDOT*2(-8).
036146,000095: 30,2332 36311 STCALL YDOT # YDOT * 2(-7)
036147,000096: 30,2333 57312 YCOMP
036148,000097: 30,2334 77775 VLOAD
036149,000098: 30,2335 03563 GDT1/2 # LOAD GDT1/2*2(-7)M/CS.
036150,000099: 30,2336 50341 V/SC DOT
036151,000100: 30,2337 27106 2SEC(18)
036152,000101: 30,2340 03537 UNIT/R/ # G.UR*2(9) = GR*2(9).
036153,000102: 30,2341 47315 PDVL VXV # STORE IN PDL(0) (2)
036154,000103: 30,2342 03537 UNIT/R/ # LOAD UNIT/R/*2(-1).
036155,000104: 30,2343 03527 V # UR*2(-1) X V*2(-7) = H/R*2(-8).
036156,000105: 30,2344 56236 VSQ DDV # H(2)/R(2)*2(-16).
036157,000106: 30,2345 02301 /R/MAG # H(2)/R(3)*2(9).
036158,000107: 30,2346 43352 SL1 DAD
036159,000108: 30,2347 77626 STADR
036160,000109: 30,2350 75462 STORE GEFF # GEFF*2(10)M/CS/CS.
036161,000110: 30,2351 45014 BOFF CALL # IF P7071FLG = 1 (I.E. P70 OR P71)
036162,000111: 30,2352 04742 P7071FLG # CALL ZDOTCOMP TO UPDATE ZDOTD
036163,000112: 30,2353 60355 +2 # ON THE BASIS OF THE LAST RP.
036164,000113: 30,2354 71524 ZDOTCOMP
036165,000114: 30,2355 45345 +2 DLOAD DSU
036166,000115: 30,2356 02277 ZDOTD
036167,000116: 30,2357 02313 ZDOT
036168,000117: 30,2360 02343 STORE DZDOT # DZDOT = (ZDOTD - ZDOT)*2(7)M/CS.
036169,000118: 30,2361 65361 VXSC PDDL
036170,000119: 30,2362 03726 ZAXIS1
036171,000120: 30,2363 02275 YDOTD
036172,000121: 30,2364 77625 DSU
036173,000122: 30,2365 02311 YDOT
036174,000123:
Page 839 |
036176,000125: 30,2366 02341 STORE DYDOT # DYDOT = (YDOTD - YDOT)*2(7)M/CS.
036177,000126: 30,2367 65361 VXSC PDDL
036178,000127: 30,2370 02303 LAXIS
036179,000128: 30,2371 02273 RDOTD
036180,000129: 30,2372 77625 DSU
036181,000130: 30,2373 03474 RDOT
036182,000131: 30,2374 02337 STORE DRDOT # DRDOT = (RDOTD - RDOT)*2(7)M/CS.
036183,000132: 30,2375 53361 VXSC VAD
036184,000133: 30,2376 03537 UNIT/R/
036185,000134: 30,2377 76455 VAD VSL1
036186,000135: 30,2400 77626 STADR
036187,000136: 30,2401 74131 STORE VGVECT # VG = (DRDOT)R + (DYDOT)L + (DZDOT)Z.
036188,000137: 30,2402 41345 DLOAD DMP # LOAD TGO
036189,000138: 30,2403 03517 TGO # TGO GEFF
036190,000139: 30,2404 02315 GEFF
036191,000140: 30,2405 76561 VXSC VSL1
036192,000141: 30,2406 03537 UNIT/R/ # TGO GEFF UR
036193,000142: 30,2407 77645 BVSU
036194,000143: 30,2410 03646 VGVECT # COMPENSATED FOR GEFF
036195,000144: 30,2411 03646 STORE VGVECT # STORE FOR DOWNLINK
036196,000145: 30,2412 76521 MXV VSL1 # GET VGBODY FOR N85 DISPLAY
036197,000146: 30,2413 02146 XNBPIP
036198,000147: 30,2414 27502 STOVL VGBODY
036199,000148: 30,2415 03646 VGVECT
036200,000149: 30,2416 43046 ABVAL BOFF # MAGNITUDE OF VGVECT
036201,000150: 30,2417 04745 FLRCS # IF FLRCS=0,DO NORMAL GUIDANCE
036202,000151: 30,2420 60427 MAINENG
036203,000152: 30,2421 77671 DDV # USE TGO=VG/AT WITH RCS
036204,000153: 30,2422 20001 AT/RCS
036205,000154: 30,2423 37517 STCALL TGO # THIS WILL BE USED ON NEXT CYCLE
036206,000155: 30,2424 71475 RPCOMP1 # COMPUTE NEW RR FOR NEXT CYCLE.
036207,000156: 30,2425 77650 GOTO
036208,000157: 30,2426 60754 ASCTERM2
036209,000158: 30,2427 41471 MAINENG DDV PUSH # VG/VE IN PDL(0) (2)
036210,000159: 30,2430 02265 VE
036211,000160: 30,2431 44342 SR1 BDSU # 1 - KT VG/VE
036212,000161: 30,2432 17771 NEARONE
036213,000162: 30,2433 41205 DMP DMP # TBUP VG(1-KT VG/VE)/VE (0)
036214,000163: 30,2434 02271 TBUP # = TGO
036215,000164: 30,2435 77625 DSU # COMPENSATE FOR TAILOFF
036216,000165: 30,2436 02267 TTO
036217,000166: 30,2437 03517 STORE TGO
036218,000167: 30,2440 57461 SR DCOMP
036219,000168: 30,2441 20614 11D
036220,000169: 30,2442 17454 STODL TTOGO # TGO*2(-28) CS
036221,000170: 30,2443 03517 TGO
036222,000171: 30,2444 45214 BON DSU
036223,000172: 30,2445 03710 IDLEFLAG
036224,000173: 30,2446 60452 T2TEST
036225,000174: 30,2447 21006 4SEC(17) # ( TGO - 4 )*2(-17)CS.
036226,000175:
Page 840 |
036228,000177: 30,2450 77640 BMN
036229,000178: 30,2451 30347 ENGOFF
036230,000179: 30,2452 77745 T2TEST DLOAD
036231,000180: 30,2453 03517 TGO
036232,000181: 30,2454 50025 DSU BMN # IF TGO - T2 NEG., GO TO CMPONENT
036233,000182: 30,2455 21010 T2A
036234,000183: 30,2456 60612 CMPONENT
036235,000184: 30,2457 45345 DLOAD DSU
036236,000185: 30,2460 02271 TBUP
036237,000186: 30,2461 03517 TGO
036238,000187: 30,2462 45071 DDV CALL # 1-TGO/TBUP
036239,000188: 30,2463 02271 TBUP
036240,000189: 30,2464 61023 LOGSUB
036241,000190: 30,2465 41461 SL PUSH # -L IN PDL(0) (2)
036242,000191: 30,2466 20206 5
036243,000192: 30,2467 44265 BDDV BDSU # -TGO/L*2(-17)
036244,000193: 30,2470 03517 TGO
036245,000194: 30,2471 02271 TBUP # TBUP + TGO/L = D12*2(-17)
036246,000195: 30,2472 43006 PUSH BON # STORE IN PDL(2) (4)
036247,000196: 30,2473 04703 FLPC # IF FLPC = 1, GO TO CONST
036248,000197: 30,2474 60503 NORATES
036249,000198: 30,2475 45345 DLOAD DSU
036250,000199: 30,2476 03517 TGO
036251,000200: 30,2477 21012 T3
036252,000201: 30,2500 43044 BPL SET # FLPC=1
036253,000202: 30,2501 60510 RATES
036254,000203: 30,2502 04463 FLPC
036255,000204: 30,2503 77745 NORATES DLOAD
036256,000205: 30,2504 06524 HI6ZEROS
036257,000206: 30,2505 02351 STORE PRATE # B = 0
036258,000207: 30,2506 36353 STCALL YRATE # D = 0
036259,000208: 30,2507 60572 CONST # GO TO CONST
036260,000209: 30,2510 45345 RATES DLOAD DSU
036261,000210: 30,2511 03517 TGO
036262,000211: 30,2512 00003 02D # TGO - D12 = D21*2(-17)
036263,000212: 30,2513 72406 PUSH SL1 # IN PDL(4) (6)
036264,000213: 30,2514 52421 BDSU SL3 # (1/2TGO - D21)*2(-13) = E * 2(-13)
036265,000214: 30,2515 03517 TGO # (8)
036266,000215: 30,2516 41325 PDDL DMP # IN PDL(6)
036267,000216: 30,2517 03517 TGO
036268,000217: 30,2520 03474 RDOT # RDOT TGO * 2(-24)
036269,000218: 30,2521 45215 DAD DSU # R + RDOT TGO
036270,000219: 30,2522 02301 /R/MAG # R + RDOT TGO - RCO
036271,000220: 30,2523 03631 RCO # MPAC = -DR *2(-24).
036272,000221: 30,2524 41325 PDDL DMP # -DR IN PDL(8) (10)
036273,000222: 30,2525 02337 DRDOT
036274,000223: 30,2526 00005 04D # D21 DRDOT*2(-24)
036275,000224: 30,2527 62415 DAD SL2 # (D21 DRDOT-DR)*2(-22) (8)
036276,000225: 30,2530 56271 DDV DDV
036277,000226: 30,2531 00007 06D # (D21 DRDOT-DR)/E*2(-9)
036278,000227:
Page 841 |
036280,000229: 30,2532 03517 TGO
036281,000230: 30,2533 02351 STORE PRATE # B * 2(8)
036282,000231: 30,2534 71240 BMN DLOAD # B>0 NOT PERMITTED
036283,000232: 30,2535 60541 CHKBMAG
036284,000233: 30,2536 06524 HI6ZEROS
036285,000234: 30,2537 36351 STCALL PRATE
036286,000235: 30,2540 60553 PROK
036287,000236: 30,2541 56202 CHKBMAG SR4 DDV # B*2(4)
036288,000237: 30,2542 02271 TBUP # (B / TAU) * 2(21)
036289,000238: 30,2543 51025 DSU BPL
036290,000239: 30,2544 26201 PRLIMIT # ( B/ TAU) * 2(21) MAX.
036291,000240: 30,2545 60553 PROK
036292,000241: 30,2546 41345 DLOAD DMP
036293,000242: 30,2547 26201 PRLIMIT
036294,000243: 30,2550 02271 TBUP # B MAX. * 2(4)
036295,000244: 30,2551 77612 SL4 # BMAX*2(8)
036296,000245: 30,2552 02351 STORE PRATE
036297,000246: 30,2553 77745 PROK DLOAD
036298,000247: 30,2554 03517 TGO
036299,000248: 30,2555 43205 DMP DAD # YDOT TGO
036300,000249: 30,2556 02311 YDOT
036301,000250: 30,2557 02335 Y # Y + YDOT TGO
036302,000251: 30,2560 65225 DSU PDDL # Y + YDOT TGO - YCO
036303,000252: 30,2561 03633 YCO # MPAC = - DY*2(-24.) IN PDL(8) (10)
036304,000253: 30,2562 02341 DYDOT
036305,000254: 30,2563 43205 DMP DAD # D21 DYDOT - DY (8)
036306,000255: 30,2564 00005 04D
036307,000256: 30,2565 56312 SL2 DDV # (D21 DYDOT - DY)/E*2(-9)
036308,000257: 30,2566 40271 DDV SETPD # (D21 DYDOT - DY)/E TGO*2(8)
036309,000258: 30,2567 03517 TGO # = D*2(8)
036310,000259: 30,2570 00005 04
036311,000260: 30,2571 02353 STORE YRATE
036312,000261: 30,2572 41345 CONST DLOAD DMP # LOAD B*2(8)
036313,000262: 30,2573 02351 PRATE # B D12*2(-9)
036314,000263: 30,2574 00003 02D
036315,000264: 30,2575 56325 PDDL DDV # D12 B IN PDL(4) (6)
036316,000265: 30,2576 02337 DRDOT # LOAD DRDOT*2(-7)
036317,000266: 30,2577 00001 00D # -DRDOT/L*2(-7)
036318,000267: 30,2600 45302 SR2 DSU # (-DRDOT/L-D12 B)=A*2(-9) (4)
036319,000268: 30,2601 77626 STADR
036320,000269: 30,2602 61432 STODL PCONS
036321,000270: 30,2603 02353 YRATE # D*2(8)
036322,000271: 30,2604 65205 DMP PDDL # D12 D,EXCH WITH -L IN PDL(0) (2,2)
036323,000272: 30,2605 60465 BDDV SR2 # -DYDOT/L*2(-9)
036324,000273: 30,2606 02341 DYDOT
036325,000274: 30,2607 77625 DSU # (-DYDOT/L-D12 D)=C*2(-9)
036326,000275: 30,2610 00001 00D
036327,000276: 30,2611 02347 STORE YCONS
036328,000277: 30,2612 43001 CMPONENT SETPD BOFF
036329,000278: 30,2613 00001 00D
036330,000279:
Page 842 |
036332,000281: 30,2614 04742 P7071FLG
036333,000282: 30,2615 60620 +3 # IF P7071FLG = 1 (I.E. P70 OR P71)
036334,000283: 30,2616 77624 CALL # COMPUTE NEW RP FOR NEXT CYCLE.
036335,000284: 30,2617 71501 RPCOMP2
036336,000285: 30,2620 41345 +3 DLOAD DMP
036337,000286: 30,2621 27106 100CS
036338,000287: 30,2622 02351 PRATE # B(T-T0)*2(-9)
036339,000288: 30,2623 56215 DAD DDV # (A+B(T-T0))*2(-9)
036340,000289: 30,2624 02345 PCONS # (A+B(T-T0))/TBUP*2(8)
036341,000290: 30,2625 02271 TBUP
036342,000291: 30,2626 45352 SL1 DSU
036343,000292: 30,2627 02315 GEFF # ATR*2(9)
036344,000293: 30,2630 16357 STODL ATR
036345,000294: 30,2631 27106 100CS
036346,000295: 30,2632 43205 DMP DAD
036347,000296: 30,2633 02353 YRATE
036348,000297: 30,2634 02347 YCONS # (C+D(T-T0))*2(-9)
036349,000298: 30,2635 72471 DDV SL1
036350,000299: 30,2636 02271 TBUP
036351,000300: 30,2637 02355 STORE ATY # ATY*2(9)
036352,000301: 30,2640 65361 VXSC PDDL # ATY UY*2(8) (6)
036353,000302: 30,2641 02303 LAXIS
036354,000303: 30,2642 02357 ATR
036355,000304: 30,2643 53361 VXSC VAD # (0)
036356,000305: 30,2644 03537 UNIT/R/
036357,000306: 30,2645 41572 VSL1 PUSH # AH*2(9) IN PDL(0) (6)
036358,000307: 30,2646 65246 ABVAL PDDL # AH(2) IN PDL(34)
036359,000308: 30,2647 02263 AT # AHMAG IN PDL(6) (8)
036360,000309: 30,2650 45316 DSQ DSU # (AT(2)-AH(2))*2(18)
036361,000310: 30,2651 00043 34D # =ATP2*2(18)
036362,000311: 30,2652 41525 PDDL PUSH # (12)
036363,000312: 30,2653 02263 AT
036364,000313: 30,2654 45316 DSQ DSU # (AT(2)KR(2)-AH(2))*2(18) (10)
036365,000314: 30,2655 00043 34D # =ATP3*2(18)
036366,000315: 30,2656 71240 BMN DLOAD # IF ATP3 NEG,GO TO NO-ATP
036367,000316: 30,2657 60663 NO-ATP # LOAD ATP2,IF ATP3 POS
036368,000317: 30,2660 00011 8D
036369,000318: 30,2661 52166 SQRT GOTO # ATP*2(9)
036370,000319: 30,2662 60671 AIMER
036371,000320: 30,2663 55345 NO-ATP DLOAD BDDV # KR AT/AH = KH (8)
036372,000321: 30,2664 00007 6D
036373,000322: 30,2665 77761 VXSC # KH AH*2(9)
036374,000323: 30,2666 00001 00D
036375,000324: 30,2667 14001 STODL 00D # STORE NEW AH IN PDL(0)
036376,000325: 30,2670 06524 HI6ZEROS
036377,000326: 30,2671 77765 AIMER SIGN
036378,000327: 30,2672 02343 DZDOT
036379,000328: 30,2673 02361 STORE ATP
036380,000329: 30,2674 77761 VXSC
036381,000330: 30,2675 03726 ZAXIS1 # ATP ZAXIS *2(8).
036382,000331:
Page 843 |
036384,000333: 30,2676 53372 VSL1 VAD # AT*2(9)
036385,000334: 30,2677 00001 00D
036386,000335: 30,2700 03254 STORE UNFC/2 # WILL BE OVERWRITTEN IF IN VERT. RISE.
036387,000336: 30,2701 43001 SETPD BON
036388,000337: 30,2702 00001 00D
036389,000338: 30,2703 04704 FLPI
036390,000339: 30,2704 60216 P12RET
036391,000340: 30,2705 77614 BON
036392,000341: 30,2706 04701 FLVR
036393,000342: 30,2707 60763 CHECKALT
036394,000343: 30,2710 57575 MAINLINE VLOAD VCOMP
036395,000344: 30,2711 03537 UNIT/R/
036396,000345: 30,2712 17262 STODL UNWC/2
036397,000346: 30,2713 03654 TXO
036398,000347: 30,2714 51025 DSU BPL
036399,000348: 30,2715 01234 PIPTIME
036400,000349: 30,2716 60730 ASCTERM
036401,000350: 30,2717 77614 BON
036402,000351: 30,2720 04711 ROTFLAG
036403,000352: 30,2721 57273 ANG1CHEK
036404,000353: 30,2722 43014 CLRXFLAG CLEAR BON # ALLOW X-AXIS OVERRIDE
036405,000354: 30,2723 06666 XOVINFLG
036406,000355: 30,2724 04702 P7071FLG # ONLY ACTIVATE R29 IF IN P12
036407,000356: 30,2725 60730 ASCTERM
036408,000357: 30,2726 77614 CLEAR
036409,000358: 30,2727 01664 NOR29FLG
036410,000359: 30,2730 77776 ASCTERM EXIT
036411,000360: 30,2731 30105 CA FLAGWRD9
036412,000361: 30,2732 74742 MASK FLRCSBIT
036413,000362: 30,2733 10000 CCS A
036414,000363: 30,2734 12755 TCF ASCTERM3
036415,000364: 30,2735 06042 TC INTPRET
036416,000365: 30,2736 77624 CALL
036417,000366: 30,2737 61076 FINDCDUW -2
036418,000367: 30,2740 77776 ASCTERM1 EXIT
036419,000368: 30,2741 30105 +1 CA FLAGWRD9 # INSURE THAT THE NOUN 63 DISPLAY IS
036420,000369: 30,2742 74742 MASK FLRCSBIT # BYPASSED IF WE ARE IN THE RCS TRIMMING
036421,000370: 30,2743 10000 CCS A # MODE OF OPERATION
036422,000371: 30,2744 12755 TCF ASCTERM3
036423,000372: 30,2745 30104 CA FLAGWRD8 # BYPASS DISPLAYS IF ENGINE FAILURE IS
036424,000373: 30,2746 74742 MASK FLUNDBIT # INDICATED.
036425,000374: 30,2747 10000 CCS A
036426,000375: 30,2750 12755 TCF ASCTERM3
036427,000376: 30,2751 33020 CAF V06N63*
036428,000377: 30,2752 04616 TC BANKCALL
036429,000378: 30,2753 20444 CADR GODSP
036430,000379: 30,2754 77776 ASCTERM2 EXIT
036431,000380: 30,2755 15155 ASCTERM3 TCF ENDOFJOB
036432,000381: 30,2756 77776 ASCTERM4 EXIT
036433,000382: 30,2757 00004 INHINT
036434,000383:
Page 844 |
036436,000385: 30,2760 04674 TC IBNKCALL # NO GUIDANCE THIS CYCLE -- HENCE ZERO
036437,000386: 30,2761 40166 CADR STOPRATE # THE DAP COMMANDED RATES.
036438,000387: 30,2762 12741 TCF ASCTERM1 +1
036439,000388:
036440,000389: 30,2763 45345 CHECKALT DLOAD DSU
036441,000390: 30,2764 02301 /R/MAG
036442,000391: 30,2765 02333 /LAND/
036443,000392: 30,2766 50025 DSU BMN # IF H LT 25K CHECK Z AXIS ORIENTATION.
036444,000393: 30,2767 26205 25KFT
036445,000394: 30,2770 16667 CHECKYAW
036446,000395: 30,2771 43014 EXITVR CLEAR BON
036447,000396: 30,2772 04661 FLVR
036448,000397: 30,2773 04711 ROTFLAG
036449,000398: 30,2774 60710 MAINLINE
036450,000399: 30,2775 43345 DLOAD DAD
036451,000400: 30,2776 01234 PIPTIME
036452,000401: 30,2777 25747 10SECS
036453,000402: 30,3000 37654 STCALL TXO
036454,000403: 30,3001 60710 MAINLINE
036455,000404: 30,3002 77614 EXITVR1 CLRGO
036456,000405: 30,3003 04631 ROTFLAG
036457,000406: 30,3004 60771 EXITVR
036458,000407:
036459,000408: 27,2000 SETLOC ASENT1
036460,000409: 27,2000 BANK
036461,000410: 27,3273 COUNT* $$/ASENT
036462,000411:
036463,000412: 27,3273 50375 ANG1CHEK VLOAD DOT
036464,000413: 27,3274 03254 UNFC/2
036465,000414: 27,3275 02146 XNBPIP
036466,000415: 27,3276 51025 DSU BPL
036467,000416: 27,3277 02571 COSTHET1
036468,000417: 27,3300 57307 OFFROT
036469,000418: 27,3301 50375 VLOAD DOT
036470,000419: 27,3302 02146 XNBPIP
036471,000420: 27,3303 03537 UNIT/R/
036472,000421: 27,3304 50025 DSU BMN
036473,000422: 27,3305 02573 COSTHET2
036474,000423: 27,3306 71450 KEEPVR1
036475,000424: 27,3307 77614 OFFROT CLRGO
036476,000425: 27,3310 04631 ROTFLAG
036477,000426: 27,3311 60722 CLRXFLAG
036478,000427:
036479,000428: 07,2667 BANK 7
036480,000429: 07,2000 SETLOC ASENT2
036481,000430: 07,2000 BANK
036482,000431: 07,2667 COUNT* $$/ASENT
036483,000432:
036484,000433: 07,2667 07,2667 SETXFLAG = CHECKYAW
036485,000434:
Page 845 |
036487,000436: 07,2667 77614 CHECKYAW SET
036488,000437: 07,2670 06466 XOVINFLG # PROHIBIT X-AXIS OVERRIDE
036489,000438: 07,2671 74345 DLOAD VXSC
036490,000439: 07,2672 02355 ATY
036491,000440: 07,2673 02303 LAXIS
036492,000441: 07,2674 74325 PDDL VXSC
036493,000442: 07,2675 02361 ATP
036494,000443: 07,2676 03726 ZAXIS1
036495,000444: 07,2677 53455 VAD UNIT
036496,000445: 07,2700 45325 PDDL DSU
036497,000446: 07,2701 03474 RDOT
036498,000447: 07,2702 13471 40FPS
036499,000448: 07,2703 52044 BPL GOTO
036500,000449: 07,2704 61002 EXITVR1
036501,000450: 07,2705 71446 KEEPVR
036502,000451:
036503,000452: 05,3470 BANK 5
036504,000453: 05,2000 SETLOC ASENT3
036505,000454: 05,2000 BANK
036506,000455: 05,3470 COUNT* $$/ASENT
036507,000456:
036508,000457: 05,3470 00017 23305 40FPS 2DEC 0.12192 B-7
036509,000458: 34,3446 BANK 34
036510,000459: 34,2000 SETLOC ASENT8
036511,000460: 34,2000 BANK
036512,000461: 34,3446 COUNT* $$/ASENT
036513,000462:
036514,000463: 34,3446 45575 KEEPVR VLOAD STADR # RECALL LOSVEC FROM PUSHLIST
036515,000464: 34,3447 74515 STORE UNWC/2
036516,000465: 34,3450 77775 KEEPVR1 VLOAD
036517,000466: 34,3451 03537 UNIT/R/
036518,000467: 34,3452 37254 STCALL UNFC/2
036519,000468: 34,3453 60730 ASCTERM
036520,000469:
036521,000470:
036522,000471: 14,2347 BANK 14
036523,000472: 14,2000 SETLOC ASENT4
036524,000473: 14,2000 BANK
036525,000474: 14,2347 COUNT* $$/ASENT
036526,000475:
036527,000476: 14,2347 77634 ENGOFF RTB
036528,000477: 14,2350 21574 LOADTIME
036529,000478: 14,2351 43225 DSU DAD
036530,000479: 14,2352 01234 PIPTIME
036531,000480: 14,2353 03454 TTOGO
036532,000481: 14,2354 77476 DCOMP EXIT
036533,000482: 14,2355 07262 TC TPAGREE # FORCE SIGN AGREEMENT ON MPAC, MPAC +1.
036534,000483: 14,2356 35016 CAF EBANK7
036535,000484: 14,2357 54003 TS EBANK
036536,000485:
Page 846 |
036538,000487: 14,2360 E7,1516 EBANK= TGO
036539,000488: 14,2360 00004 INHINT
036540,000489: 14,2361 10155 CCS MPAC +1
036541,000490: 14,2362 12365 TCF +3 # C(A) = DT - 1 BIT
036542,000491: 14,2363 12365 TCF +2 # C(A) = 0
036543,000492: 14,2364 34755 CAF ZERO # C(A) = 0
036544,000493: 14,2365 64753 AD BIT1 # C(A) = 1 BIT OR DT.
036545,000494: 14,2366 55644 TS ENGOFFDT
036546,000495: 14,2367 05173 TC TWIDDLE
036547,000496: 14,2370 02402 ADRES ENGOFF1
036548,000497: 14,2371 05353 TC PHASCHNG
036549,000498: 14,2372 47014 OCT 47014
036550,000499: 14,2373 76133 -GENADR ENGOFFDT
036551,000500: 14,2374 E7,1516 EBANK= TGO
036552,000501: 14,2374 02402 30067 2CADR ENGOFF1
036553,000502:
036554,000503: 14,2376 06042 TC INTPRET
036555,000504: 14,2377 52014 SET GOTO
036556,000505: 14,2400 03470 IDLEFLAG # DISABLE DELTA-V MONITOR
036557,000506: 14,2401 60452 T2TEST
036558,000507:
036559,000508: 14,2402 04674 ENGOFF1 TC IBNKCALL # SHUT OFF THE ENGINE.
036560,000509: 14,2403 75555 CADR ENGINOF2
036561,000510:
036562,000511: 14,2404 35027 CAF PRIO17 # SET UP A JOB FOR THE ASCENT GUIDANCE
036563,000512: 14,2405 05105 TC FINDVAC # POSTBURN LOGIC.
036564,000513: 14,2406 E7,1455 EBANK= WHICH
036565,000514: 14,2406 02416 30067 2CADR CUTOFF
036566,000515:
036567,000516: 14,2410 05353 TC PHASCHNG
036568,000517: 14,2411 07024 OCT 07024
036569,000518: 14,2412 17000 OCT 17000
036570,000519: 14,2413 E7,1516 EBANK= TGO
036571,000520: 14,2413 02416 30067 2CADR CUTOFF
036572,000521:
036573,000522: 14,2415 15261 TCF TASKOVER
036574,000523:
036575,000524: 14,2416 05504 CUTOFF TC UPFLAG # SET FLRCS FLAG.
036576,000525: 14,2417 00214 ADRES FLRCS
036577,000526:
036578,000527: 14,2420 32437 -5 CAF V16N63
036579,000528: 14,2421 04616 TC BANKCALL
036580,000529: 14,2422 20477 CADR GOFLASH
036581,000530: 14,2423 12426 TCF +3
036582,000531: 14,2424 12430 TCF CUTOFF1
036583,000532: 14,2425 12420 TCF -5
036584,000533:
036585,000534: 14,2426 04635 +3 TC POSTJUMP
036586,000535: 14,2427 71464 CADR TERMASC
036587,000536:
Page 847 |
036589,000538:
036590,000539: 14,2430 00004 CUTOFF1 INHINT
036591,000540: 14,2431 04674 TC IBNKCALL # ZERO ATTITUDE ERRORS BEFORE REDUCING DB.
036592,000541: 14,2432 40154 CADR ZATTEROR
036593,000542: 14,2433 04674 TC IBNKCALL
036594,000543: 14,2434 40141 CADR SETMINDB
036595,000544: 14,2435 04635 TC POSTJUMP
036596,000545: 14,2436 71454 CADR CUTOFF2
036597,000546:
036598,000547: 14,2437 04077 V16N63 VN 1663
036599,000548: 34,3454 BANK 34
036600,000549: 34,2000 SETLOC ASENT8
036601,000550: 34,2000 BANK
036602,000551: 34,3454 COUNT* $$/ASENT
036603,000552:
036604,000553: 34,3454 05353 CUTOFF2 TC PHASCHNG
036605,000554: 34,3455 04024 OCT 04024
036606,000555:
036607,000556: 34,3456 33474 CAF V16N85C
036608,000557: 34,3457 04616 TC BANKCALL
036609,000558: 34,3460 20477 CADR GOFLASH
036610,000559: 34,3461 13464 TCF TERMASC
036611,000560: 34,3462 13464 TCF +2 # PROCEED
036612,000561: 34,3463 13454 TCF CUTOFF2
036613,000562:
036614,000563: 34,3464 05353 TERMASC TC PHASCHNG
036615,000564: 34,3465 04024 OCT 04024
036616,000565:
036617,000566: 34,3466 00004 INHINT # RESTORE DEADBAND DESIRED BY ASTRONAUT.
036618,000567: 34,3467 04674 TC IBNKCALL
036619,000568: 34,3470 40115 CADR RESTORDB
036620,000569: 34,3471 05516 TC DOWNFLAG # DISALLOW ABORTS AT THIS TIME.
036621,000570: 34,3472 00215 ADRES LETABORT
036622,000571: 34,3473 16001 TCF GOTOPOOH
036623,000572:
036624,000573: 34,3474 04125 V16N85C VN 1685
036625,000574:
036626,000575: 34,3475 77745 RPCOMP1 DLOAD # FLRCS = 1 (TRIM MODE)
036627,000576: 34,3476 06524 HI6ZEROS
036628,000577: 34,3477 02345 STORE PCONS # SET PCONS = PRATE = 0 SO THAT
036629,000578: 34,3500 02351 STORE PRATE # RF = R + RDOT TGO
036630,000579: 34,3501 41345 RPCOMP2 DLOAD DMP # FLRCS =C (GUIDANCE MODE)
036631,000580: 34,3502 02351 PRATE # LEAVE FCONS AND PRATE ALONE SO THAT
036632,000581: 34,3503 03517 TGO # RF = R + RDOT TGO + (FCONS*TGC**2)/
036633,000582: 34,3504 43205 DMP DAD # (2 TBUP) + (PRATE*TGO**3)/(6 TBUP)
036634,000583: 34,3505 33645 THIRD
036635,000584: 34,3506 02345 PCONS
036636,000585: 34,3507 41205 DMP DMP
036637,000586: 34,3510 03517 TGO
036638,000587: 34,3511 03517 TGO
036639,000588: 34,3512 72471 DDV SL1
036640,000589:
Page 848 |
036642,000591: 34,3513 02271 TBUP
036643,000592: 34,3514 65215 DAD PDDL
036644,000593: 34,3515 02301 /R/MAG
036645,000594: 34,3516 03474 RDOT
036646,000595: 34,3517 43205 DMP DAD
036647,000596: 34,3520 03517 TGO
036648,000597: 34,3521 77626 STADR
036649,000598: 34,3522 75152 STORE RP
036650,000599: 34,3523 77616 RVQ
036651,000600:
036652,000601: 34,3524 45020 ZDOTCOMP STQ CALL # COMPUTE CETRAL ANGLE (0)
036653,000602: 34,3525 02574 ASCSAVE
036654,000603: 34,3526 71554 THETCOMP
036655,000604: 34,3527 43205 DMP DAD
036656,000605: 34,3530 02623 KPARM
036657,000606: 34,3531 02621 JPARM
036658,000607: 34,3532 41425 DSU PUSH # RA IN MPAC AND IN PUSHLIST (2)
036659,000608: 34,3533 02625 RP
036660,000609: 34,3534 51025 DSU BPL
036661,000610: 34,3535 02563 RAMIN
036662,000611: 34,3536 71541 +3
036663,000612: 34,3537 65345 DLOAD PDDL # RA < RAMIN. SET RA = RAMIN. (2)
036664,000613: 34,3540 02563 RAMIN
036665,000614: 34,3541 41345 +3 DLOAD DMP
036666,000615: 34,3542 00001 0D
036667,000616: 34,3543 16025 MUM(-37)
036668,000617: 34,3544 77725 PDDL
036669,000618: 34,3545 41215 DAD DMP
036670,000619: 34,3546 02625 RP
036671,000620: 34,3547 02625 RP
036672,000621: 34,3550 75465 BDDV SQRT # (0)
036673,000622: 34,3551 77626 STADR
036674,000623: 34,3552 41500 STCALL ZDOTD # UPDATE ZDOTD FOR GUIDANCE AND DOWNLINK.
036675,000624: 34,3553 02574 ASCSAVE
036676,000625:
036677,000626: 34,3554 53575 THETCOMP VLOAD UNIT
036678,000627: 34,3555 03521 R
036679,000628: 34,3556 53515 PDVL UNIT # (6)
036680,000629: 34,3557 01720 R(CSM)
036681,000630: 34,3560 47206 PUSH VXV # (12)
036682,000631: 34,3561 00001 0D
036683,000632: 34,3562 77641 DOT
036684,000633: 34,3563 02325 WM
036685,000634: 34,3564 24037 STOVL 30D # (6)
036686,000635: 34,3565 72441 DOT SL1 # (0)
036687,000636: 34,3566 75326 ARCCOS SIGN
036688,000637: 34,3567 00037 30D
036689,000638: 34,3570 77616 RVQ
036690,000639:
036691,000640: 34,3571 E5,1574 ASCSAVE = CG
036692,000641:
Page 849 |
036694,000643: 27,3312 BANK 27
036695,000644: 27,2000 SETLOC ASENT1
036696,000645: 27,2000 BANK
036697,000646: 27,3312 COUNT* $$/ASENT
036698,000647:
036699,000648: 27,3312 50375 YCOMP VLOAD DOT
036700,000649: 27,3313 03537 UNIT/R/
036701,000650: 27,3314 03720 QAXIS
036702,000651: 27,3315 41312 SL2 DMP
036703,000652: 27,3316 03631 RCO
036704,000653: 27,3317 02335 STORE Y
036705,000654: 27,3320 77616 RVQ
036706,000655:
036707,000656:
036708,000657: 30,3005 BANK 30
036709,000658: 30,2000 SETLOC ASENT
036710,000659: 30,2000 BANK
036711,000660:
Page 850 |
036713,000662: # ASCENT GUIDANCE CONSTANTS
036714,000663:
036715,000664: 30,3005 33,3105 100CS EQUALS 2SEC(18)
036716,000665: 30,3005 30,3007 T2A EQUALS 2SEC(17)
036717,000666: 30,3005 00062 00000 4SEC(17) 2DEC 400 B-17
036718,000667: 30,3007 00031 00000 2SEC(17) 2DEC 200 B-17
036719,000668: 30,3011 00175 00000 T3 2DEC 1000 B-17
036720,000669: 30,3013 00045 20000 6SEC(18) 2DEC 600 B-18
036721,000670: 30,3015 00010 BIT4H OCT 10
036722,000671: 30,3016 14400 00000 2SEC(9) 2DEC 200 B-9
036723,000672: 30,3020 01477 V06N63* VN 0663
036724,000673: 30,3021 01514 V06N76 VN 0676
036725,000674: 30,3022 01441 V06N33A VN 0633
036726,000675:
036727,000676: 33,2200 BANK 33
036728,000677: 33,2000 SETLOC ASENT6
036729,000678: 33,2000 BANK
036730,000679: 33,2200 COUNT* $$/ASENT
036731,000680:
036732,000681: 33,2200 75751 41775 PRLIMIT 2DEC -.0639 # (B/TBUP)MIN=-.1FT.SEC(-3)
036733,000682: 33,2202 00022 07212 MINABDV 2DEC .0356 B-5 # 10 PERCENT BIGGER THAN GRAVITY
036734,000683: 33,2204 00007 16100 25KFT 2DEC 7620 B-24
036735,000684: 33,2206 E7,1570 1/DV0 = MASS1
036736,000685:
Page 851 |
036738,000687: # THE LOGARITHM SUBROUTINE
036739,000688:
036740,000689: 24,3677 BANK 24
036741,000690: 30,2000 SETLOC FLOGSUB
036742,000691: 30,2000 BANK
036743,000692:
036744,000693: # INPUT ..... X IN MPAC
036745,000694: # OUTPUT ..... -LOG(X) IN MPAC
036746,000695:
036747,000696: 30,3023 44301 LOGSUB NORM BDSU
036748,000697: 30,3024 00163 MPAC +6
036749,000698: 30,3025 17771 NEARONE
036750,000699: 30,3026 77776 EXIT
036751,000700: 30,3027 07225 TC POLY
036752,000701: 30,3030 00006 DEC 6 B-14
036753,000702: 30,3031 00000 00002 2DEC .0000000060
036754,000703: 30,3033 76777 77175 2DEC -.0312514377
036755,000704: 30,3035 77400 75416 2DEC -.0155686771
036756,000705: 30,3037 77507 65515 2DEC -.0112502068
036757,000706: 30,3041 77741 63547 2DEC -.0018545108
036758,000707: 30,3043 77052 55373 2DEC -.0286607906
036759,000708: 30,3045 01167 30361 2DEC .0385598563
036760,000709: 30,3047 76520 75267 2DEC -.0419361902
036761,000710:
036762,000711: 30,3051 34755 CAF ZERO
036763,000712: 30,3052 54156 TS MPAC +2
036764,000713: 30,3053 00006 EXTEND
036765,000714: 30,3054 33070 DCA CLOG2/32
036766,000715: 30,3055 52155 DXCH MPAC
036767,000716: 30,3056 52132 DXCH BUF +1
036768,000717: 30,3057 30162 CA MPAC +6
036769,000718: 30,3060 07312 TC SHORTMP
036770,000719: 30,3061 52156 DXCH MPAC +1
036771,000720: 30,3062 52155 DXCH MPAC
036772,000721: 30,3063 52132 DXCH BUF +1
036773,000722: 30,3064 20155 DAS MPAC
036774,000723: 30,3065 06042 TC INTPRET
036775,000724: 30,3066 43476 DCOMP RVQ
036776,000725:
036777,000726: 30,3067 00542 34414 CLOG2/32 2DEC .0216608494
End of include-file ASCENT_GUIDANCE.agc. Parent file is MAIN.agc