Source Code
These source-code files are part of a reconstructed copy of Luminary 178, the
final release of the Apollo 14 Lunar Module (LM) Apollo Guidance Computer
(AGC) software.
The reconstruction began with source code of Zerlina 56, Luminary 210, and Luminary 131, previously transcribed from digitized copies of those programs. The code was created by combining the three, using Zerlina 56 as a base, since it was based off of Luminary 183. The differences between the three were carefully merged using the Luminary memos as a guide, with all changes made after Luminary 178 being backed out. The reconstruction was verified by matching memory-bank checksums to those listed in drawing 2021152N. Note that page numbers in the reconstructed code match those for the baseline log section mentioned in each file's changelog; the page numbers for a real Luminary 178 listing would be different. 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. |
002294,000002: ## Copyright: Public domain.
002295,000003: ## Filename: INPUT_OUTPUT_CHANNEL_BIT_DESCRIPTIONS.agc
002296,000004: ## Purpose: A section of Luminary revision 178.
002297,000005: ## It is part of the reconstructed source code for the final
002298,000006: ## release of the flight software for the Lunar Module's
002299,000007: ## (LM) Apollo Guidance Computer (AGC) for Apollo 14. The
002300,000008: ## code has been recreated from copies of Zerlina 56, Luminary
002301,000009: ## 210, and Luminary 131, as well as many Luminary memos.
002302,000010: ## It has been adapted such that the resulting bugger words
002303,000011: ## exactly match those specified for Luminary 178 in NASA
002304,000012: ## drawing 2021152N, which gives relatively high confidence
002305,000013: ## that the reconstruction is correct.
002306,000014: ## Reference: pp. 55-61
002307,000015: ## Assembler: yaYUL
002308,000016: ## Contact: Ron Burkey <info@sandroid.org>.
002309,000017: ## Website: www.ibiblio.org/apollo/index.html
002310,000018: ## Mod history: 2019-08-14 MAS Created from Zerlina 56.
002311,000019:
Page 55 |
002313,000021:
002314,000022:
002315,000023: # *** CHANNEL DESCRIPTIONSF WORDS ARE ALLOCATED IN ERASABLE ASSIGNMENTS ***
002316,000024:
002317,000025:
002318,000026: # CHANNEL 1 IDENTICAL TO COMPUTER REGISTER L (0001)
002319,000027:
002320,000028:
002321,000029: # CHANNEL 2 IDENTICAL TO COMPUTER REGISTER Q (0002)
002322,000030:
002323,000031:
002324,000032: # CHANNEL 3 HISCALAR; INPUT CHANNEL; MOST SIGNIFICANT 14 BITS FROM 33 STAGE BINARY COUNTER. SCALE
002325,000033: # FACTOR IS B23 IN CSEC, SO MAX VALUE ABOUT 23.3 HOURS AND LEAST SIGNIFICANT BIT 5.12 SECS.
002326,000034:
002327,000035:
002328,000036: # CHANNEL 4 LOSCALAR; INPUT CHANNEL; NEXT MOST SIGNIFICANT 14 BITS FROM THE 33 STAGE BINARY COUNTER
002329,000037: # ASSOCIATED WITH CHANNEL 3. SCALE FACTOR IS B9 IN CSEC. SO MAX VAL IS 5.12 SEC AND LEAST
002330,000038: # SIGNIFICANT BIT IS 1/3200 SEC. SCALE FACTOR OF D.P. WORD WITH CHANNEL 3 IS B23 CSEC.
002331,000039:
002332,000040:
002333,000041: # CHANNEL 5 PYJETS; OUTPUT CHANNEL; PITCH RCS JET CONTROL. (REACTION CONTROL SYSTEM) USES BITS 1-8.
002334,000042:
002335,000043:
002336,000044: # CHANNEL 6 ROLLJETS; OUTPUT CHANNEL; ROLL RCS JET CONTROL. (REACTION CONTROL SYSTEM) USES BIT 1-8.
002337,000045:
002338,000046:
002339,000047: # CHANNEL 7 SUPERBNK; OUTPUT CHANNEL; NOT RESET BY RESTART; FIXED EXTENSION BITS USED TO SELECT THE
002340,000048: # APPROPRIATE FIXED MEMORY BANK IF FBANK IS 30 OCTAL OR MORE. USES BITS 5-7.
002341,000049:
002342,000050:
002343,000051: # CHANNEL 10 OUTO; OUTPUT CHANNEL; REGISTER USED TO TRANSMIT LATCHING-RELAY DRIVING INFORMATION FOR
002344,000052: # THE DISPLAY SYSTEM. BITS 15-12 ARE SET TO THE ROW NUMBER (1-14 OCTAL) OF THE RELAY TO BE
002345,000053: # CHANGED AND BITS 11-1 CONTAIN THE REQUIRED SETTINGS FOR THE RELAYS IN THE ROW.
002346,000054:
002347,000055:
002348,000056: # CHANNEL 11 DSALMOUT; OUTPUT CHANNEL; REGISTER WHOSE BITS ARE USED FOR ENGINE ON-OFF CONTROL AND TO
002349,000057: # DRIVE INDIVIDUAL INDICATORS OF THE DISPLAY SYSTEM. BITS 1-7 ARE A RELAYS.
002350,000058:
002351,000059: # BIT 1 ISS WARNING
002352,000060:
002353,000061: # BIT 2 LIGHT COMPUTER ACTIVITY LAMP
002354,000062:
002355,000063: # BIT 3 LIGHT UPLINK ACTIVITY LAMP
002356,000064:
002357,000065: # BIT 4 LIGHT TEMP CAUTION LAMP
002358,000066:
002359,000067: # BIT 5 LIGHT KEYBOARD RELEASE LAMP
002360,000068:
002361,000069: # BIT 6 FLASH VERB AND NOUN LAMPS
002362,000070:
002363,000071: # BIT 7 LIGHT OPERATOR ERROR LAMP
002364,000072:
Page 56 |
002366,000074: # BIT 8 SPARE
002367,000075:
002368,000076: # BIT 9 TEST CONNECTOR OUTBIT
002369,000077:
002370,000078: # BIT 10 CAUTION RESET
002371,000079:
002372,000080: # BIT 11 SPARE
002373,000081:
002374,000082: # BIT 12 SPARE
002375,000083:
002376,000084: # BIT 13 ENGINE ON
002377,000085:
002378,000086: # BIT 14 ENGINE OFF
002379,000087:
002380,000088: # BIT 15 SPARE
002381,000089:
002382,000090:
002383,000091: # CHANNEL 12 CHAN12; OUTPUT CHANNEL; BITS USED TO DRIVE NAVIGATION AND SPAECRAFT HARDWARE
002384,000092:
002385,000093: # BIT 1 ZERO RR CDU; CDU'S GIVE RRADAR INFORMATION FOR LM
002386,000094:
002387,000095: # BIT 2 ENABLE CDU RADAR ERROR COUNTERS
002388,000096:
002389,000097: # BIT 3 NOT USED
002390,000098:
002391,000099: # BIT 4 COARSE ALIGN ENABLE OF IMU
002392,000100:
002393,000101: # BIT 5 ZERO IMU CDU'S
002394,000102:
002395,000103: # BIT 6 ENABLE IMU ERROR COUNTER, CDU ERROR COUNTER.
002396,000104:
002397,000105: # BIT 7 SPARE
002398,000106:
002399,000107: # BIT 8 DISPLAY INERTIAL DATA
002400,000108:
002401,000109: # BIT 9 -PITCH GIMBAL TRIM (BELL MOTION) DESCENT ENGINE
002402,000110:
002403,000111: # BIT 10 +PITCH GIMBAL TRIM (BELL MOTION) DESCENT ENGINE
002404,000112:
002405,000113: # BIT 11 -ROLL GIMBAL TRIM (BELL MOTION) DESCENT ENGINE
002406,000114:
002407,000115: # BIT 12 +ROLL GIMBAL TRIM (BELL MOTION) DESCENT ENGINE
002408,000116:
002409,000117: # BIT 13 LR POSITION 2 COMMAND
002410,000118:
002411,000119: # BIT 14 ENABLE RENDESVOUS RADAR LOCK-ON;AUTO ANGLE TRACK'G
002412,000120:
002413,000121: # BIT 15 ISS TURN ON DELAY COMPLETE
002414,000122:
002415,000123:
Page 57 |
002417,000125: # CHANNEL 13 CHAN13; OUTPUT CHANNEL
002418,000126:
002419,000127: # BIT 1 RADAR C PROPER SETTING OF THE A,B,C MATRIX
002420,000128: # BIT 2 RADAR B SELECTS CERTAIN RADAR
002421,000129: # BIT 3 RADAR A PARAMETERS TO BE READ.
002422,000130:
002423,000131: # BIT 4 RADAR ACTIVITY
002424,000132:
002425,000133: # BIT 5 NOT USED (CONNECTS AN ALTERNATE INPUT TO UPLINK)
002426,000134:
002427,000135: # BIT 6 SPARE
002428,000136:
002429,000137: # BIT 7 DOWNLINK TELEMETRY WORD ORDER CODE BIT
002430,000138:
002431,000139: # BIT 8 RHC COUNTER ENABLE (READ HAND CONTROLLER ANGLES)
002432,000140:
002433,000141: # BIT 9 START RHC READ INTO COUNTERS IF BIT 8 SET
002434,000142:
002435,000143: # BIT 10 TEST ALARMS, TEST DSKY LIGHTS
002436,000144:
002437,000145: # BIT 11 ENABLE STANDBY
002438,000146:
002439,000147: # BIT 12 RESET TRAP 31-A ALWAYS APPEAR TO BE SET TO 0
002440,000148:
002441,000149: # BIT 13 RESET TRAP 31-B ALWAYS APPEAR TO BE SET TO 0
002442,000150:
002443,000151: # BIT 14 RESET TRAP 32 ALWAYS APPEAR TO BE SET TO 0
002444,000152:
002445,000153: # BIT 15 ENABLE T6 RUPT
002446,000154:
002447,000155:
002448,000156: # CHANNEL 14 CHAN14; OUTPUT CHANNEL; USED TO CONTROL COMPUTER COUNTER CELLS (CDU,GYRO,SPACECRAFT FUNC.
002449,000157:
002450,000158: # BIT 1 OUTLINK ACTIVITY (NOT USED)
002451,000159:
002452,000160: # BIT 2 ALTITUDE RATE OR ALTITIDE SELECTOR
002453,000161:
002454,000162: # BIT 3 ALTITUDE METER ACTIVITY
002455,000163:
002456,000164: # BIT 4 THRUST DRIVE ACTIVITY FOR DESCENT ENGINE
002457,000165:
002458,000166: # BIT 5 SPARE
002459,000167:
002460,000168: # BIT 6 GYRO ENABLE POWER FOR PULSES
002461,000169:
002462,000170: # BIT 7 GYRO SELECT B PAIR OF BITS IDENTIFIES AXIS OF -
002463,000171: # BIT 8 GYRO SELECT A GYRO SYSTEM TO BE TORQUED.
002464,000172:
002465,000173: # BIT 9 GYRO TORQUING COMMAND IN NEGATIVE DIRECTION
002466,000174:
Page 58 |
002468,000176: # BIT 10 GYRO ACTIVITY
002469,000177:
002470,000178: # BIT 11 DRIVE CDU S
002471,000179:
002472,000180: # BIT 12 DRIVE CDU T
002473,000181:
002474,000182: # BIT 13 DRIVE CDU Z
002475,000183:
002476,000184: # BIT 14 DRIVE CDU Y
002477,000185:
002478,000186: # BIT 15 DRIVE CDU X
002479,000187:
002480,000188:
002481,000189: # CHANNEL 15 MNKEYIN; INPUT CHANNEL;KEY CODE INPUT FROM KEYBOARD OF DSKY, SENSED BY PROGRAM WHEN
002482,000190: # PROGRAM INTERRUPT #5 IS RECEIVED. USES BITS 5-1
002483,000191:
002484,000192:
002485,000193: # CHANNEL 16 NAVKEYIN; INPUT CHANNEL; OPTICS MARK INFORMATION AND NAVIGA ION PANEL DSKY (CM) OR THRUST
002486,000194: # CONTROL (LM) SENSED BY PROGRAM WHEN PROGRAM INTER-RUPT #6 IS RECEIVED. USES BITS 3-7 ONLY.
002487,000195:
002488,000196: # BIT 1 NOT ASSIGNED
002489,000197:
002490,000198: # BIT 2 NOT ASSIGNED
002491,000199:
002492,000200: # BIT 3 OPTICS X-AXIS MARK SIGNAL FOR ALIGN OPTICAL TSCOPE
002493,000201:
002494,000202: # BIT 4 OPTICS Y-AXIS MARK SIGNAL FOR AOT
002495,000203:
002496,000204: # BIT 5 OPTICS MARK REJECT SIGNAL
002497,000205:
002498,000206: # BIT 6 DESCENT+ ; CREW DESIRED SLOWING RATE OF DESCENT
002499,000207:
002500,000208: # BIT 7 DESCENT- ; CREW DESIRED SPEEDING UP RATE OF D'CENT
002501,000209:
002502,000210:
002503,000211: # NOTE: ALL BITS IN CHANNELS 30-33 ARE INVERTED AS SENSED BY THE PROGRAM, SO THAT A VALUE OF ZERO MEANS
002504,000212: # THAT THE INDICATED SIGNAL IS PRESENT.
002505,000213:
002506,000214:
002507,000215: # CHANNEL 30 INPUT CHANNEL
002508,000216:
002509,000217: # BIT 1 ABORT WITH DESCENT STAGE
002510,000218:
002511,000219: # BIT 2 UNUSED
002512,000220:
002513,000221: # BIT 3 ENGINE ARMED SIGNAL
002514,000222:
002515,000223: # BIT 4 ABORT WITH ASCENT ENGINE STAGE
002516,000224:
002517,000225: # BIT 5 AUTO THROTTLE; COMPUTER CONTROL OF DESCENT ENGINE
Page 59 |
002519,000227: # BIT 6 DISPLAY INERTIAL DATA
002520,000228:
002521,000229: # BIT 7 RR CDU FAIL
002522,000230:
002523,000231: # BIT 8 SPARE
002524,000232:
002525,000233: # BIT 9 IMU OPERATE WITH NO MALFUNCTION
002526,000234:
002527,000235: # BIT 10 LM COMPUTER (NOT AGS) HAS CONTROL OF LM
002528,000236:
002529,000237: # BIT 11 IMU CAGE COMMAND TO DRIVE IMU GIMBAL ANGLES TO 0.
002530,000238:
002531,000239: # BIT 12 IMU CDU FAIL (MALFUNCTION OF IMU CDU,S)
002532,000240:
002533,000241: # BIT 13 IMU FAIL (MALFUNCTION OF IMU STABILIZATION LOOPS)
002534,000242:
002535,000243: # BIT 14 ISS TURN ON REQUESTED
002536,000244:
002537,000245: # BIT 15 TEMPERATURE OF STABLE MEMBER WITHIN DESIGN LIMITS
002538,000246:
002539,000247:
002540,000248: # CHANNEL 31 INPUT CHANNEL; BITS ASSOCIATED WITH THE ATTITUDE CONTROLLER, TRANSLATIONAL CONTROLLER,
002541,000249: # AND SPACECRAFT ATTITUDE CONTROL; USED BY RCS DAP
002542,000250:
002543,000251: # BIT 1 ROTATION (BY RHC) COMMANDED IN POSITIVE PITCH DIRECTION; MUST BE IN MINIMUM IMPULSE MODE.
002544,000252: # ALSO POSITIVE ELEVATION CHANGE FOR LANDING POINT DESIGNATOR
002545,000253:
002546,000254: # BIT 2 AS BIT 1 EXCEPT NEGATIVE PITCH AND ELEVATION
002547,000255:
002548,000256: # BIT 3 ROTATION (BY RHC) COMMANDED IN POSITIVE YAW DIRECTION; MUST BE IN MINUMUM IMPULSE MODE.
002549,000257:
002550,000258: # BIT 4 AS BIT 3 EXCEPT NEGATIVE YAW
002551,000259:
002552,000260: # BIT 5 ROTATION (BY RHC) COMMANDED IN POSITIVE ROLL DIRECTION; MUST BE IN MINIMUM IMPULSE MODE.
002553,000261: # ALSO POSITIVE AZIMUTH CHANGE FOR LANDING POINT DESIGNATOR
002554,000262:
002555,000263: # BIT 6 AS BIT 5 EXCEPT NEGATIVE ROLL AND AZIMUTH
002556,000264:
002557,000265: # BIT 7 TRANSLATION IN +X DIRECTION COMMANDED BY THC
002558,000266:
002559,000267: # BIT 8 TRANSLATION IN -X DIRECTION COMMANDED BY THC
002560,000268:
002561,000269: # BIT 9 TRANSLATION IN +Y DIRECTION COMMANDED BY THC
002562,000270:
002563,000271: # BIT 10 TRANSLATION IN -Y DIRECTION COMMANDED BY THC
002564,000272:
002565,000273: # BIT 11 TRANSLATION IN +Z DIRECTION COMMANDED BY THC
002566,000274:
002567,000275: # BIT 12 TRANSLATION IN -Z DIRECTION COMMANDED BY THC
Page 60 |
002569,000277:
002570,000278: # BIT 13 ATTITUDE HOLD MODE ON SCS MODE CONTROL SWITCH
002571,000279:
002572,000280: # BIT 14 AUTO STABILIZATION OF ATTITUDE ON SCS MODE SWITCH
002573,000281:
002574,000282: # BIT 15 ATTITUDE CONTROL OUT OF DETENT (RHC NOT IN NEUTRAL
002575,000283:
002576,000284:
002577,000285: # CHANNEL 32 INPUT CHANNEL.
002578,000286:
002579,000287: # BIT 1 THRUSTERS 2 & 4 DISABLED BY CREW
002580,000288:
002581,000289: # BIT 2 THRUSTERS 5 & 8 DISABLED BY CREW
002582,000290:
002583,000291: # BIT 3 THRUSTERS 1 & 3 DISABLED BY CREW
002584,000292:
002585,000293: # BIT 4 THRUSTERS 6 & 7 DISABLED BY CREW
002586,000294:
002587,000295: # BIT 5 THRUSTERS 14 & 16 DISABLED BY CREW
002588,000296:
002589,000297: # BIT 6 THRUSTERS 13 & 15 DISABLED BY CREW
002590,000298:
002591,000299: # BIT 7 THRUSTERS 9 & 12 DISABLED BY CREW
002592,000300:
002593,000301: # BIT 8 THRUSTERS 10 & 11 DISABLED BY CREW
002594,000302:
002595,000303: # BIT 9 DESCENT ENGINE GIMBALS DISABLED BY CREW
002596,000304:
002597,000305: # BIT 10 APPARENT DESCENT ENGINE GIMBAL FAILURE
002598,000306:
002599,000307: # BIT 14 INDICATES PROCEED KEY IS DEPRESSED
002600,000308:
002601,000309:
002602,000310: # CHANNEL 33 CHAN33; INPUT CHANNEL; FOR HARDWARE STATUS AND COMMAND INFORMATION. BITS 15-11 ARE FLIP-
002603,000311: # FLOP BITS RESET BY A CHANNEL "WRITE" COMMAND THAT ARE RESET BY A RESTART & BY T4RUPT LOOP.
002604,000312:
002605,000313: # BIT 1 SPARE
002606,000314:
002607,000315: # BIT 2 RR AUTO-POWER ON
002608,000316:
002609,000317: # BIT 3 RR RANGE LOW SCALE
002610,000318:
002611,000319: # BIT 4 RR DATA GOOD
002612,000320:
002613,000321: # BIT 5 LR RANGE DATA GOOD
002614,000322:
002615,000323: # BIT 6 LR POS1
002616,000324:
002617,000325: # BIT 7 LR POS2
002618,000326:
Page 61 |
002620,000328: # BIT 8 LR VEL DATA GOOD
002621,000329:
002622,000330: # BIT 9 LR RANGE LOW SCALE
002623,000331:
002624,000332: # BIT 10 BLOCK UPLINK INPUT
002625,000333:
002626,000334: # BIT 11 UPLINK TOO FAST
002627,000335:
002628,000336: # BIT 12 DOWNLINK TOO FAST
002629,000337:
002630,000338: # BIT 13 PIPA FAIL
002631,000339:
002632,000340: # BIT 14 WARNING OF REPEATED ALARMS: RESTART,COUNTER FAIL, VOLTAGE FAIL,AND SCALAR DOUBLE.
002633,000341:
002634,000342: # BIT 15 LGC OSCILLATOR STOPPED
002635,000343:
002636,000344:
002637,000345: # CHANNEL 34 DNT M1; OUTPUT CHANNEL; DOWNLINK 1 FIRST OF TWO WORDS SERIALIZATION.
002638,000346: # CHANNEL 35 DNT M2; OUTPUT CHANNEL DOWNLINK 2 SOCOND OF TWO WORDS SERIALIZATION.
End of include-file INPUT_OUTPUT_CHANNEL_BIT_DESCRIPTIONS.agc. Parent file is MAIN.agc