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 '##'. |
002093,000002: ## Copyright: Public domain.
002094,000003: ## Filename: INPUT_OUTPUT_CHANNEL_BIT_DESCRIPTIONS.agc
002095,000004: ## Purpose: A section of the reconstructed source code for Luminary 130.
002096,000005: ## This was the original program released for the Apollo 13 LM,
002097,000006: ## although several more revisions would follow. It has been
002098,000007: ## reconstructed from a listing of Luminary 131, from which it
002099,000008: ## differs on only two lines in P70-P71. The difference is
002100,000009: ## described in detail in Luminary memo #129, which was used
002101,000010: ## to perform the reconstruction. This file is intended to be a
002102,000011: ## faithful reconstruction, except that the code format has been
002103,000012: ## changed to conform to the requirements of the yaYUL assembler
002104,000013: ## rather than the original YUL assembler.
002105,000014: ## Reference: pp. 54-60
002106,000015: ## Contact: Ron Burkey <info@sandroid.org>.
002107,000016: ## Website: www.ibiblio.org/apollo/index.html
002108,000017: ## Mod history: 04/23/03 RSB. Began.
002109,000018: ## 05/14/05 RSB Corrected website reference above.
002110,000019: ## 2017-01-06 RSB Page numbers now agree with those on the
002111,000020: ## original hardcopy, as opposed to the PDF page
002112,000021: ## numbers in 1701.pdf.
002113,000022: ## 2017-02-12 RSB Proofed comment text using octopus/ProoferComments.
002114,000023: ## 2017-03-02 RSB OUT0 --> OUTO.
002115,000024: ## 2018-09-04 MAS Copied from Luminary 131 for Luminary 130.
002116,000025:
Page 54 |
002118,000027:
002119,000028: # *** CHANNEL DESCRIPTIONSF WORDS ARE ALLOCATED IN ERASABLE ASSIGNMENTS ***
002120,000029:
002121,000030: # CHANNEL 1 IDENTICAL TO COMPUTER REGISTER L (0001)
002122,000031:
002123,000032: # CHANNEL 2 IDENTICAL TO COMPUTER REGISTER Q (0002)
002124,000033:
002125,000034: # CHANNEL 3 HISCALAR; INPUT CHANNEL; MOST SIGNIFICANT 14 BITS FROM 33 STAGE BINARY COUNTER. SCALE
002126,000035: # FACTOR IS B23 IN CSEC, SO MAX VALUE ABOUT 23.3 HOURS AND LEAST SIGNIFICANT BIT 5.12 SECS.
002127,000036:
002128,000037: # CHANNEL 4 LOSCALAR; INPUT CHANNEL; NEXT MOST SIGNIFICANT 14 BITS FROM THE 33 STAGE BINARY COUNTER
002129,000038: # ASSOCIATED WITH CHANNEL 3. SCALE FACTOR IS B9 IN CSEC. SO MAX VAL IS 5.12 SEC AND LEAST
002130,000039: # SIGNIFICANT BIT IS 1/3200 SEC. SCALE FACTOR OF D.P. WORD WITH CHANNEL 3 IS B23 CSEC.
002131,000040:
002132,000041: # CHANNEL 5 PYJETS; OUTPUT CHANNEL; PITCH RCS JET CONTROL. (REACTION CONTROL SYSTEM) USES BITS 1-8.
002133,000042:
002134,000043: # CHANNEL 6 ROLLJETS; OUTPUT CHANNEL; ROLL RCS JET CONTROL. (REACTION CONTROL SYSTEM) USES BIT 1-8.
002135,000044:
002136,000045: # CHANNEL 7 SUPERBNK; OUTPUT CHANNEL; NOT RESET BY RESTART; FIXED EXTENSION BITS USED TO SELECT THE
002137,000046: # APPROPRIATE FIXED MEMORY BANK IF FBANK IS 30 OCTAL OR MORE. USES BITS 5-7.
002138,000047:
002139,000048: # CHANNEL 10 OUTO; OUTPUT CHANNEL; REGISTER USED TO TRANSMIT LATCHING-RELAY DRIVING INFORMATION FOR
002140,000049: # THE DISPLAY SYSTEM. BITS 15-12 ARE SET TO THE ROW NUMBER (1-14 OCTAL) OF THE RELAY TO BE
002141,000050: # CHANGED AND BITS 11-1 CONTAIN THE REQUIRED SETTINGS FOR THE RELAYS IN THE ROW.
002142,000051:
002143,000052: # CHANNEL 11 DSALMOUT; OUTPUT CHANNEL; REGISTER WHOSE BITS ARE USED FOR ENGINE ON-OFF CONTROL AND TO
002144,000053: # DRIVE INDIVIDUAL INDICATORS OF THE DISPLAY SYSTEM. BITS 1-7 ARE A RELAYS.
002145,000054:
002146,000055: # BIT 1 ISS WARNING
002147,000056: # BIT 2 LIGHT COMPUTER ACTIVITY LAMP
002148,000057: # BIT 3 LIGHT UPLINK ACTIVITY LAMP
002149,000058: # BIT 4 LIGHT TEMP CAUTION LAMP
002150,000059: # BIT 5 LIGHT KEYBOARD RELEASE LAMP
002151,000060: # BIT 6 FLASH VERB AND NOUN LAMPS
002152,000061: # BIT 7 LIGHT OPERATOR ERROR LAMP
Page 55 |
002154,000063: # BIT 8 SPARE
002155,000064: # BIT 9 TEST CONNECTOR OUTBIT
002156,000065: # BIT 10 CAUTION RESET
002157,000066: # BIT 11 SPARE
002158,000067: # BIT 12 SPARE
002159,000068: # BIT 13 ENGINE ON
002160,000069: # BIT 14 ENGINE OFF
002161,000070: # BIT 15 SPARE
002162,000071:
002163,000072: # CHANNEL 12 CHAN12; OUTPUT CHANNEL; BITS USED TO DRIVE NAVIGATION AND SPAECRAFT HARDWARE
002164,000073:
002165,000074: # BIT 1 ZERO RR CDU; CDU'S GIVE RRADAR INFORMATION FOR LM
002166,000075: # BIT 2 ENABLE CDU RADAR ERROR COUNTERS
002167,000076: # BIT 3 NOT USED
002168,000077: # BIT 4 COARSE ALIGN ENABLE OF IMU
002169,000078: # BIT 5 ZERO IMU CDU'S
002170,000079: # BIT 6 ENABLE IMU ERROR COUNTER, CDU ERROR COUNTER.
002171,000080: # BIT 7 SPARE
002172,000081: # BIT 8 DISPLAY INERTIAL DATA
002173,000082: # BIT 9 -PITCH GIMBAL TRIM (BELL MOTION) DESCENT ENGINE
002174,000083: # BIT 10 +PITCH GIMBAL TRIM (BELL MOTION) DESCENT ENGINE
002175,000084: # BIT 11 -ROLL GIMBAL TRIM (BELL MOTION) DESCENT ENGINE
002176,000085: # BIT 12 +ROLL GIMBAL TRIM (BELL MOTION) DESCENT ENGINE
002177,000086: # BIT 13 LR POSITION 2 COMMAND
002178,000087: # BIT 14 ENABLE RENDESVOUS RADAR LOCK-ON; AUTO ANGLE TRACK'G
002179,000088: # BIT 15 ISS TURN ON DELAY COMPLETE
002180,000089:
Page 56 |
002182,000091: # CHANNEL 13 CHAN13; OUTPUT CHANNEL
002183,000092:
002184,000093: # BIT 1 RADAR C PROPER SETTING OF THE A,B,C MATRIX
002185,000094: # BIT 2 RADAR B SELECTS CERTAIN RADAR
002186,000095: # BIT 3 RADAR A PARAMETERS TO BE READ.
002187,000096: # BIT 4 RADAR ACTIVITY
002188,000097: # BIT 5 NOT USED (CONNECTS AN ALTERNATE INPUT TO UPLINK)
002189,000098: # BIT 6 SPARE
002190,000099: # BIT 7 DOWNLINK TELEMETRY WORD ORDER CODE BIT
002191,000100: # BIT 8 RHC COUNTER ENABLE (READ HAND CONTROLLER ANGLES)
002192,000101: # BIT 9 START RHC READ INTO COUNTERS IF BIT 8 SET
002193,000102: # BIT 10 TEST ALARMS, TEST DSKY LIGHTS
002194,000103: # BIT 11 ENABLE STANDBY
002195,000104: # BIT 12 RESET TRAP 31-A ALWAYS APPEAR TO BE SET TO 0
002196,000105: # BIT 13 RESET TRAP 31-B ALWAYS APPEAR TO BE SET TO 0
002197,000106: # BIT 14 RESET TRAP 32 ALWAYS APPEAR TO BE SET TO 0
002198,000107: # BIT 15 ENABLE T6 RUPT
002199,000108:
002200,000109: # CHANNEL 14 CHAN14; OUTPUT CHANNEL; USED TO CONTROL COMPUTER COUNTER CELLS (CDU, GYRO, SPACECRAFT FUNC.
002201,000110:
002202,000111: # BIT 1 OUTLINK ACTIVITY (NOT USED)
002203,000112: # BIT 2 ALTITUDE RATE OR ALTITIDE SELECTOR
002204,000113: # BIT 3 ALTITUDE METER ACTIVITY
002205,000114: # BIT 4 THRUST DRIVE ACTIVITY FOR DESCENT ENGINE
002206,000115: # BIT 5 SPARE
002207,000116: # BIT 6 GYRO ENABLE POWER FOR PULSES
002208,000117: # BIT 7 GYRO SELECT B PAIR OF BITS IDENTIFIES AXIS OF -
002209,000118: # BIT 8 GYRO SELECT A GYRO SYSTEM TO BE TORQUED.
002210,000119: # BIT 9 GYRO TORQUING COMMAND IN NEGATIVE DIRECTION
Page 57 |
002212,000121: # BIT 10 GYRO ACTIVITY
002213,000122: # BIT 11 DRIVE CDU S
002214,000123: # BIT 12 DRIVE CDU T
002215,000124: # BIT 13 DRIVE CDU Z
002216,000125: # BIT 14 DRIVE CDU Y
002217,000126: # BIT 15 DRIVE CDU X
002218,000127:
002219,000128: # CHANNEL 15 MNKEYIN; INPUT CHANNEL; KEY CODE INPUT FROM KEYBOARD OF DSKY, SENSED BY PROGRAM WHEN
002220,000129: # PROGRAM INTERRUPT #5 IS RECEIVED. USES BITS 5-1
002221,000130:
002222,000131: # CHANNEL 16 NAVKEYIN; INPUT CHANNEL; OPTICS MARK INFORMATION AND NAVIGA ION PANEL DSKY (CM) OR THRUST
002223,000132: # CONTROL (LM) SENSED BY PROGRAM WHEN PROGRAM INTER-RUPT #6 IS RECEIVED. USES BITS 3-7 ONLY.
002224,000133:
002225,000134: # BIT 1 NOT ASSIGNED
002226,000135: # BIT 2 NOT ASSIGNED
002227,000136: # BIT 3 OPTICS X-AXIS MARK SIGNAL FOR ALIGN OPTICAL TSCOPE
002228,000137: # BIT 4 OPTICS Y-AXIS MARK SIGNAL FOR AOT
002229,000138: # BIT 5 OPTICS MARK REJECT SIGNAL
002230,000139: # BIT 6 DESCENT+ ; CREW DESIRED SLOWING RATE OF DESCENT
002231,000140: # BIT 7 DESCENT- ; CREW DESIRED SPEEDING UP RATE OF D'CENT
002232,000141:
002233,000142: # NOTE: ALL BITS IN CHANNELS 30-33 ARE INVERTED AS SENSED BY THE PROGRAM, SO THAT A VALUE OF ZERO MEANS
002234,000143: # THAT THE INDICATED SIGNAL IS PRESENT.
002235,000144:
002236,000145: # CHANNEL 30 INPUT CHANNEL
002237,000146:
002238,000147: # BIT 1 ABORT WITH DESCENT STAGE
002239,000148: # BIT 2 UNUSED
002240,000149: # BIT 3 ENGINE ARMED SIGNAL
002241,000150: # BIT 4 ABORT WITH ASCENT ENGINE STAGE
002242,000151: # BIT 5 AUTO THROTTLE; COMPUTER CONTROL OF DESCENT ENGINE
Page 58 |
002244,000153: # BIT 6 DISPLAY INERTIAL DATA
002245,000154: # BIT 7 RR CDU FAIL
002246,000155: # BIT 8 SPARE
002247,000156: # BIT 9 IMU OPERATE WITH NO MALFUNCTION
002248,000157: # BIT 10 LM COMPUTER (NOT AGS) HAS CONTROL OF LM
002249,000158: # BIT 11 IMU CAGE COMMAND TO DRIVE IMU GIMBAL ANGLES TO 0.
002250,000159: # BIT 12 IMU CDU FAIL (MALFUNCTION OF IMU CDU,S)
002251,000160: # BIT 13 IMU FAIL (MALFUNCTION OF IMU STABILIZATION LOOPS)
002252,000161: # BIT 14 ISS TURN ON REQUESTED
002253,000162: # BIT 15 TEMPERATURE OF STABLE MEMBER WITHIN DESIGN LIMITS
002254,000163:
002255,000164: # CHANNEL 31 INPUT CHANNEL; BITS ASSOCIATED WITH THE ATTITUDE CONTROLLER, TRANSLATIONAL CONTROLLER,
002256,000165: # AND SPACECRAFT ATTITUDE CONTROL; USED BY RCS DAP
002257,000166:
002258,000167: # BIT 1 ROTATION (BY RHC) COMMANDED IN POSITIVE PITCH DIRECTION; MUST BE IN MINIMUM IMPULSE MODE.
002259,000168: # ALSO POSITIVE ELEVATION CHANGE FOR LANDING POINT DESIGNATOR
002260,000169: # BIT 2 AS BIT 1 EXCEPT NEGATIVE PITCH AND ELEVATION
002261,000170: # BIT 3 ROTATION (BY RHC) COMMANDED IN POSITIVE YAW DIRECTION; MUST BE IN MINUMUM IMPULSE MODE.
002262,000171: # BIT 4 AS BIT 3 EXCEPT NEGATIVE YAW
002263,000172: # BIT 5 ROTATION (BY RHC) COMMANDED IN POSITIVE ROLL DIRECTION; MUST BE IN MINIMUM IMPULSE MODE.
002264,000173: # ALSO POSITIVE AZIMUTH CHANGE FOR LANDING POINT DESIGNATOR
002265,000174: # BIT 6 AS BIT 5 EXCEPT NEGATIVE ROLL AND AZIMUTH
002266,000175: # BIT 7 TRANSLATION IN +X DIRECTION COMMANDED BY THC
002267,000176: # BIT 8 TRANSLATION IN -X DIRECTION COMMANDED BY THC
002268,000177: # BIT 9 TRANSLATION IN +Y DIRECTION COMMANDED BY THC
002269,000178: # BIT 10 TRANSLATION IN -Y DIRECTION COMMANDED BY THC
002270,000179: # BIT 11 TRANSLATION IN +Z DIRECTION COMMANDED BY THC
002271,000180: # BIT 12 TRANSLATION IN -Z DIRECTION COMMANDED BY THC
Page 59 |
002273,000182: # BIT 13 ATTITUDE HOLD MODE ON SCS MODE CONTROL SWITCH
002274,000183: # BIT 14 AUTO STABILIZATION OF ATTITUDE ON SCS MODE SWITCH
002275,000184: # BIT 15 ATTITUDE CONTROL OUT OF DETENT (RHC NOT IN NEUTRAL
002276,000185:
002277,000186: # CHANNEL 32 INPUT CHANNEL.
002278,000187:
002279,000188: # BIT 1 THRUSTERS 2 & 4 DISABLED BY CREW
002280,000189: # BIT 2 THRUSTERS 5 & 8 DISABLED BY CREW
002281,000190: # BIT 3 THRUSTERS 1 & 3 DISABLED BY CREW
002282,000191: # BIT 4 THRUSTERS 6 & 7 DISABLED BY CREW
002283,000192: # BIT 5 THRUSTERS 14 & 16 DISABLED BY CREW
002284,000193: # BIT 6 THRUSTERS 13 & 15 DISABLED BY CREW
002285,000194: # BIT 7 THRUSTERS 9 & 12 DISABLED BY CREW
002286,000195: # BIT 8 THRUSTERS 10 & 11 DISABLED BY CREW
002287,000196: # BIT 9 DESCENT ENGINE GIMBALS DISABLED BY CREW
002288,000197: # BIT 10 APPARENT DESCENT ENGINE GIMBAL FAILURE
002289,000198: # BIT 14 INDICATES PROCEED KEY IS DEPRESSED
002290,000199:
002291,000200: # CHANNEL 33 CHAN33; INPUT CHANNEL; FOR HARDWARE STATUS AND COMMAND INFORMATION. BITS 15-11 ARE FLIP-
002292,000201: # FLOP BITS RESET BY A CHANNEL "WRITE" COMMAND THAT ARE RESET BY A RESTART & BY T4RUPT LOOP.
002293,000202:
002294,000203: # BIT 1 SPARE
002295,000204: # BIT 2 RR AUTO-POWER ON
002296,000205: # BIT 3 RR RANGE LOW SCALE
002297,000206: # BIT 4 RR DATA GOOD
002298,000207: # BIT 5 LR RANGE DATA GOOD
002299,000208: # BIT 6 LR POS1
002300,000209: # BIT 7 LR POS2
Page 60 |
002302,000211: # BIT 8 LR VEL DATA GOOD
002303,000212: # BIT 9 LR RANGE LOW SCALE
002304,000213: # BIT 10 BLOCK UPLINK INPUT
002305,000214: # BIT 11 UPLINK TOO FAST
002306,000215: # BIT 12 DOWNLINK TOO FAST
002307,000216: # BIT 13 PIPA FAIL
002308,000217: # BIT 14 WARNING OF REPEATED ALARMS: RESTART, COUNTER FAIL, VOLTAGE FAIL, AND SCALAR DOUBLE.
002309,000218: # BIT 15 LGC OSCILLATOR STOPPED
002310,000219:
002311,000220: # CHANNEL 34 DNT M1; OUTPUT CHANNEL; DOWNLINK 1 FIRST OF TWO WORDS SERIALIZATION.
002312,000221:
002313,000222: # CHANNEL 35 DNT M2; OUTPUT CHANNEL DOWNLINK 2 SOCOND OF TWO WORDS SERIALIZATION.
002314,000223:
002315,000224:
End of include-file INPUT_OUTPUT_CHANNEL_BIT_DESCRIPTIONS.agc. Parent file is MAIN.agc