Source Code
This is an attempt to recreate Luminary 99 Rev 2, otherwise known as LUM99R2, from Luminary 99 Rev 1 and ephemeris data from Luminary 116. The differences are confined to the last 10-12 lines of the CONTROLLED CONSTANTS. Luminary 99 Rev 1 source-code was transcribed from a printout in the MIT Museum, while Luminary 116 source code was transcribed from a printout belonging to Don Eyles. AGC developer James Kernan, the "rope mother" for the Apollo 11 Lunar Module's AGC, explains as follows: "At the last minute, Dan Lickly, our chief engineer, appeared with ephemerides updates and it took two tries to get it right. The result was that we created Lum99 Revision 1 and Lum99 Revision 2." It is suspected that the former is what's in the MIT Museum, and the latter is what we are trying to recreate here. As for which revision actually flew in Apollo 11, all of the other available surviving evidence points to Rev 1 rather than to Rev 2, so we're just not sure! |
013751,000002: ## Copyright: Public domain.
013752,000003: ## Filename: R63.agc
013753,000004: ## Purpose: Part of the source code for Luminary 1A build 099.
013754,000005: ## It is part of the source code for the Lunar Module's (LM)
013755,000006: ## Apollo Guidance Computer (AGC), for Apollo 11.
013756,000007: ## Assembler: yaYUL
013757,000008: ## Contact: Ron Burkey <info@sandroid.org>.
013758,000009: ## Website: www.ibiblio.org/apollo.
013759,000010: ## Pages: 338-341
013760,000011: ## Mod history: 2009-05-16 RSB Adapted from the corresponding
013761,000012: ## Luminary131 file, using page
013762,000013: ## images from Luminary 1A.
013763,000014: ## 2016-12-14 RSB Proofed text comments with octopus/ProoferComments
013764,000015: ## and corrected the errors found.
013765,000016: ## 2017-01-26 RSB Back-ported a comment-text fix from Luminary 69.
013766,000017: ## 2017-03-03 RSB Snapshot of Luminary 99 Rev 1.
013767,000018: ## 2017-03-07 RSB Comment-text fixes noted in proofing Luminary 116.
013768,000019:
Page 338 |
013770,000021: # SUBROUTINE NAME: V89CALL
013771,000022: # MOD NO: 0 DATE: 9 JAN 1968
013772,000023: # MOD BY: DIGITAL DEVEL GROUP LOG SECTION: R63
013773,000024:
013774,000025: # FUNCTIONAL DESCRIPTION:
013775,000026:
013776,000027: # CALLED BY VERB 89 ENTER DURING P00. PRIO 10 USED. CALCULATES AND
013777,000028: # DISPLAYS FINAL FDAI BALL ANGLES TO POINT LM +X OR +Z AXIS AT CSM.
013778,000029:
013779,000030: # 1. KEY IN V 89 E ONLY IF IN PROG 00. IF NOT IN P00, OPERATOR ERROR AND
013780,000031: # EXIT R63, OTHERWISE CONTINUE.
013781,000032:
013782,000033: # 2. IF IN P00, DO IMU STATUS CHECK ROUTINE (R02BOTH). IF IMU ON AND ITS
013783,000034: # ORIENTATION KNOWN TO LGC, CONTINUE.
013784,000035:
013785,000036: # 3. FLASH DISPLAY V 04 N 06. R2 INDICATES WHICH SPACECRAFT AXIS IS TO
013786,000037: # BE POINTED AT CSM. INITIAL CHOICE IS PREFERRED (+Z) AXIS (R2=1).
013787,000038: # ASTRONAUT CAN CHANGE TO (+X) AXIS (R2 NOT =1) BY V 22 E 2 E. CONTINUE
013788,000039: # AFTER KEYING IN PROCEED.
013789,000040:
013790,000041: # 4. BOTH VEHICLE STATE VECTORS UPDATED BY CONIC EQS.
013791,000042:
013792,000043: # 5. HALF MAGNITUDE UNIT LOS VECTOR (IN STABLE MEMBER COORDINATES) AND
013793,000044: # HALF MAGNITUDE UNIT SPACECRAFT AXIS VECTOR (IN BODY COORDINATES)
013794,000045: # PREPARED FOR VECPOINT.
013795,000046:
013796,000047: # 6. GIMBAL ANGLES FROM VECPOINT TRANSFORMED INTO FDAI BALL ANGLES BY
013797,000048: # BALLANGS. FLASH DISPLAY V 06 N 18 AND AWAIT RESPONSE.
013798,000049:
013799,000050: # 7. RECYCLE - RETURN TO STEP 4.
013800,000051: # TERMINATE - EXIT R63.
013801,000052: # PROCEED - RESET 3AXISFLG AND CALL R60LEM FOR ATTITUDE MANEUVER.
013802,000053:
013803,000054: # CALLING SEQUENCE: V 89 E.
013804,000055:
013805,000056: # SUBROUTINES CALLED: CHKPOOH, R02BOTH, GOXDSPF, CSMCONIC, LEMCONIC,
013806,000057: # VECPOINT, BALLANGS, R60LEM.
013807,000058:
013808,000059: # NORMAL EXIT MODES: TC ENDEXT
013809,000060:
013810,000061: # ALARMS: 1. OPERATOR ERROR IF NOT IN P00.
013811,000062: # 2. PROGRAM ALARM IF IMU IS OFF.
013812,000063: # 3. PROGRAM ALARM IF IMU ORIENTATION IS UNKNOWN.
013813,000064:
013814,000065: # OUTPUT: NONE
013815,000066:
013816,000067: # ERASABLE INITIALIZATION REQUIRED: NONE
013817,000068:
013818,000069: # DEBRIS: OPTION1, +1, TDEC1, POINTVSM, SCAXIS, CPHI, CTHETA, CPSI,
Page 339 |
013820,000071: # 3AXISFLG.
013821,000072:
013822,000073: 06,3715 E4,1606 EBANK= RONE
013823,000074: 32,2217 BANK 32
013824,000075: 26,2000 SETLOC BAWLANGS
013825,000076: 26,2000 BANK
013826,000077:
013827,000078: 26,2022 COUNT* $$/R63
013828,000079: 26,2022 04616 V89CALL TC BANKCALL # IMU STATUS CHECK. RETURNS IF ORIENTATION
013829,000080: 26,2023 11254 CADR R02BOTH # KNOWN. ALARMS IF NOT.
013830,000081: 26,2024 36245 CAF THREE # ALLOW ASTRONAUT TO SELECT DESIRED
013831,000082: 26,2025 55051 TS OPTIONX # TRACKING ATTITUDE AXIS.
013832,000083: 26,2026 34753 CAF ONE
013833,000084: 26,2027 55052 TS OPTIONX +1
013834,000085: 26,2030 32117 CAF VB04N12 # V 04 N 12
013835,000086: 26,2031 04616 TC BANKCALL
013836,000087: 26,2032 20476 CADR GOFLASH
013837,000088: 26,2033 05472 TC ENDEXT # TERMINATE
013838,000089: 26,2034 02036 TC +2 # PROCEED
013839,000090: 26,2035 02030 TC -5 # DATA IN. OPTION1+1 = 1 FOR Z AXIS
013840,000091: 26,2036 06037 V89RECL TC INTPRET # = 2 FOR X AXIS
013841,000092: 26,2037 43234 RTB DAD
013842,000093: 26,2040 21573 LOADTIME # READ PRESENT TIME
013843,000094: 26,2041 14122 DP1MIN
013844,000095: 26,2042 02205 STORE TSTART82 # SAVE TIME FOR LEMCONIC CALL
013845,000096: 26,2043 34041 STCALL TDEC1 # STORE TIME FOR CSMCONIC CALL
013846,000097: 26,2044 27066 CSMCONIC # CSM STATE VECTOR UPDATE
013847,000098: 26,2045 77775 VLOAD # CSMCONIC LEFT R VECTOR IN RATT
013848,000099: 26,2046 00001 RATT
013849,000100: 26,2047 16207 STODL RONE # SAVE FOR LINE OF SIGHT (LOS) COMPUTATION
013850,000101: 26,2050 02205 TSTART82
013851,000102: 26,2051 34041 STCALL TDEC1 # STORE TIME FOR LEMCONIC CALL
013852,000103: 26,2052 27100 LEMCONIC # LEM STATE VECTOR UPDATE
013853,000104: 26,2053 52375 VLOAD VSU # CSM POSITION - LEM POSITION = LOS
013854,000105: 26,2054 02207 RONE # LOS VECTOR LEFT IN MPAC
013855,000106: 26,2055 00001 RATT
013856,000107: 26,2056 47121 MXV RTB # (REFSMMAT X LOS). TRANSFORMS LOS FROM
013857,000108: 26,2057 01734 REFSMMAT # REFERENCE COORD TO STAB MEMB COORD.
013858,000109: 26,2060 21726 NORMUNIT
013859,000110: 26,2061 03773 STORE POINTVSM # STORE LOS FOR VECPOINT CALL
013860,000111: 26,2062 77776 EXIT
013861,000112: 26,2063 41052 CS OPTIONX +1 # 1 FOR Z AXIS. 2 FOR X AXIS.
013862,000113: 26,2064 64753 AD ONE
013863,000114: 26,2065 00006 EXTEND
013864,000115: 26,2066 12113 BZF ALINEZ
013865,000116: 26,2067 06037 ALINEX TC INTPRET # X AXIS ALIGNMENT
013866,000117: 26,2070 77775 VLOAD
013867,000118: 26,2071 06520 UNITX # READ (.5, 0, 0)
Page 340 |
013869,000120: 26,2072 37765 V89CALL1 STCALL SCAXIS # STORE SELECTED ALIGNMENT AXIS
013870,000121: 26,2073 56040 VECPOINT # PUTS DESIRED GIM ANG (OG,IG,MG) IN TMPAC
013871,000122: 26,2074 00322 STORE CPHI # STORE GIMBAL ANGLES FOR BALLANGS CALL.
013872,000123: 26,2075 77776 EXIT
013873,000124: 26,2076 04616 TC BANKCALL
013874,000125: 26,2077 54266 CADR BALLANGS # PUTS DESIRED BALL ANGLES IN FDAIX,Y,Z
013875,000126: 26,2100 32120 CAF VB06N18 # V 06 N 18
013876,000127: 26,2101 04616 TC BANKCALL # NOUN 18 REFERS TO FDAIX,Y,Z
013877,000128: 26,2102 20476 CADR GOFLASH
013878,000129: 26,2103 05472 TC ENDEXT # TERMINATE
013879,000130: 26,2104 02106 TC +2 # PROCEED
013880,000131: 26,2105 02036 TC V89RECL # RECYCLE
013881,000132: 26,2106 05516 TC DOWNFLAG # RESET 3 AXIS FLAG
013882,000133: 26,2107 00124 ADRES 3AXISFLG # RESET BIT6 FLAG WORD 5
013883,000134: 26,2110 04616 TC BANKCALL # PERFORMS LEM MANEUVER TO ALIGN SELECTED
013884,000135: 26,2111 54123 CADR R60LEM # SPACECRAFT AXIS TO CSM.
013885,000136: 26,2112 15472 TCF ENDEXT # TERMINATE R63
013886,000137:
013887,000138: 26,2113 06037 ALINEZ TC INTPRET # Z AXIS ALIGNMENT
013888,000139: 26,2114 52175 VLOAD GOTO
013889,000140: 26,2115 06514 UNITZ # READ (0, 0, .5)
013890,000141: 26,2116 54072 V89CALL1
013891,000142:
013892,000143: 26,2117 01014 VB04N12 VN 412
013893,000144: 26,2120 01422 VB06N18 VN 0618
Page 341 |
013895,000146: 26,2121 00000 13560 DP1MIN 2DEC 6000 B-28
013896,000147:
End of include-file R63.agc. Parent file is MAIN.agc