Source Code
These source-code files are part of a reconstructed copy of LM131 revision 1,
the final release of the Apollo 13 Lunar Module (LM) Apollo Guidance Computer
(AGC) software.
The source reconstruction began with source code of Luminary 131 previously transcribed from a digitized copy of that program. A dump of the flight spare core rope memory module B5, part number 2010802-171, serial number RAY 411, was obtained. This module is the only module different between Luminary 131 and LM131 revision 1. The dump was disassembled and all changes were incorporated into these source files. Note that page numbers in the reconstructed code match those on the Luminary 131 printout, although the changed code would likely have changed page numbers for a real LM131 revision 1 listing. Comments from the original source code are prefixed with a single '#' symbol, whereas comments added later are prefixed by "##" or "###". Report any errors noted by creating an issue report at the Virtual AGC project's GitHub repository. |
035747,000002: ## Copyright: Public domain.
035748,000003: ## Filename: ASCENT_GUIDANCE.agc
035749,000004: ## Purpose: A section of LM131 revision 1.
035750,000005: ## It is part of the reconstructed source code for the final
035751,000006: ## release of the flight software for the Lunar Module's (LM)
035752,000007: ## Apollo Guidance Computer (AGC) for Apollo 13. The code has
035753,000008: ## been reconstructed from a listing of Luminary 131 and a dump
035754,000009: ## of a core rope memory module B5, part number 2010802-171,
035755,000010: ## which is the only module different between LM131 revision 1
035756,000011: ## and Luminary 131. The executable generated from this source
035757,000012: ## has been verified against the module dump, so while the names,
035758,000013: ## comments, and ordering may not be exactly correct, the
035759,000014: ## resulting binary is.
035760,000015: ## Reference: pp. 836-851
035761,000016: ## Assembler: yaYUL
035762,000017: ## Contact: Ron Burkey <info@sandroid.org>.
035763,000018: ## Website: www.ibiblio.org/apollo/index.html
035764,000019: ## Mod history: 2022-10-28 MAS Created from Luminary 131.
035765,000020:
Page 836 |
035767,000022: 34,3372 BANK 34
035768,000023: 34,2000 SETLOC ASCFILT
035769,000024: 34,2000 BANK
035770,000025:
035771,000026: 34,3372 E7,1515 EBANK= DVCNTR
035772,000027:
035773,000028: 34,3372 COUNT* $$/ASENT
035774,000029:
035775,000030: 34,3372 05353 ATMAG TC PHASCHNG
035776,000031: 34,3373 00035 OCT 00035
035777,000032: 34,3374 06042 TC INTPRET
035778,000033: 34,3375 77614 BON
035779,000034: 34,3376 04705 FLRCS
035780,000035: 34,3377 60315 ASCENT
035781,000036: 34,3400 45345 DLOAD DSU
035782,000037: 34,3401 03514 ABDVCONV
035783,000038: 34,3402 26203 MINABDV
035784,000039: 34,3403 43040 BMN CLEAR
035785,000040: 34,3404 60756 ASCTERM4
035786,000041: 34,3405 04267 SURFFLAG
035787,000042: 34,3406 67214 CLEAR SLOAD
035788,000043: 34,3407 02676 RENDWFLG
035789,000044: 34,3410 31446 BIT3H
035790,000045: 34,3411 77471 DDV EXIT
035791,000046: 34,3412 03514 ABDVCONV
035792,000047: 34,3413 52155 DXCH MPAC
035793,000048: 34,3414 53641 DXCH 1/DV3
035794,000049: 34,3415 53637 DXCH 1/DV2
035795,000050: 34,3416 53635 DXCH 1/DV1
035796,000051: 34,3417 53571 DXCH 1/DV0
035797,000052: 34,3420 06042 TC INTPRET
035798,000053: 34,3421 43345 DLOAD DAD
035799,000054: 34,3422 03571 1/DV0
035800,000055: 34,3423 03635 1/DV1
035801,000056: 34,3424 43215 DAD DAD
035802,000057: 34,3425 03637 1/DV2
035803,000058: 34,3426 03641 1/DV3
035804,000059: 34,3427 41205 DMP DMP
035805,000060: 34,3430 02265 VE
035806,000061: 34,3431 21017 2SEC(9)
035807,000062: 34,3432 65252 SL3 PDDL
035808,000063: 34,3433 02271 TBUP
035809,000064: 34,3434 43342 SR1 DAD
035810,000065: 34,3435 77625 DSU
035811,000066: 34,3436 21014 6SEC(18)
035812,000067: 34,3437 16271 STODL TBUP
035813,000068: 34,3440 02265 VE
035814,000069: 34,3441 56342 SR1 DDV
035815,000070: 34,3442 02271 TBUP
035816,000071: 34,3443 36263 STCALL AT
Page 837 |
035818,000073: 34,3444 60315 ASCENT
035819,000074: 34,3445 00004 BIT3H OCT 4
035820,000075:
Page 838 |
035822,000077: 30,2315 BANK 30
035823,000078: 30,2000 SETLOC ASENT
035824,000079: 30,2000 BANK
035825,000080: 30,2315 COUNT* $$/ASENT
035826,000081:
035827,000082: 30,2315 51575 ASCENT VLOAD ABVAL
035828,000083: 30,2316 03521 R
035829,000084: 30,2317 26301 STOVL /R/MAG
035830,000085: 30,2320 03726 ZAXIS1
035831,000086: 30,2321 72441 DOT SL1
035832,000087: 30,2322 03527 V # Z.V = ZDOT*2(-8).
035833,000088: 30,2323 26313 STOVL ZDOT # ZDOT*2(-7)
035834,000089: 30,2324 03726 ZAXIS1
035835,000090: 30,2325 76435 VXV VSL1
035836,000091: 30,2326 03537 UNIT/R/ # Z X UR = LAXIS*2(-2)
035837,000092: 30,2327 02303 STORE LAXIS # LAXIS*2(-1)
035838,000093: 30,2330 72441 DOT SL1
035839,000094: 30,2331 03527 V # L.V = YDOT*2(-8).
035840,000095: 30,2332 36311 STCALL YDOT # YDOT * 2(-7)
035841,000096: 30,2333 57313 YCOMP
035842,000097: 30,2334 77775 VLOAD
035843,000098: 30,2335 03563 GDT1/2 # LOAD GDT1/2*2(-7) M/CS.
035844,000099: 30,2336 50341 V/SC DOT
035845,000100: 30,2337 27104 2SEC(18)
035846,000101: 30,2340 03537 UNIT/R/ # G.UR*2(9) = GR*2(9).
035847,000102: 30,2341 47315 PDVL VXV # STORE IN PDL(0) (2)
035848,000103: 30,2342 03537 UNIT/R/ # LOAD UNIT/R/ *2(-1).
035849,000104: 30,2343 03527 V # UR*2(-1) X V*2(-7) = H/R*2(-8).
035850,000105: 30,2344 56236 VSQ DDV # H(2)/R(2)*2(-16).
035851,000106: 30,2345 02301 /R/MAG # H(2)/R(3)*2(9).
035852,000107: 30,2346 43352 SL1 DAD
035853,000108: 30,2347 77626 STADR
035854,000109: 30,2350 75462 STORE GEFF # GEFF*2(10) M/CS/CS
035855,000110: 30,2351 45014 BOFF CALL # IF P7071FLG = 1 (I.E. P70 OR P71)
035856,000111: 30,2352 04742 P7071FLG # CALL ZDOTDCMP TO UPDATE ZDOTD
035857,000112: 30,2353 60355 +2 # ON THE BASIS OF THE LAST RP.
035858,000113: 30,2354 71524 ZDOTDCMP
035859,000114: 30,2355 45345 +2 DLOAD DSU
035860,000115: 30,2356 02277 ZDOTD
035861,000116: 30,2357 02313 ZDOT
035862,000117: 30,2360 02343 STORE DZDOT # DZDOT = (ZDOTD - ZDOT) * 2(7) M/CS.
035863,000118: 30,2361 65361 VXSC PDDL
035864,000119: 30,2362 03726 ZAXIS1
035865,000120: 30,2363 02275 YDOTD
035866,000121: 30,2364 77625 DSU
035867,000122: 30,2365 02311 YDOT
Page 839 |
035869,000124: 30,2366 02341 STORE DYDOT # DYDOT = (YDOTD - YDOT) *2(7) M/CS.
035870,000125: 30,2367 65361 VXSC PDDL
035871,000126: 30,2370 02303 LAXIS
035872,000127: 30,2371 02273 RDOTD
035873,000128: 30,2372 77625 DSU
035874,000129: 30,2373 03474 RDOT
035875,000130: 30,2374 02337 STORE DRDOT # DRDOT = (RDOTD - RDOT) * 2(7) M/CS.
035876,000131: 30,2375 53361 VXSC VAD
035877,000132: 30,2376 03537 UNIT/R/
035878,000133: 30,2377 76455 VAD VSL1
035879,000134: 30,2400 77626 STADR
035880,000135: 30,2401 74131 STORE VGVECT # VG = (DRDOT)R + (DYDOT)L + (DZDOT)Z.
035881,000136: 30,2402 41345 DLOAD DMP # LOAD TGO
035882,000137: 30,2403 03517 TGO # TGO GEFF
035883,000138: 30,2404 02315 GEFF
035884,000139: 30,2405 76561 VXSC VSL1
035885,000140: 30,2406 03537 UNIT/R/ # TGO GEFF UR
035886,000141: 30,2407 77645 BVSU
035887,000142: 30,2410 03646 VGVECT # COMPENSATED FOR GEFF
035888,000143: 30,2411 03646 STORE VGVECT # STORE FOR DOWNLINK
035889,000144: 30,2412 76521 MXV VSL1 # GET VGBODY FOR N85 DISPLAY
035890,000145: 30,2413 02146 XNBPIP
035891,000146: 30,2414 27502 STOVL VGBODY
035892,000147: 30,2415 03646 VGVECT
035893,000148: 30,2416 43046 ABVAL BOFF # MAGNITUDE OF VGVECT
035894,000149: 30,2417 04745 FLRCS # IF FLRCS=0,DO NORMAL GUIDANCE
035895,000150: 30,2420 60427 MAINENG
035896,000151: 30,2421 77671 DDV # USE TGO=VG/AT WITH RCS
035897,000152: 30,2422 20001 AT/RCS
035898,000153: 30,2423 37517 STCALL TGO # THIS WILL BE USED ON NEXT CYCLE
035899,000154: 30,2424 71475 RPCOMP1 # COMPUTE NEW RP FOR NEXT CYCLE.
035900,000155: 30,2425 77650 GOTO
035901,000156: 30,2426 60754 ASCTERM2
035902,000157: 30,2427 41471 MAINENG DDV PUSH # VG/VE IN PDL(0) (2)
035903,000158: 30,2430 02265 VE
035904,000159: 30,2431 44342 SR1 BDSU # 1 - VG / 2 VE
035905,000160: 30,2432 17772 NEARONE
035906,000161: 30,2433 41205 DMP DMP # TBUP VG(1-KT VG/VE)/VE (0)
035907,000162: 30,2434 02271 TBUP # = TGO
035908,000163: 30,2435 77625 DSU # COMPENSATE FOR TAILOFF
035909,000164: 30,2436 02267 TTO
035910,000165: 30,2437 03517 STORE TGO
035911,000166: 30,2440 57461 SR DCOMP
035912,000167: 30,2441 20614 11D
035913,000168: 30,2442 17454 STODL TTOGO # TGO *2(-28) CS
035914,000169: 30,2443 03517 TGO
035915,000170: 30,2444 45214 BON DSU
035916,000171: 30,2445 03710 IDLEFLAG
035917,000172: 30,2446 60452 T2TEST
035918,000173: 30,2447 21006 4SEC(17) # ( TGO - 4 )*2(-17) CS.
035919,000174:
Page 840 |
035921,000176: 30,2450 77640 BMN
035922,000177: 30,2451 30347 ENGOFF
035923,000178: 30,2452 77745 T2TEST DLOAD
035924,000179: 30,2453 03517 TGO
035925,000180: 30,2454 50025 DSU BMN # IF TGO - T2 NEG., GO TO CMPONENT
035926,000181: 30,2455 21010 T2A
035927,000182: 30,2456 60612 CMPONENT
035928,000183: 30,2457 45345 DLOAD DSU
035929,000184: 30,2460 02271 TBUP
035930,000185: 30,2461 03517 TGO
035931,000186: 30,2462 45071 DDV CALL # 1- TGO/TBUP
035932,000187: 30,2463 02271 TBUP
035933,000188: 30,2464 61023 LOGSUB
035934,000189: 30,2465 41461 SL PUSH # -L IN PDL(0) (2)
035935,000190: 30,2466 20206 5
035936,000191: 30,2467 44265 BDDV BDSU # -TGO/L*2(-17)
035937,000192: 30,2470 03517 TGO
035938,000193: 30,2471 02271 TBUP # TBUP + TGO/L = D12*2(-17)
035939,000194: 30,2472 43006 PUSH BON # STORE IN PDL(2) (4)
035940,000195: 30,2473 04703 FLPC # IF FLPC = 1, GO TO CONST
035941,000196: 30,2474 60503 NORATES
035942,000197: 30,2475 45345 DLOAD DSU
035943,000198: 30,2476 03517 TGO
035944,000199: 30,2477 21012 T3
035945,000200: 30,2500 43044 BPL SET # FLPC=1
035946,000201: 30,2501 60510 RATES
035947,000202: 30,2502 04463 FLPC
035948,000203: 30,2503 77745 NORATES DLOAD
035949,000204: 30,2504 06524 HI6ZEROS
035950,000205: 30,2505 02351 STORE PRATE # B = 0
035951,000206: 30,2506 36353 STCALL YRATE # D = 0
035952,000207: 30,2507 60572 CONST # GO TO CONST
035953,000208: 30,2510 45345 RATES DLOAD DSU
035954,000209: 30,2511 03517 TGO
035955,000210: 30,2512 00003 02D # TGO - D12 = D21*2(-17)
035956,000211: 30,2513 72406 PUSH SL1 # IN PDL(4) (6)
035957,000212: 30,2514 52421 BDSU SL3 # (1/2TGO - D21)*2(-13) = E * 2(-13)
035958,000213: 30,2515 03517 TGO # (8)
035959,000214: 30,2516 41325 PDDL DMP # IN PDL(6)
035960,000215: 30,2517 03517 TGO
035961,000216: 30,2520 03474 RDOT # RDOT TGO * 2(-24)
035962,000217: 30,2521 45215 DAD DSU # R + RDOT TGO
035963,000218: 30,2522 02301 /R/MAG # R + RDOT TGO - RCO
035964,000219: 30,2523 03631 RCO # MPAC = -DR *2(-24).
035965,000220: 30,2524 41325 PDDL DMP # -DR IN PDL(8) (10)
035966,000221: 30,2525 02337 DRDOT
035967,000222: 30,2526 00005 04D # D21 DRDOT*2(-24)
035968,000223: 30,2527 62415 DAD SL2 # (D21 DRDOT-DR)*2(-22) (8)
035969,000224: 30,2530 56271 DDV DDV
035970,000225: 30,2531 00007 06D # (D21 DRDOT-DR)/E*2(-9)
Page 841 |
035972,000227: 30,2532 03517 TGO
035973,000228: 30,2533 02351 STORE PRATE # B * 2(8)
035974,000229: 30,2534 71240 BMN DLOAD # B>0 NOT PERMITTED
035975,000230: 30,2535 60541 CHKBMAG
035976,000231: 30,2536 06524 HI6ZEROS
035977,000232: 30,2537 36351 STCALL PRATE
035978,000233: 30,2540 60553 PROK
035979,000234: 30,2541 56202 CHKBMAG SR4 DDV # B*2(4)
035980,000235: 30,2542 02271 TBUP # (B / TAU) * 2(21)
035981,000236: 30,2543 51025 DSU BPL
035982,000237: 30,2544 26201 PRLIMIT # ( B / TAU ) * 2(21) MAX.
035983,000238: 30,2545 60553 PROK
035984,000239: 30,2546 41345 DLOAD DMP
035985,000240: 30,2547 26201 PRLIMIT
035986,000241: 30,2550 02271 TBUP # B MAX. * 2(4)
035987,000242: 30,2551 77612 SL4 # BMAX*2(8)
035988,000243: 30,2552 02351 STORE PRATE
035989,000244: 30,2553 77745 PROK DLOAD
035990,000245: 30,2554 03517 TGO
035991,000246: 30,2555 43205 DMP DAD # YDOT TGO
035992,000247: 30,2556 02311 YDOT
035993,000248: 30,2557 02335 Y # Y + YDOT TGO
035994,000249: 30,2560 65225 DSU PDDL # Y + YDOT TGO - YCO
035995,000250: 30,2561 03633 YCO # MPAC = - DY*2(-24.) IN PDL(8) (10)
035996,000251: 30,2562 02341 DYDOT
035997,000252: 30,2563 43205 DMP DAD # D21 DYDOT - DY (8)
035998,000253: 30,2564 00005 04D
035999,000254: 30,2565 56312 SL2 DDV # (D21 DYDOT - DY)/E*2(-9)
036000,000255: 30,2566 40271 DDV SETPD # (D21 DYDOT - DY)/E TGO*2(8)
036001,000256: 30,2567 03517 TGO # = D*2(8)
036002,000257: 30,2570 00005 04
036003,000258: 30,2571 02353 STORE YRATE
036004,000259: 30,2572 41345 CONST DLOAD DMP # LOAD B*2(8)
036005,000260: 30,2573 02351 PRATE # B D12*2(-9)
036006,000261: 30,2574 00003 02D
036007,000262: 30,2575 56325 PDDL DDV # D12 B IN PDL(4) (6)
036008,000263: 30,2576 02337 DRDOT # LOAD DRDOT*2(-7)
036009,000264: 30,2577 00001 00D # -DRDOT/L*2(-7)
036010,000265: 30,2600 45302 SR2 DSU # (-DRDOT/L-D12 B)=A*2(-9) (4)
036011,000266: 30,2601 77626 STADR
036012,000267: 30,2602 61432 STODL PCONS
036013,000268: 30,2603 02353 YRATE # D*2(8)
036014,000269: 30,2604 65205 DMP PDDL # D12 D,EXCH WITH -L IN PDL(0) (2,2)
036015,000270: 30,2605 60465 BDDV SR2 # -DYDOT/L*2(-9)
036016,000271: 30,2606 02341 DYDOT
036017,000272: 30,2607 77625 DSU # (-DYDOT/L-D12 D)=C*2(-9)
036018,000273: 30,2610 00001 00D
036019,000274: 30,2611 02347 STORE YCONS
036020,000275: 30,2612 43001 CMPONENT SETPD BOFF
036021,000276: 30,2613 00001 00D
Page 842 |
036023,000278: 30,2614 04742 P7071FLG
036024,000279: 30,2615 60620 +3 # IF P7071FLG = 1 (I.E. P70 OR P71)
036025,000280: 30,2616 77624 CALL # COMPUTE NEW RP FOR NEXT CYCLE.
036026,000281: 30,2617 71501 RPCOMP2
036027,000282: 30,2620 41345 +3 DLOAD DMP
036028,000283: 30,2621 27104 100CS
036029,000284: 30,2622 02351 PRATE # B(T-T0)*2(-9)
036030,000285: 30,2623 56215 DAD DDV # (A+B(T-T0))*2(-9)
036031,000286: 30,2624 02345 PCONS # (A+B(T-T0))/TBUP*2(8)
036032,000287: 30,2625 02271 TBUP
036033,000288: 30,2626 45352 SL1 DSU
036034,000289: 30,2627 02315 GEFF # ATR*2(9)
036035,000290: 30,2630 16357 STODL ATR
036036,000291: 30,2631 27104 100CS
036037,000292: 30,2632 43205 DMP DAD
036038,000293: 30,2633 02353 YRATE
036039,000294: 30,2634 02347 YCONS # (C+D(T-T0))*2(-9)
036040,000295: 30,2635 72471 DDV SL1
036041,000296: 30,2636 02271 TBUP
036042,000297: 30,2637 02355 STORE ATY # ATY*2(9)
036043,000298: 30,2640 65361 VXSC PDDL # ATY UY*2(8) (6)
036044,000299: 30,2641 02303 LAXIS
036045,000300: 30,2642 02357 ATR
036046,000301: 30,2643 53361 VXSC VAD # (0)
036047,000302: 30,2644 03537 UNIT/R/
036048,000303: 30,2645 41572 VSL1 PUSH # AH*2(9) IN PDL(0) (6)
036049,000304: 30,2646 65246 ABVAL PDDL # AH(2) IN PDL(34)
036050,000305: 30,2647 02263 AT # AHMAG IN PDL(6) (8)
036051,000306: 30,2650 45316 DSQ DSU # (AT(2)-AH(2))*2(18)
036052,000307: 30,2651 00043 34D # =ATP2*2(18)
036053,000308: 30,2652 41525 PDDL PUSH # (12)
036054,000309: 30,2653 02263 AT
036055,000310: 30,2654 45316 DSQ DSU # (AT(2)KR(2)-AH(2))*2(18) (10)
036056,000311: 30,2655 00043 34D # =ATP3*2(18)
036057,000312: 30,2656 71240 BMN DLOAD # IF ATP3 NEG,GO TO NO-ATP
036058,000313: 30,2657 60663 NO-ATP # LOAD ATP2, IF ATP3 POS
036059,000314: 30,2660 00011 8D
036060,000315: 30,2661 52166 SQRT GOTO # ATP*2(9)
036061,000316: 30,2662 60671 AIMER
036062,000317: 30,2663 55345 NO-ATP DLOAD BDDV # KR AT/AH = KH (8)
036063,000318: 30,2664 00007 6D
036064,000319: 30,2665 77761 VXSC # KH AH*2(9)
036065,000320: 30,2666 00001 00D
036066,000321: 30,2667 14001 STODL 00D # STORE NEW AH IN PDL(0)
036067,000322: 30,2670 06524 HI6ZEROS
036068,000323: 30,2671 77765 AIMER SIGN
036069,000324: 30,2672 02343 DZDOT
036070,000325: 30,2673 02361 STORE ATP
036071,000326: 30,2674 77761 VXSC
036072,000327: 30,2675 03726 ZAXIS1 # ATP ZAXIS *2(8).
Page 843 |
036074,000329: 30,2676 53372 VSL1 VAD # AT*2(9)
036075,000330: 30,2677 00001 00D
036076,000331: 30,2700 03253 STORE UNFC/2 # WILL BE OVERWRITTEN IF IN VERT. RISE.
036077,000332: 30,2701 43001 SETPD BON
036078,000333: 30,2702 00001 00D
036079,000334: 30,2703 04704 FLPI
036080,000335: 30,2704 60216 P12RET
036081,000336: 30,2705 77614 BON
036082,000337: 30,2706 04701 FLVR
036083,000338: 30,2707 60763 CHECKALT
036084,000339: 30,2710 57575 MAINLINE VLOAD VCOMP
036085,000340: 30,2711 03537 UNIT/R/
036086,000341: 30,2712 17261 STODL UNWC/2
036087,000342: 30,2713 03654 TXO
036088,000343: 30,2714 51025 DSU BPL
036089,000344: 30,2715 01234 PIPTIME
036090,000345: 30,2716 60730 ASCTERM
036091,000346: 30,2717 77614 BON
036092,000347: 30,2720 04711 ROTFLAG
036093,000348: 30,2721 57273 ANG1CHEK
036094,000349: 30,2722 43014 CLRXFLAG CLEAR BON # ALLOW X-AXIS OVERRIDE
036095,000350: 30,2723 06666 XOVINFLG
036096,000351: 30,2724 04702 P7071FLG # ONLY ACTIVATE R29 IF IN P12.
036097,000352: 30,2725 60730 ASCTERM
036098,000353: 30,2726 77614 CLEAR
036099,000354: 30,2727 01664 NOR29FLG
036100,000355: 30,2730 77776 ASCTERM EXIT
036101,000356: 30,2731 30105 CA FLAGWRD9
036102,000357: 30,2732 74742 MASK FLRCSBIT
036103,000358: 30,2733 10000 CCS A
036104,000359: 30,2734 12755 TCF ASCTERM3
036105,000360: 30,2735 06042 TC INTPRET
036106,000361: 30,2736 77624 CALL
036107,000362: 30,2737 61100 FINDCDUW -2
036108,000363: 30,2740 77776 ASCTERM1 EXIT
036109,000364: 30,2741 30105 +1 CA FLAGWRD9 # INSURE THAT THE NOUN 63 DISPLAY IS
036110,000365: 30,2742 74742 MASK FLRCSBIT # BYPASSED IF WE ARE IN THE RCS TRIMMING
036111,000366: 30,2743 10000 CCS A # MODE OF OPERATION
036112,000367: 30,2744 12755 TCF ASCTERM3
036113,000368: 30,2745 30104 CA FLAGWRD8 # BYPASS DISPLAYS IF ENGINE FAILURE IS
036114,000369: 30,2746 74742 MASK FLUNDBIT # INDICATED.
036115,000370: 30,2747 10000 CCS A
036116,000371: 30,2750 12755 TCF ASCTERM3
036117,000372: 30,2751 33020 CAF V06N63*
036118,000373: 30,2752 04616 TC BANKCALL
036119,000374: 30,2753 20444 CADR GODSP
036120,000375: 30,2754 77776 ASCTERM2 EXIT
036121,000376: 30,2755 15155 ASCTERM3 TCF ENDOFJOB
036122,000377: 30,2756 77776 ASCTERM4 EXIT
036123,000378: 30,2757 00004 INHINT
Page 844 |
036125,000380: 30,2760 04674 TC IBNKCALL # NO GUIDANCE THIS CYCLE -- HENCE ZERO
036126,000381: 30,2761 40166 CADR STOPRATE # THE DAP COMMANDED RATES.
036127,000382: 30,2762 12741 TCF ASCTERM1 +1
036128,000383:
036129,000384: 30,2763 45345 CHECKALT DLOAD DSU
036130,000385: 30,2764 02301 /R/MAG
036131,000386: 30,2765 02333 /LAND/
036132,000387: 30,2766 50025 DSU BMN # IF H LT 25K CHECK Z AXIS ORIENTATION.
036133,000388: 30,2767 26205 25KFT
036134,000389: 30,2770 16666 CHECKYAW
036135,000390: 30,2771 43014 EXITVR CLEAR BON
036136,000391: 30,2772 04661 FLVR
036137,000392: 30,2773 04711 ROTFLAG
036138,000393: 30,2774 60710 MAINLINE
036139,000394: 30,2775 43345 DLOAD DAD
036140,000395: 30,2776 01234 PIPTIME
036141,000396: 30,2777 25734 10SECS
036142,000397: 30,3000 37654 STCALL TXO
036143,000398: 30,3001 60710 MAINLINE
036144,000399: 30,3002 77614 EXITVR1 CLRGO
036145,000400: 30,3003 04631 ROTFLAG
036146,000401: 30,3004 60771 EXITVR
036147,000402:
036148,000403: 27,2000 SETLOC ASENT1
036149,000404: 27,2000 BANK
036150,000405: 27,3273 COUNT* $$/ASENT
036151,000406:
036152,000407: 27,3273 53575 ANG1CHEK VLOAD UNIT
036153,000408: 27,3274 03253 UNFC/2
036154,000409: 27,3275 77641 DOT
036155,000410: 27,3276 02146 XNBPIP
036156,000411: 27,3277 51025 DSU BPL
036157,000412: 27,3300 02571 COSTHET1
036158,000413: 27,3301 57310 OFFROT
036159,000414: 27,3302 50375 VLOAD DOT
036160,000415: 27,3303 02146 XNBPIP
036161,000416: 27,3304 03537 UNIT/R/
036162,000417: 27,3305 50025 DSU BMN
036163,000418: 27,3306 02573 COSTHET2
036164,000419: 27,3307 71450 KEEPVR1
036165,000420: 27,3310 77614 OFFROT CLRGO
036166,000421: 27,3311 04631 ROTFLAG
036167,000422: 27,3312 60722 CLRXFLAG
036168,000423:
036169,000424: 07,2666 BANK 7
036170,000425: 07,2000 SETLOC ASENT2
036171,000426: 07,2000 BANK
036172,000427: 07,2666 COUNT* $$/ASENT
036173,000428:
036174,000429: 07,2666 07,2666 SETXFLAG = CHECKYAW
036175,000430:
Page 845 |
036177,000432: 07,2666 77614 CHECKYAW SET
036178,000433: 07,2667 06466 XOVINFLG # PROHIBIT X-AXIS OVERRIDE
036179,000434: 07,2670 74345 DLOAD VXSC
036180,000435: 07,2671 02355 ATY
036181,000436: 07,2672 02303 LAXIS
036182,000437: 07,2673 74325 PDDL VXSC
036183,000438: 07,2674 02361 ATP
036184,000439: 07,2675 03726 ZAXIS1
036185,000440: 07,2676 53455 VAD UNIT
036186,000441: 07,2677 45325 PDDL DSU
036187,000442: 07,2700 03474 RDOT
036188,000443: 07,2701 13504 40FPS
036189,000444: 07,2702 52044 BPL GOTO
036190,000445: 07,2703 61002 EXITVR1
036191,000446: 07,2704 71446 KEEPVR
036192,000447:
036193,000448: 05,3503 BANK 5
036194,000449: 05,2000 SETLOC ASENT3
036195,000450: 05,2000 BANK
036196,000451: 05,3503 COUNT* $$/ASENT
036197,000452:
036198,000453: 05,3503 00017 23305 40FPS 2DEC 0.12192 B-7
036199,000454:
036200,000455: 34,3446 BANK 34
036201,000456: 34,2000 SETLOC ASENT8
036202,000457: 34,2000 BANK
036203,000458: 34,3446 COUNT* $$/ASENT
036204,000459:
036205,000460: 34,3446 45575 KEEPVR VLOAD STADR # RECALL LOSVEC FROM PUSHLIST
036206,000461: 34,3447 74516 STORE UNWC/2
036207,000462: 34,3450 77775 KEEPVR1 VLOAD
036208,000463: 34,3451 03537 UNIT/R/
036209,000464: 34,3452 37253 STCALL UNFC/2
036210,000465: 34,3453 60730 ASCTERM
036211,000466:
036212,000467: 14,2347 BANK 14
036213,000468: 14,2000 SETLOC ASENT4
036214,000469: 14,2000 BANK
036215,000470: 14,2347 COUNT* $$/ASENT
036216,000471:
036217,000472: 14,2347 77634 ENGOFF RTB
036218,000473: 14,2350 21574 LOADTIME
036219,000474: 14,2351 43225 DSU DAD
036220,000475: 14,2352 01234 PIPTIME
036221,000476: 14,2353 03454 TTOGO
036222,000477: 14,2354 77476 DCOMP EXIT
036223,000478: 14,2355 07262 TC TPAGREE # FORCE SIGN AGREEMENT ON MPAC, MPAC +1.
036224,000479: 14,2356 35016 CAF EBANK7
036225,000480: 14,2357 54003 TS EBANK
Page 846 |
036227,000482: 14,2360 E7,1516 EBANK= TGO
036228,000483: 14,2360 00004 INHINT
036229,000484: 14,2361 10155 CCS MPAC +1
036230,000485: 14,2362 12365 TCF +3 # C(A) = DT - 1 BIT
036231,000486: 14,2363 12365 TCF +2 # C(A) = 0
036232,000487: 14,2364 34755 CAF ZERO # C(A) = 0
036233,000488: 14,2365 64753 AD BIT1 # C(A) = 1 BIT OR DT.
036234,000489: 14,2366 55644 TS ENGOFFDT
036235,000490: 14,2367 05173 TC TWIDDLE
036236,000491: 14,2370 02402 ADRES ENGOFF1
036237,000492: 14,2371 05353 TC PHASCHNG
036238,000493: 14,2372 47014 OCT 47014
036239,000494: 14,2373 76133 -GENADR ENGOFFDT
036240,000495: 14,2374 E7,1516 EBANK= TGO
036241,000496: 14,2374 02402 30067 2CADR ENGOFF1
036242,000497:
036243,000498: 14,2376 06042 TC INTPRET
036244,000499: 14,2377 52014 SET GOTO
036245,000500: 14,2400 03470 IDLEFLAG # DISABLE DELTA-V MONITOR
036246,000501: 14,2401 60452 T2TEST
036247,000502:
036248,000503: 14,2402 04674 ENGOFF1 TC IBNKCALL # SHUT OFF THE ENGINE.
036249,000504: 14,2403 75555 CADR ENGINOF2
036250,000505:
036251,000506: 14,2404 35027 CAF PRIO17 # SET UP A JOB FOR THE ASCENT GUIDANCE
036252,000507: 14,2405 05105 TC FINDVAC # POSTBURN LOGIC.
036253,000508: 14,2406 E7,1455 EBANK= WHICH
036254,000509: 14,2406 02416 30067 2CADR CUTOFF
036255,000510:
036256,000511: 14,2410 05353 TC PHASCHNG
036257,000512: 14,2411 07024 OCT 07024
036258,000513: 14,2412 17000 OCT 17000
036259,000514: 14,2413 E7,1516 EBANK= TGO
036260,000515: 14,2413 02416 30067 2CADR CUTOFF
036261,000516:
036262,000517: 14,2415 15261 TCF TASKOVER
036263,000518:
036264,000519: 14,2416 05504 CUTOFF TC UPFLAG # SET FLRCS FLAG.
036265,000520: 14,2417 00214 ADRES FLRCS
036266,000521:
036267,000522: 14,2420 32437 -5 CAF V16N63
036268,000523: 14,2421 04616 TC BANKCALL
036269,000524: 14,2422 20477 CADR GOFLASH
036270,000525: 14,2423 12426 TCF +3
036271,000526: 14,2424 12430 TCF CUTOFF1
036272,000527: 14,2425 12420 TCF -5
036273,000528:
036274,000529: 14,2426 04635 +3 TC POSTJUMP
036275,000530: 14,2427 71464 CADR TERMASC
Page 847 |
036277,000532:
036278,000533: 14,2430 00004 CUTOFF1 INHINT
036279,000534: 14,2431 04674 TC IBNKCALL # ZERO ATTITUDE ERRORS BEFORE REDUCING DB.
036280,000535: 14,2432 40154 CADR ZATTEROR
036281,000536: 14,2433 04674 TC IBNKCALL
036282,000537: 14,2434 40141 CADR SETMINDB
036283,000538: 14,2435 04635 TC POSTJUMP
036284,000539: 14,2436 71454 CADR CUTOFF2
036285,000540:
036286,000541: 14,2437 04077 V16N63 VN 1663
036287,000542: 34,3454 BANK 34
036288,000543: 34,2000 SETLOC ASENT8
036289,000544: 34,2000 BANK
036290,000545: 34,3454 COUNT* $$/ASENT
036291,000546:
036292,000547: 34,3454 05353 CUTOFF2 TC PHASCHNG
036293,000548: 34,3455 04024 OCT 04024
036294,000549:
036295,000550: 34,3456 33474 CAF V16N85C
036296,000551: 34,3457 04616 TC BANKCALL
036297,000552: 34,3460 20477 CADR GOFLASH
036298,000553: 34,3461 13464 TCF TERMASC
036299,000554: 34,3462 13464 TCF +2 # PROCEED
036300,000555: 34,3463 13454 TCF CUTOFF2
036301,000556:
036302,000557: 34,3464 05353 TERMASC TC PHASCHNG
036303,000558: 34,3465 04024 OCT 04024
036304,000559:
036305,000560: 34,3466 00004 INHINT # RESTORE DEADBAND DESIRED BY ASTRONAUT.
036306,000561: 34,3467 04674 TC IBNKCALL
036307,000562: 34,3470 40115 CADR RESTORDB
036308,000563: 34,3471 05516 TC DOWNFLAG # DISALLOW ABORTS AT THIS TIME.
036309,000564: 34,3472 00215 ADRES LETABORT
036310,000565: 34,3473 16001 TCF GOTOPOOH
036311,000566:
036312,000567: 34,3474 04125 V16N85C VN 1685
036313,000568:
036314,000569: 34,3475 77745 RPCOMP1 DLOAD # FLRCS = 1 (TRIM MODE)
036315,000570: 34,3476 06524 HI6ZEROS
036316,000571: 34,3477 02345 STORE PCONS # SET PCONS = PRATE = 0 SO THAT
036317,000572: 34,3500 02351 STORE PRATE # RP = R + RDOT TGO
036318,000573: 34,3501 41345 RPCOMP2 DLOAD DMP # FLRCS = 0 (GUIDANCE MODE)
036319,000574: 34,3502 02351 PRATE # LEAVE PCONS AND PRATE ALONE SO THAT
036320,000575: 34,3503 03517 TGO # RP = R + RDOT TGO + (PCONS*TGO**2)/
036321,000576: 34,3504 43205 DMP DAD # (2 TBUP) + (PRATE*TGO**3)/(6 TBUP)
036322,000577: 34,3505 33645 THIRD
036323,000578: 34,3506 02345 PCONS
036324,000579: 34,3507 41205 DMP DMP
036325,000580: 34,3510 03517 TGO
036326,000581: 34,3511 03517 TGO
036327,000582: 34,3512 72471 DDV SL1
Page 848 |
036329,000584: 34,3513 02271 TBUP
036330,000585: 34,3514 65215 DAD PDDL
036331,000586: 34,3515 02301 /R/MAG
036332,000587: 34,3516 03474 RDOT
036333,000588: 34,3517 43205 DMP DAD
036334,000589: 34,3520 03517 TGO
036335,000590: 34,3521 77626 STADR
036336,000591: 34,3522 75152 STORE RP
036337,000592: 34,3523 77616 RVQ
036338,000593:
036339,000594: 34,3524 45020 ZDOTDCMP STQ CALL # COMPUTE CENTRAL ANGLE (0)
036340,000595: 34,3525 02574 ASCSAVE
036341,000596: 34,3526 71554 THETCOMP
036342,000597: 34,3527 43205 DMP DAD # CENTRAL ANGLE IN MPAC
036343,000598: 34,3530 02623 KPARM
036344,000599: 34,3531 02621 JPARM
036345,000600: 34,3532 41425 DSU PUSH # RA IN MPAC AND IN PUSHLIST (2)
036346,000601: 34,3533 02625 RP
036347,000602: 34,3534 51025 DSU BPL
036348,000603: 34,3535 02563 RAMIN
036349,000604: 34,3536 71541 +3
036350,000605: 34,3537 65345 DLOAD PDDL # RA < RAMIN. SET RA = RAMIN. (2)
036351,000606: 34,3540 02563 RAMIN
036352,000607: 34,3541 41345 +3 DLOAD DMP
036353,000608: 34,3542 00001 0D
036354,000609: 34,3543 16025 MUM(-37)
036355,000610: 34,3544 77725 PDDL
036356,000611: 34,3545 41215 DAD DMP
036357,000612: 34,3546 02625 RP
036358,000613: 34,3547 02625 RP
036359,000614: 34,3550 75465 BDDV SQRT # (0)
036360,000615: 34,3551 77626 STADR
036361,000616: 34,3552 41500 STCALL ZDOTD # UPDATE ZDOTD FOR GUIDANCE AND DOWNLINK.
036362,000617: 34,3553 02574 ASCSAVE
036363,000618:
036364,000619: 34,3554 53575 THETCOMP VLOAD UNIT
036365,000620: 34,3555 03521 R
036366,000621: 34,3556 53515 PDVL UNIT # (6)
036367,000622: 34,3557 01720 R(CSM)
036368,000623: 34,3560 47206 PUSH VXV # (12)
036369,000624: 34,3561 00001 0D
036370,000625: 34,3562 77641 DOT
036371,000626: 34,3563 02325 WM
036372,000627: 34,3564 24037 STOVL 30D # (6)
036373,000628: 34,3565 72441 DOT SL1 # (0)
036374,000629: 34,3566 75326 ARCCOS SIGN
036375,000630: 34,3567 00037 30D
036376,000631: 34,3570 77616 RVQ
036377,000632:
036378,000633: 34,3571 E5,1574 ASCSAVE = CG
036379,000634:
Page 849 |
036381,000636: 27,3313 BANK 27
036382,000637: 27,2000 SETLOC ASENT1
036383,000638: 27,2000 BANK
036384,000639: 27,3313 COUNT* $$/ASENT
036385,000640:
036386,000641: 27,3313 50375 YCOMP VLOAD DOT
036387,000642: 27,3314 03537 UNIT/R/
036388,000643: 27,3315 03720 QAXIS
036389,000644: 27,3316 41312 SL2 DMP
036390,000645: 27,3317 03631 RCO
036391,000646: 27,3320 02335 STORE Y
036392,000647: 27,3321 77616 RVQ
036393,000648:
036394,000649: 30,3005 BANK 30
036395,000650: 30,2000 SETLOC ASENT
036396,000651: 30,2000 BANK
036397,000652:
Page 850 |
036399,000654: # ASCENT GUIDANCE CONSTANTS
036400,000655:
036401,000656: 30,3005 33,3103 100CS EQUALS 2SEC(18)
036402,000657: 30,3005 30,3007 T2A EQUALS 2SEC(17)
036403,000658: 30,3005 00062 00000 4SEC(17) 2DEC 400 B-17
036404,000659: 30,3007 00031 00000 2SEC(17) 2DEC 200 B-17
036405,000660: 30,3011 00175 00000 T3 2DEC 1000 B-17
036406,000661: 30,3013 00045 20000 6SEC(18) 2DEC 600 B-18
036407,000662: 30,3015 00010 BIT4H OCT 10
036408,000663: 30,3016 14400 00000 2SEC(9) 2DEC 200 B-9
036409,000664: 30,3020 01477 V06N63* VN 0663
036410,000665: 30,3021 01514 V06N76 VN 0676
036411,000666: 30,3022 01441 V06N33A VN 0633
036412,000667:
036413,000668: 33,2200 BANK 33
036414,000669: 33,2000 SETLOC ASENT6
036415,000670: 33,2000 BANK
036416,000671: 33,2200 COUNT* $$/ASENT
036417,000672:
036418,000673: 33,2200 75751 41775 PRLIMIT 2DEC -.0639 # (B/TBUP)MIN=-.1FT.SEC(-3)
036419,000674: 33,2202 00022 07212 MINABDV 2DEC .0356 B-5 # 10 PERCENT BIGGER THAN GRAVITY
036420,000675: 33,2204 00007 16100 25KFT 2DEC 7620 B-24
036421,000676: 33,2206 E7,1570 1/DV0 = MASS1
036422,000677:
Page 851 |
036424,000679: # THE LOGARITHM SUBROUTINE
036425,000680:
036426,000681: 24,3700 BANK 24
036427,000682: 30,2000 SETLOC FLOGSUB
036428,000683: 30,2000 BANK
036429,000684:
036430,000685: # INPUT ..... X IN MPAC
036431,000686: # OUTPUT ..... -LOG(X) IN MPAC
036432,000687:
036433,000688: 30,3023 44301 LOGSUB NORM BDSU
036434,000689: 30,3024 00163 MPAC +6
036435,000690: 30,3025 17772 NEARONE
036436,000691: 30,3026 77776 EXIT
036437,000692: 30,3027 07225 TC POLY
036438,000693: 30,3030 00006 DEC 6 B-14
036439,000694: 30,3031 00000 00002 2DEC .0000000060
036440,000695: 30,3033 76777 77175 2DEC -.0312514377
036441,000696: 30,3035 77400 75416 2DEC -.0155686771
036442,000697: 30,3037 77507 65515 2DEC -.0112502068
036443,000698: 30,3041 77741 63547 2DEC -.0018545108
036444,000699: 30,3043 77052 55373 2DEC -.0286607906
036445,000700: 30,3045 01167 30361 2DEC .0385598563
036446,000701: 30,3047 76520 75267 2DEC -.0419361902
036447,000702:
036448,000703: 30,3051 34755 CAF ZERO
036449,000704: 30,3052 54156 TS MPAC +2
036450,000705: 30,3053 00006 EXTEND
036451,000706: 30,3054 33070 DCA CLOG2/32
036452,000707: 30,3055 52155 DXCH MPAC
036453,000708: 30,3056 52132 DXCH BUF +1
036454,000709: 30,3057 30162 CA MPAC +6
036455,000710: 30,3060 07312 TC SHORTMP
036456,000711: 30,3061 52156 DXCH MPAC +1
036457,000712: 30,3062 52155 DXCH MPAC
036458,000713: 30,3063 52132 DXCH BUF +1
036459,000714: 30,3064 20155 DAS MPAC
036460,000715: 30,3065 06042 TC INTPRET
036461,000716: 30,3066 43476 DCOMP RVQ
036462,000717:
036463,000718: 30,3067 00542 34414 CLOG2/32 2DEC .0216608494
036464,000719:
End of include-file ASCENT_GUIDANCE.agc. Parent file is MAIN.agc