Source Code

These source-code files are part of a reconstructed copy of Luminary 98, a development version of the Apollo 11 Lunar Module (LM) Apollo Guidance Computer (AGC) software.

The reconstruction began with source code of Luminary 99 revision 1 previously transcribed from a digitized copy of that program. The code was then updated by undoing changes described in original Luminary memo 85, using asterisks indicating changed lines in the listing as a guide. While no listing of this version is known to exist, nor are the memory-bank checksums available, the reconstruction is believed to be correct because it was an an intermediate step in reconstructing Luminary 97 whose reconstruction was verified by matching memory-bank checksums to those listed in drawing 2021152G. Note that page numbers in the reconstructed code match those on the Luminary 099 revision 001 printout, although the added code would likely have changed page numbers for a real Luminary 98 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.

029750,000002:                                                                                                  ## Copyright:   Public domain.
029751,000003:                                                                                                  ## Filename:    P76.agc
029752,000004:                                                                                                  ## Purpose:     A section of Luminary revision 98.
029753,000005:                                                                                                  ##              It is part of the reconstructed source code for the a
029754,000006:                                                                                                  ##              development version of the flight software for the Lunar 
029755,000007:                                                                                                  ##              Module's (LM) Apollo Guidance Computer (AGC) for Apollo 11.
029756,000008:                                                                                                  ##              The code has been recreated from a copy of Luminary 99
029757,000009:                                                                                                  ##              revision 001, using asterisks indicating changed lines in
029758,000010:                                                                                                  ##              the listing and Luminary Memo #85, which lists changes between
029759,000011:                                                                                                  ##              Luminary 98 and 99.
029760,000012:                                                                                                  ## Reference:   pp. 709-711
029761,000013:                                                                                                  ## Assembler:   yaYUL
029762,000014:                                                                                                  ## Contact:     Ron Burkey <info@sandroid.org>.
029763,000015:                                                                                                  ## Website:     www.ibiblio.org/apollo/index.html
029764,000016:                                                                                                  ## Mod history: 2019-07-28 MAS  Created from Luminary 99.
029765,000017: 

Page 709

029767,000019:                                                                                                  #  1)    PROGRAM NAME - TARGET DELTA V PROGRAM (P76).
029768,000020:                                                                                                  #  2)    FUNCTIONAL DESCRIPTION - UPON ENTRY BY ASTRONAUT ACTION, P76 FLASHES DSKY REQUESTS TO THE ASTRONAUT
029769,000021:                                                                                                  #        TO PROVIDE VIA DSKY (1) THE DELTA V TO BE APPLIED TO THE OTHER VEHICLE STATE VECTOR AND (2) THE
029770,000022:                                                                                                  #        TIME (TIG) AT WHICH THE OTHER VEHICLE VELOCITY WAS CHANGED BY EXECUTION OF A THRUSTING MANEUVER. THE
029771,000023:                                                                                                  #        OTHER VEHICLE STATE VECTOR IS INTEGRATED TO TIG AND UPDATED BY THE ADDITION OF DELTA V (DELTA V HAVING
029772,000024:                                                                                                  #        BEEN TRANSFORMED FROM LV TO REF COSYS).  USING INTEGRVS, THE PROGRAM THEN INTEGRATES THE OTHER
029773,000025:                                                                                                  #        VEHICLE STATE VECTOR TO THE STATE VECTOR OF THIS VEHICLE, THUS INSURING THAT THE W-MATRIX AND BOTH VEHICLE
029774,000026:                                                                                                  #        STATES CORRESPOND TO THE SAME TIME.
029775,000027:                                                                                                  #  3)    ERASABLE INITIALIZATION REQUIRED - NONE.
029776,000028:                                                                                                  #  4)    CALLING SEQUENCES AND EXIT MODES - CALLED BY ASTRONAUT REQUEST THRU DSKY V 37 E 76E.
029777,000029:                                                                                                  #        EXITS BY TCF ENDOFJOB.
029778,000030:                                                                                                  #  5)    OUTPUT - OTHER VEHICLE STATE VECTOR INTEGRATED TO TIG AND INCREMENTED BY DELTA V IN REF COSYS.
029779,000031:                                                                                                  #        THE PUSHLIST CONTAINS THE MATRIX BY WHICH THE INPUT DELTA V MUST BE POST-MULTIPLIED TO CONVERT FROM LV
029780,000032:                                                                                                  #        TO REF COSYS.
029781,000033:                                                                                                  #  6)    DEBRIS - OTHER VEHICLE STATE VECTOR.
029782,000034:                                                                                                  #  7)    SUBROUTINES CALLED - BANKCALL, GOXDSPF, CSMPREC (OR LEMPREC), ATOPCSM (OR ATOPLEM), INTSTALL, INTWAKE, PHASCHNG
029783,000035:                                                                                                  #        INTPRET, INTEGRVS, AND MINIRECT.
029784,000036:                                                                                                  #  8)    FLAG USE - MOONFLAG, CMOONFLAG, INTYPFLG, RASFLAG, AND MARKCTR.
029785,000037: 
029786,000038: 30,2061                                           BANK     30                                    
029787,000039: 13,2000                                           SETLOC   P76LOC                                
029788,000040: 13,2000                                           BANK                                           
029789,000041: 
029790,000042: 13,2207                                           COUNT*   $$/P76                                
029791,000043: 
029792,000044: 13,2207  E7,1441                                  EBANK=   TIG                                   
029793,000045: 
029794,000046: 13,2207           05504        P76                TC       UPFLAG                                
029795,000047: 13,2210           00031                           ADRES    TRACKFLG                              
029796,000048: 
029797,000049: 13,2211           06037                           TC       INTPRET                               
029798,000050: 13,2212           77775                           VLOAD                                          
029799,000051: 13,2213           03434                                    DELVLVC                               
029800,000052: 13,2214           02223                           STORE    DELVOV                                
029801,000053: 13,2215           77776                           EXIT                                           
029802,000054: 
029803,000055: 13,2216           32336                           CAF      V06N84                                #  FLASH LAST DELTA V,
029804,000056: 13,2217           04616                           TC       BANKCALL                              #  AND WAIT FOR KEYBOARD ACTION.
029805,000057: 13,2220           20476                           CADR     GOFLASH                               
029806,000058: 13,2221           12333                           TCF      ENDP76                                
029807,000059: 13,2222           02224                           TC       +2                                    #  PROCEED
029808,000060: 13,2223           02216                           TC       -5                                    #  STORE DATA AND REPEAT FLASHING
029809,000061: 13,2224           32337                           CAF      V06N84     +1                         #  FLASH VERB 06 NOUN 33, DISPLAY LAST TIG,
029810,000062: 13,2225           04616                           TC       BANKCALL                              #  AND WAIT FOR KEYBOARD ACTION.
029811,000063: 13,2226           20476                           CADR     GOFLASH                               
029812,000064: 13,2227           12333                           TCF      ENDP76                                
029813,000065: 13,2230           02232                           TC       +2                                    
029814,000066: 13,2231           02224                           TC       -5                                    
029815,000067: 13,2232           06037                           TC       INTPRET                               #  RETURN TO INTERPRETIVE CODE

Page 710

029817,000069: 13,2233           77745                           DLOAD                                          #  SET D(MPAC)=TIG IN CSEC B28
029818,000070: 13,2234           03442                                    TIG                                   
029819,000071: 13,2235           34041                           STCALL   TDEC1                                 #  SET TDEC1=TIG FOR ORBITAL INTEGRATION
029820,000072: 13,2236           27043                                    OTHPREC                               
029821,000073: 13,2237           53575        COMPMAT            VLOAD    UNIT                                  
029822,000074: 13,2240           00001                                    RATT                                  
029823,000075: 13,2241           77676                           VCOMP                                          #  U(-R)
029824,000076: 13,2242           00031                           STORE    24D                                   #  U(-R) TO 24D
029825,000077: 13,2243           53435                           VXV      UNIT                                  #  U(-R) X V = U(V X R)
029826,000078: 13,2244           00007                                    VATT                                  
029827,000079: 13,2245           00023                           STORE    18D                                   
029828,000080: 13,2246           53435                           VXV      UNIT                                  #  U(V X R) X U(-R) = U((R X V) X R)
029829,000081: 13,2247           00031                                    24D                                   
029830,000082: 13,2250           24015                           STOVL    12D                                   
029831,000083: 13,2251           02223                                    DELVOV                                
029832,000084: 13,2252           76505                           VXM      VSL1                                  #  V(MPAC)=DELTA V IN REFCOSYS
029833,000085: 13,2253           00015                                    12D                                   
029834,000086: 13,2254           77655                           VAD                                            
029835,000087: 13,2255           00007                                    VATT                                  
029836,000088: 13,2256           00007                           STORE    6                                     #  V(PD6)=VATT + DELTA V
029837,000089: 13,2257           77624                           CALL                                           #  PREVENT WOULD-BE USER OF ORBITAL
029838,000090: 13,2260           27414                                    INTSTALL                              #  INTEG FROM INTERFERING WITH UPDATING
029839,000091: 13,2261           77624                           CALL                                           
029840,000092: 13,2262           26340                                    P76SUB1                               
029841,000093: 13,2263           53775                           VLOAD    VSR*                                  
029842,000094: 13,2264           00007                                    6                                     
029843,000095: 13,2265           57176                                    0,2                                   
029844,000096: 13,2266           25543                           STOVL    VCV                                   
029845,000097: 13,2267           00001                                    RATT                                  
029846,000098: 13,2270           77657                           VSR*                                           
029847,000099: 13,2271           57176                                    0,2                                   
029848,000100: 13,2272           15535                           STODL    RCV                                   
029849,000101: 13,2273           03442                                    TIG                                   
029850,000102: 13,2274           01517                           STORE    TET                                   
029851,000103: 13,2275           71214                           CLEAR    DLOAD                                 
029852,000104: 13,2276           01673                                    INTYPFLG                              
029853,000105: 13,2277           01643                                    TETTHIS                               
029854,000106: 13,2300           34041        INTOTHIS           STCALL   TDEC1                                 
029855,000107: 13,2301           27107                                    INTEGRVS                              
029856,000108: 13,2302           77624                           CALL                                           
029857,000109: 13,2303           27414                                    INTSTALL                              
029858,000110: 13,2304           77775                           VLOAD                                          
029859,000111: 13,2305           00017                                    RATT1                                 
029860,000112: 13,2306           01503                           STORE    RRECT                                 
029861,000113: 13,2307           15535                           STODL    RCV                                   
029862,000114: 13,2310           00015                                    TAT                                   
029863,000115: 13,2311           25517                           STOVL    TET                                   
029864,000116: 13,2312           00025                                    VATT1                                 
029865,000117: 13,2313           77624                           CALL                                           
029866,000118: 13,2314           23455                                    MINIRECT                              

Page 711

029868,000120: 13,2315           77776                           EXIT                                           
029869,000121: 13,2316           05353                           TC       PHASCHNG                              
029870,000122: 13,2317           04024                           OCT      04024                                 
029871,000123: 
029872,000124: 13,2320           05504                           TC       UPFLAG                                
029873,000125: 13,2321           00236                           ADRES    REINTFLG                              
029874,000126: 
029875,000127: 13,2322           06037                           TC       INTPRET                               
029876,000128: 13,2323           77624                           CALL                                           
029877,000129: 13,2324           26661                                    ATOPOTH                               
029878,000130: 13,2325           77531                           SSP      EXIT                                  
029879,000131: 13,2326           00053                                    QPRET                                 
029880,000132: 13,2327           26332                                    OUT                                   
029881,000133: 13,2330           04616                           TC       BANKCALL                              #  PERMIT USE OF ORBITAL INTEGRATION
029882,000134: 13,2331           27445                           CADR     INTWAKE1                              
029883,000135: 13,2332           77776        OUT                EXIT                                           
029884,000136: 13,2333           34755        ENDP76             CAF      ZERO                                  
029885,000137: 13,2334           55462                           TS       MARKCTR                               #  CLEAR RR TRACKING MARK COUNTER
029886,000138: 13,2335           16001                           TCF      GOTOPOOH                              
029887,000139: 
029888,000140: 13,2336           01524        V06N84             NV       0684                                  
029889,000141: 13,2337           01441                           NV       0633                                  
029890,000142: 13,2340           43174        P76SUB1            AXT,2    SET                                   
029891,000143: 13,2341           00002                                    2                                     
029892,000144: 13,2342           00063                                    MOONFLAG                              #  SET MEANS MOON IS SPHERE OF INFLUENCE.
029893,000145: 13,2343           77014                           BON      AXT,2                                 
029894,000146: 13,2344           04303                                    CMOONFLG                              #  SET MEANS PERM CM STATE IN LUNAR SPHERE.
029895,000147: 13,2345           00052                                    QPRET                                 
029896,000148: 13,2346           00000                                    0                                     
029897,000149: 13,2347           43414                           CLEAR    RVQ                                   
029898,000150: 13,2350           00263                                    MOONFLAG                              
029899,000151: 
029900,000152: 
029901,000153: 

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