Source Code
This is a reconstructed version of Luminary 130, the initial AGC program released
in November 1969 for the Apollo 13 LM. Three more releases
followed before the flown revision was finally manufactured in February 1970.
This reconstruction was created from a previous transcription of the original listing of Luminary 131, combined with Luminary memo #129 which describes the small difference between the Luminary 130 and 131. The reconstructed source code was verified by matching memory-bank checksums to those listed for Luminary 130 in drawing 2021152G. In this source code, program comments from the original (Luminary 131) code are prefixed with '#', while those added later by the Virtual AGC project are prefixed with '##'. |
030182,000002: ## Copyright: Public domain.
030183,000003: ## Filename: P76.agc
030184,000004: ## Purpose: A section of the reconstructed source code for Luminary 130.
030185,000005: ## This was the original program released for the Apollo 13 LM,
030186,000006: ## although several more revisions would follow. It has been
030187,000007: ## reconstructed from a listing of Luminary 131, from which it
030188,000008: ## differs on only two lines in P70-P71. The difference is
030189,000009: ## described in detail in Luminary memo #129, which was used
030190,000010: ## to perform the reconstruction. This file is intended to be a
030191,000011: ## faithful reconstruction, except that the code format has been
030192,000012: ## changed to conform to the requirements of the yaYUL assembler
030193,000013: ## rather than the original YUL assembler.
030194,000014: ## Reference: pp. 711-713
030195,000015: ## Contact: Ron Burkey <info@sandroid.org>.
030196,000016: ## Website: www.ibiblio.org/apollo
030197,000017: ## Mod history: 05/24/03 RSB. Began transcribing.
030198,000018: ## 2017-01-06 RSB Page numbers now agree with those on the
030199,000019: ## original harcopy, as opposed to the PDF page
030200,000020: ## numbers in 1701.pdf.
030201,000021: ## 2017-02-24 RSB Proofed comment text using octopus/ProoferComments.
030202,000022: ## 2018-09-04 MAS Copied from Luminary 131 for Luminary 130.
030203,000023:
Page 711 |
030205,000025: # 1) PROGRAM NAME - TARGET DELTA V PROGRAM (P76).
030206,000026: # 2) FUNCTIONAL DESCRIPTION - UPON ENTRY BY ASTRONAUT ACTION, P76 FLASHES DSKY REQUESTS TO THE ASTRONAUT
030207,000027: # TO PROVIDE VIA DSKY (1) THE DELTA V TO BE APPLIED TO THE OTHER VEHICLE STATE VECTOR AND (2) THE
030208,000028: # TIME (TIG) AT WHICH THE OTHER VEHICLE VELOCITY WAS CHANGED BY EXECUTION OF A THRUSTING MANEUVER. THE
030209,000029: # OTHER VEHICLE STATE VECTOR IS INTEGRATED TO TIG AND UPDATED BY THE ADDITION OF DELTA V (DELTA V HAVING
030210,000030: # BEEN TRANSFORMED FROM LV TO REF COSYS). USING INTEGRVS, THE PROGRAM THEN INTEGRATES THE OTHER
030211,000031: # VEHICLE STATE VECTOR TO THE STATE VECTOR OF THIS VEHICLE, THUS INSURING THAT THE W-MATRIX AND BOTH VEHICLE
030212,000032: # STATES CORRESPOND TO THE SAME TIME.
030213,000033: # 3) ERASABLE INITIALIZATION REQUIRED - NONE.
030214,000034: # 4) CALLING SEQUENCES AND EXIT MODES - CALLED BY ASTRONAUT REQUEST THRU DSKY V 37 E 76E.
030215,000035: # EXITS BY TCF ENDOFJOB.
030216,000036: # 5) OUTPUT - OTHER VEHICLE STATE VECTOR INTEGRATED TO TIG AND INCREMENTED BY DELTA V IN REF COSYS.
030217,000037: # THE PUSHLIST CONTAINS THE MATRIX BY WHICH THE INPUT DELTA V MUST BE POST-MULTIPLIED TO CONVERT FROM LV
030218,000038: # TO REF COSYS.
030219,000039: # 6) DEBRIS - OTHER VEHICLE STATE VECTOR.
030220,000040: # 7) SUBROUTINES CALLED - BANKCALL, GOXDSPF, CSMPREC (OR LEMPREC), ATOPCSM (OR ATOPLEM), INTSTALL, INTWAKE, PHASCHNG
030221,000041: # INTPRET, INTEGRVS, AND MINIRECT.
030222,000042: # 8) FLAG USE - MOONFLAG, CMOONFLAG, INTYPFLG, RASFLAG, AND MARKCTR.
030223,000043:
030224,000044: 30,2061 BANK 30
030225,000045: 13,2000 SETLOC P76LOC
030226,000046: 13,2000 BANK
030227,000047:
030228,000048: 13,2207 COUNT* $$/P76
030229,000049:
030230,000050: 13,2207 E7,1441 EBANK= TIG
030231,000051:
030232,000052: 13,2207 05504 P76 TC UPFLAG
030233,000053: 13,2210 00031 ADRES TRACKFLG
030234,000054:
030235,000055: 13,2211 06042 TC INTPRET
030236,000056: 13,2212 77775 VLOAD
030237,000057: 13,2213 03434 DELVLVC
030238,000058: 13,2214 02223 STORE DELVOV
030239,000059: 13,2215 77776 EXIT
030240,000060:
030241,000061: 13,2216 32335 CAF V06N84 +1 # FLASH VERB 06 NOUN 33, DISPLAY LAST TIG,
030242,000062: 13,2217 04616 TC BANKCALL # AND WAIT FOR KEYBOARD ACTION.
030243,000063: 13,2220 20477 CADR GOFLASH
030244,000064: 13,2221 12331 TCF ENDP76
030245,000065: 13,2222 02224 TC +2 # PROCEED
030246,000066: 13,2223 02216 TC -5 # STORE DATA AND REPEAT FLASHING
030247,000067: 13,2224 32334 CAF V06N84 # FLASH LAST DELTA V,
030248,000068: 13,2225 04616 TC BANKCALL # AND WAIT FOR KEYBOARD ACTION.
030249,000069: 13,2226 20477 CADR GOFLASH
030250,000070: 13,2227 12331 TCF ENDP76
030251,000071: 13,2230 02232 TC +2
030252,000072: 13,2231 02224 TC -5
030253,000073: 13,2232 06042 TC INTPRET # RETURN TO INTERPRETIVE CODE
Page 712 |
030255,000075: 13,2233 43145 DLOAD SET
030256,000076: 13,2234 03442 TIG
030257,000077: 13,2235 01076 NODOFLAG
030258,000078: 13,2236 34041 STCALL TDEC1 # SET TDEC1=TIG FOR ORBITAL INTEGRATION
030259,000079: 13,2237 27042 OTHPREC
030260,000080: 13,2240 53575 COMPMAT VLOAD UNIT
030261,000081: 13,2241 00001 RATT
030262,000082: 13,2242 77676 VCOMP # U(-R)
030263,000083: 13,2243 00031 STORE 24D # U(-R) TO 24D
030264,000084: 13,2244 53435 VXV UNIT # U(-R) X V = U(V X R)
030265,000085: 13,2245 00007 VATT
030266,000086: 13,2246 00023 STORE 18D
030267,000087: 13,2247 53435 VXV UNIT # U(V X R) X U(-R) = U((R X V) X R)
030268,000088: 13,2250 00031 24D
030269,000089: 13,2251 24015 STOVL 12D
030270,000090: 13,2252 02223 DELVOV
030271,000091: 13,2253 76505 VXM VSL1 # V(MPAC)=DELTA V IN REFCOSYS
030272,000092: 13,2254 00015 12D
030273,000093: 13,2255 77655 VAD
030274,000094: 13,2256 00007 VATT
030275,000095: 13,2257 00007 STORE 6 # V(PD6)=VATT + DELTA V
030276,000096: 13,2260 77624 CALL # PREVENT WOULD-BE USER OF ORBITAL
030277,000097: 13,2261 27410 INTSTALL # INTEG FROM INTERFERING WITH UPDATING
030278,000098: 13,2262 77624 CALL
030279,000099: 13,2263 26336 P76SUB1
030280,000100: 13,2264 53775 VLOAD VSR*
030281,000101: 13,2265 00007 6
030282,000102: 13,2266 57176 0,2
030283,000103: 13,2267 25543 STOVL VCV
030284,000104: 13,2270 00001 RATT
030285,000105: 13,2271 77657 VSR*
030286,000106: 13,2272 57176 0,2
030287,000107: 13,2273 15535 STODL RCV
030288,000108: 13,2274 03442 TIG
030289,000109: 13,2275 01517 STORE TET
030290,000110: 13,2276 71214 CLEAR DLOAD
030291,000111: 13,2277 01673 INTYPFLG
030292,000112: 13,2300 01643 TETTHIS
030293,000113: 13,2301 34041 INTOTHIS STCALL TDEC1
030294,000114: 13,2302 27106 INTEGRVS
030295,000115: 13,2303 77624 CALL
030296,000116: 13,2304 27410 INTSTALL
030297,000117: 13,2305 77775 VLOAD
030298,000118: 13,2306 00017 RATT1
030299,000119: 13,2307 01503 STORE RRECT
030300,000120: 13,2310 15535 STODL RCV
030301,000121: 13,2311 00015 TAT
030302,000122: 13,2312 25517 STOVL TET
030303,000123: 13,2313 00025 VATT1
030304,000124: 13,2314 77624 CALL
Page 713 |
030306,000126: 13,2315 27705 MINIRECT
030307,000127: 13,2316 77776 EXIT
030308,000128: 13,2317 05353 TC PHASCHNG
030309,000129: 13,2320 04024 OCT 04024
030310,000130:
030311,000131: 13,2321 06042 TC INTPRET
030312,000132: 13,2322 45014 SET CALL
030313,000133: 13,2323 05070 REINTFLG
030314,000134: 13,2324 26660 ATOPOTH
030315,000135: 13,2325 77624 CALL
030316,000136: 13,2326 27417 INTWAKE0
030317,000137: 13,2327 77414 OUT CLEAR EXIT # ALLOW V37. NO NEED TO CLEAR NODOFLAG AT
030318,000138: 13,2330 01276 NODOFLAG # ENDP76 SINCE FLAG NOT SET WHEN DISPLAY
030319,000139: # RESPONSES TRANSFER THERE FROM P76+.
030320,000140: 13,2331 34755 ENDP76 CAF ZERO
030321,000141: 13,2332 55462 TS MARKCTR # CLEAR RR TRACKING MARK COUNTER
030322,000142: 13,2333 16001 TCF GOTOPOOH
030323,000143:
030324,000144: 13,2334 01524 V06N84 NV 0684
030325,000145: 13,2335 01441 NV 0633
030326,000146: 13,2336 43174 P76SUB1 AXT,2 SET
030327,000147: 13,2337 00002 2
030328,000148: 13,2340 00063 MOONFLAG # SET MEANS MOON IS SPHERE OF INFLUENCE.
030329,000149: 13,2341 77014 BON AXT,2
030330,000150: 13,2342 04303 CMOONFLG # SET MEANS PERM CM STATE IN LUNAR SPHERE.
030331,000151: 13,2343 00052 QPRET
030332,000152: 13,2344 00000 0
030333,000153: 13,2345 43414 CLEAR RVQ
030334,000154: 13,2346 00263 MOONFLAG
030335,000155:
030336,000156:
030337,000157:
End of include-file P76.agc. Parent file is MAIN.agc