Source Code

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

The reconstruction began with reconstructed source code for Luminary 97. Changes between revisions 96 and 97 were backed out, as described by anomal report LNY-59. transcribed from a digitized copy of that program. The reconstruction was verified by matching memory-bank checksums to those listed in drawing 2021152D. 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 96 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.

001988,000002:                                                                                                  ## Copyright:   Public domain.
001989,000003:                                                                                                  ## Filename:    INPUT_OUTPUT_CHANNEL_BIT_DESCRIPTIONS.agc
001990,000004:                                                                                                  ## Purpose:     A section of Luminary revision 96.
001991,000005:                                                                                                  ##              It is part of the reconstructed source code for the
001992,000006:                                                                                                  ##              original release of the flight software for the Lunar 
001993,000007:                                                                                                  ##              Module's (LM) Apollo Guidance Computer (AGC) for Apollo 11.
001994,000008:                                                                                                  ##              The code has been recreated from a previously reconstructed
001995,000009:                                                                                                  ##              copy of Luminary 97 by undoing changes described in anomaly
001996,000010:                                                                                                  ##              report LNY-59. The code has been adapted such that the
001997,000011:                                                                                                  ##              resulting bugger words exactly match those specified for
001998,000012:                                                                                                  ##              Luminary 96 in NASA drawing 2021152D, which gives relatively
001999,000013:                                                                                                  ##              high confidence that the reconstruction is correct.
002000,000014:                                                                                                  ## Reference:   pp. 54-60
002001,000015:                                                                                                  ## Assembler:   yaYUL
002002,000016:                                                                                                  ## Contact:     Ron Burkey <info@sandroid.org>.
002003,000017:                                                                                                  ## Website:     www.ibiblio.org/apollo/index.html
002004,000018:                                                                                                  ## Mod history: 2019-08-04 MAS  Created from Luminary 97.
002005,000019: 

Page 54

002007,000021: 
002008,000022:                                                                                                  #  *** CHANNEL DESCRIPTIONSF WORDS ARE ALLOCATED IN ERASABLE ASSIGNMENTS ***
002009,000023: 
002010,000024:                                                                                                  #  CHANNEL 1     IDENTICAL TO COMPUTER REGISTER L (0001)
002011,000025: 
002012,000026:                                                                                                  #  CHANNEL 2     IDENTICAL TO COMPUTER REGISTER Q (0002)
002013,000027: 
002014,000028:                                                                                                  #  CHANNEL 3     HISCALAR; INPUT CHANNEL; MOST SIGNIFICANT 14 BITS FROM 33 STAGE BINARY COUNTER. SCALE
002015,000029:                                                                                                  #                FACTOR IS B23 IN CSEC, SO MAX VALUE ABOUT 23.3 HOURS AND LEAST SIGNIFICANT BIT 5.12 SECS.
002016,000030: 
002017,000031:                                                                                                  #  CHANNEL 4     LOSCALAR; INPUT CHANNEL; NEXT MOST SIGNIFICANT 14 BITS FROM THE 33 STAGE BINARY COUNTER
002018,000032:                                                                                                  #                ASSOCIATED WITH CHANNEL 3. SCALE FACTOR IS B9 IN CSEC. SO MAX VAL IS 5.12 SEC AND LEAST
002019,000033:                                                                                                  #                SIGNIFICANT BIT IS 1/3200 SEC. SCALE FACTOR OF D.P. WORD WITH CHANNEL 3 IS B23 CSEC.
002020,000034: 
002021,000035:                                                                                                  #  CHANNEL 5     PYJETS;  OUTPUT CHANNEL; PITCH RCS JET CONTROL.  (REACTION CONTROL SYSTEM) USES BITS 1-8.
002022,000036: 
002023,000037:                                                                                                  #  CHANNEL 6     ROLLJETS; OUTPUT CHANNEL; ROLL RCS JET CONTROL.  (REACTION CONTROL SYSTEM) USES BIT 1-8.
002024,000038: 
002025,000039:                                                                                                  #  CHANNEL 7     SUPERBNK; OUTPUT CHANNEL; NOT RESET BY RESTART; FIXED EXTENSION BITS USED TO SELECT THE
002026,000040:                                                                                                  #                APPROPRIATE FIXED MEMORY BANK IF FBANK IS 30 OCTAL OR MORE.  USES BITS 5-7.
002027,000041: 
002028,000042:                                                                                                  #  CHANNEL 10    OUTO; OUTPUT CHANNEL; REGISTER USED TO TRANSMIT LATCHING-RELAY DRIVING INFORMATION FOR
002029,000043:                                                                                                  #                THE DISPLAY SYSTEM.  BITS 15-12 ARE SET TO THE ROW NUMBER (1-14 OCTAL) OF THE RELAY TO BE
002030,000044:                                                                                                  #                CHANGED AND BITS 11-1 CONTAIN THE REQUIRED SETTINGS FOR THE RELAYS IN THE ROW.
002031,000045: 
002032,000046:                                                                                                  #  CHANNEL 11    DSALMOUT; OUTPUT CHANNEL; REGISTER WHOSE BITS ARE USED FOR ENGINE ON-OFF CONTROL AND TO
002033,000047:                                                                                                  #                DRIVE INDIVIDUAL INDICATORS OF THE DISPLAY SYSTEM.  BITS 1-7 ARE A RELAYS.
002034,000048: 
002035,000049:                                                                                                  #                BIT 1           ISS WARNING
002036,000050:                                                                                                  #                BIT 2           LIGHT COMPUTER ACTIVITY LAMP
002037,000051:                                                                                                  #                BIT 3           LIGHT UPLINK ACTIVITY LAMP
002038,000052:                                                                                                  #                BIT 4           LIGHT TEMP CAUTION LAMP
002039,000053:                                                                                                  #                BIT 5           LIGHT KEYBOARD RELEASE LAMP
002040,000054:                                                                                                  #                BIT 6           FLASH VERB AND NOUN LAMPS
002041,000055:                                                                                                  #                BIT 7           LIGHT OPERATOR ERROR LAMP

Page 55

002043,000057:                                                                                                  #                BIT 8           SPARE
002044,000058:                                                                                                  #                BIT 9           TEST CONNECTOR OUTBIT
002045,000059:                                                                                                  #                BIT 10          CAUTION RESET
002046,000060:                                                                                                  #                BIT 11          SPARE
002047,000061:                                                                                                  #                BIT 12          SPARE
002048,000062:                                                                                                  #                BIT 13          ENGINE ON
002049,000063:                                                                                                  #                BIT 14          ENGINE OFF
002050,000064:                                                                                                  #                BIT 15          SPARE
002051,000065: 
002052,000066:                                                                                                  #  CHANNEL 12    CHAN12; OUTPUT CHANNEL; BITS USED TO DRIVE NAVIGATION AND SPAECRAFT HARDWARE
002053,000067: 
002054,000068:                                                                                                  #                BIT 1           ZERO RR CDU; CDU'S GIVE RRADAR INFORMATION FOR LM
002055,000069:                                                                                                  #                BIT 2           ENABLE CDU RADAR ERROR COUNTERS
002056,000070:                                                                                                  #                BIT 3           NOT USED
002057,000071:                                                                                                  #                BIT 4           COARSE ALIGN ENABLE OF IMU
002058,000072:                                                                                                  #                BIT 5           ZERO IMU CDU'S
002059,000073:                                                                                                  #                BIT 6           ENABLE IMU ERROR COUNTER, CDU ERROR COUNTER.
002060,000074:                                                                                                  #                BIT 7           SPARE
002061,000075:                                                                                                  #                BIT 8           DISPLAY INERTIAL DATA
002062,000076:                                                                                                  #                BIT 9           -PITCH GIMBAL TRIM (BELL MOTION) DESCENT ENGINE
002063,000077:                                                                                                  #                BIT 10          +PITCH GIMBAL TRIM (BELL MOTION) DESCENT ENGINE
002064,000078:                                                                                                  #                BIT 11          -ROLL GIMBAL TRIM (BELL MOTION) DESCENT ENGINE
002065,000079:                                                                                                  #                BIT 12          +ROLL GIMBAL TRIM (BELL MOTION) DESCENT ENGINE
002066,000080:                                                                                                  #                BIT 13          LR POSITION 2 COMMAND
002067,000081:                                                                                                  #                BIT 14          ENABLE RENDESVOUS RADAR LOCK-ON; AUTO ANGLE TRACK'G
002068,000082:                                                                                                  #                BIT 15          ISS TURN ON DELAY COMPLETE
002069,000083: 

Page 56

002071,000085:                                                                                                  #  CHANNEL 13    CHAN13; OUTPUT CHANNEL
002072,000086: 
002073,000087:                                                                                                  #                BIT 1           RADAR C         PROPER SETTING OF THE A,B,C MATRIX
002074,000088:                                                                                                  #                BIT 2           RADAR B         SELECTS CERTAIN RADAR
002075,000089:                                                                                                  #                BIT 3           RADAR A         PARAMETERS TO BE READ.
002076,000090:                                                                                                  #                BIT 4           RADAR ACTIVITY
002077,000091:                                                                                                  #                BIT 5           NOT USED (CONNECTS AN ALTERNATE INPUT TO UPLINK)
002078,000092:                                                                                                  #                BIT 6           BLOCK INPUTS TO UPLINK CELL
002079,000093:                                                                                                  #                BIT 7           DOWNLINK TELEMETRY WORD ORDER CODE BIT
002080,000094:                                                                                                  #                BIT 8           RHC COUNTER ENABLE (READ HAND CONTROLLER ANGLES)
002081,000095:                                                                                                  #                BIT 9           START RHC READ INTO COUNTERS IF BIT 8 SET
002082,000096:                                                                                                  #                BIT 10          TEST ALARMS, TEST DSKY LIGHTS
002083,000097:                                                                                                  #                BIT 11          ENABLE STANDBY
002084,000098:                                                                                                  #                BIT 12          RESET TRAP 31-A         ALWAYS APPEAR TO BE SET TO 0
002085,000099:                                                                                                  #                BIT 13          RESET TRAP 31-B         ALWAYS APPEAR TO BE SET TO 0
002086,000100:                                                                                                  #                BIT 14          RESET TRAP 32           ALWAYS APPEAR TO BE SET TO 0
002087,000101:                                                                                                  #                BIT 15          ENABLE T6 RUPT
002088,000102: 
002089,000103:                                                                                                  #  CHANNEL 14    CHAN14; OUTPUT CHANNEL; USED TO CONTROL COMPUTER COUNTER CELLS (CDU, GYRO, SPACECRAFT FUNC.
002090,000104: 
002091,000105:                                                                                                  #                BIT 1           OUTLINK ACTIVITY (NOT USED)
002092,000106:                                                                                                  #                BIT 2           ALTITUDE RATE OR ALTITIDE SELECTOR
002093,000107:                                                                                                  #                BIT 3           ALTITUDE METER ACTIVITY
002094,000108:                                                                                                  #                BIT 4           THRUST DRIVE ACTIVITY FOR DESCENT ENGINE
002095,000109:                                                                                                  #                BIT 5           SPARE
002096,000110:                                                                                                  #                BIT 6           GYRO ENABLE POWER FOR PULSES
002097,000111:                                                                                                  #                BIT 7           GYRO SELECT B           PAIR OF BITS IDENTIFIES AXIS OF -
002098,000112:                                                                                                  #                BIT 8           GYRO SELECT A           GYRO SYSTEM TO BE TORQUED.
002099,000113:                                                                                                  #                BIT 9           GYRO TORQUING COMMAND IN NEGATIVE DIRECTION

Page 57

002101,000115:                                                                                                  #                BIT 10          GYRO ACTIVITY
002102,000116:                                                                                                  #                BIT 11          DRIVE CDU S
002103,000117:                                                                                                  #                BIT 12          DRIVE CDU T
002104,000118:                                                                                                  #                BIT 13          DRIVE CDU Z
002105,000119:                                                                                                  #                BIT 14          DRIVE CDU Y
002106,000120:                                                                                                  #                BIT 15          DRIVE CDU X
002107,000121: 
002108,000122:                                                                                                  #  CHANNEL 15    MNKEYIN; INPUT CHANNEL; KEY CODE INPUT FROM KEYBOARD OF DSKY, SENSED BY PROGRAM WHEN
002109,000123:                                                                                                  #                PROGRAM INTERRUPT #5 IS RECEIVED.  USES BITS 5-1
002110,000124: 
002111,000125:                                                                                                  #  CHANNEL 16    NAVKEYIN; INPUT CHANNEL; OPTICS MARK INFORMATION AND NAVIGA ION PANEL DSKY (CM) OR THRUST
002112,000126:                                                                                                  #                CONTROL (LM) SENSED BY PROGRAM WHEN PROGRAM INTER-RUPT #6 IS RECEIVED.  USES BITS 3-7 ONLY.
002113,000127: 
002114,000128:                                                                                                  #                BIT 1           NOT ASSIGNED
002115,000129:                                                                                                  #                BIT 2           NOT ASSIGNED
002116,000130:                                                                                                  #                BIT 3           OPTICS X-AXIS MARK SIGNAL FOR ALIGN OPTICAL TSCOPE
002117,000131:                                                                                                  #                BIT 4           OPTICS Y-AXIS MARK SIGNAL FOR AOT
002118,000132:                                                                                                  #                BIT 5           OPTICS MARK REJECT SIGNAL
002119,000133:                                                                                                  #                BIT 6           DESCENT+ ; CREW DESIRED SLOWING RATE OF DESCENT
002120,000134:                                                                                                  #                BIT 7           DESCENT- ; CREW DESIRED SPEEDING UP RATE OF D'CENT
002121,000135: 
002122,000136:                                                                                                  #  NOTE: ALL BITS IN CHANNELS 30-33 ARE INVERTED AS SENSED BY THE PROGRAM, SO THAT A VALUE OF ZERO MEANS
002123,000137:                                                                                                  #  THAT THE INDICATED SIGNAL IS PRESENT.
002124,000138: 
002125,000139:                                                                                                  #  CHANNEL 30    INPUT CHANNEL
002126,000140: 
002127,000141:                                                                                                  #                BIT 1           ABORT WITH DESCENT STAGE
002128,000142:                                                                                                  #                BIT 2           UNUSED
002129,000143:                                                                                                  #                BIT 3           ENGINE ARMED SIGNAL
002130,000144:                                                                                                  #                BIT 4           ABORT WITH ASCENT ENGINE STAGE
002131,000145:                                                                                                  #                BIT 5           AUTO THROTTLE; COMPUTER CONTROL OF DESCENT ENGINE

Page 58

002133,000147:                                                                                                  #                BIT 6           DISPLAY INERTIAL DATA
002134,000148:                                                                                                  #                BIT 7           RR CDU FAIL
002135,000149:                                                                                                  #                BIT 8           SPARE
002136,000150:                                                                                                  #                BIT 9           IMU OPERATE WITH NO MALFUNCTION
002137,000151:                                                                                                  #                BIT 10          LM COMPUTER (NOT AGS) HAS CONTROL OF LM
002138,000152:                                                                                                  #                BIT 11          IMU CAGE COMMAND TO DRIVE IMU GIMBAL ANGLES TO 0.
002139,000153:                                                                                                  #                BIT 12          IMU CDU FAIL (MALFUNCTION OF IMU CDU,S)
002140,000154:                                                                                                  #                BIT 13          IMU FAIL (MALFUNCTION OF IMU STABILIZATION LOOPS)
002141,000155:                                                                                                  #                BIT 14          ISS TURN ON REQUESTED
002142,000156:                                                                                                  #                BIT 15          TEMPERATURE OF STABLE MEMBER WITHIN DESIGN LIMITS
002143,000157: 
002144,000158:                                                                                                  #  CHANNEL 31    INPUT CHANNEL; BITS ASSOCIATED WITH THE ATTITUDE CONTROLLER, TRANSLATIONAL CONTROLLER,
002145,000159:                                                                                                  #                AND SPACECRAFT ATTITUDE CONTROL; USED BY RCS DAP
002146,000160: 
002147,000161:                                                                                                  #                BIT 1           ROTATION (BY RHC) COMMANDED IN POSITIVE PITCH DIRECTION; MUST BE IN MINIMUM IMPULSE MODE.
002148,000162:                                                                                                  #                                ALSO POSITIVE ELEVATION CHANGE FOR LANDING POINT DESIGNATOR
002149,000163:                                                                                                  #                BIT 2           AS BIT 1 EXCEPT NEGATIVE PITCH AND ELEVATION
002150,000164:                                                                                                  #                BIT 3           ROTATION (BY RHC) COMMANDED IN POSITIVE YAW DIRECTION; MUST BE IN MINUMUM IMPULSE MODE.
002151,000165:                                                                                                  #                BIT 4           AS BIT 3 EXCEPT NEGATIVE YAW
002152,000166:                                                                                                  #                BIT 5           ROTATION (BY RHC) COMMANDED IN POSITIVE ROLL DIRECTION; MUST BE IN MINIMUM IMPULSE MODE.
002153,000167:                                                                                                  #                                ALSO POSITIVE AZIMUTH CHANGE FOR LANDING POINT DESIGNATOR
002154,000168:                                                                                                  #                BIT 6           AS BIT 5 EXCEPT NEGATIVE ROLL AND AZIMUTH
002155,000169:                                                                                                  #                BIT 7           TRANSLATION IN +X DIRECTION COMMANDED BY THC
002156,000170:                                                                                                  #                BIT 8           TRANSLATION IN -X DIRECTION COMMANDED BY THC
002157,000171:                                                                                                  #                BIT 9           TRANSLATION IN +Y DIRECTION COMMANDED BY THC
002158,000172:                                                                                                  #                BIT 10          TRANSLATION IN -Y DIRECTION COMMANDED BY THC
002159,000173:                                                                                                  #                BIT 11          TRANSLATION IN +Z DIRECTION COMMANDED BY THC
002160,000174:                                                                                                  #                BIT 12          TRANSLATION IN -Z DIRECTION COMMANDED BY THC

Page 59

002162,000176:                                                                                                  #                BIT 13          ATTITUDE HOLD MODE ON SCS MODE CONTROL SWITCH
002163,000177:                                                                                                  #                BIT 14          AUTO STABILIZATION OF ATTITUDE ON SCS MODE SWITCH
002164,000178:                                                                                                  #                BIT 15          ATTITUDE CONTROL OUT OF DETENT (RHC NOT IN NEUTRAL
002165,000179: 
002166,000180:                                                                                                  #  CHANNEL 32    INPUT CHANNEL.
002167,000181: 
002168,000182:                                                                                                  #                BIT 1           THRUSTERS 2 & 4 DISABLED BY CREW
002169,000183:                                                                                                  #                BIT 2           THRUSTERS 5 & 8 DISABLED BY CREW
002170,000184:                                                                                                  #                BIT 3           THRUSTERS 1 & 3 DISABLED BY CREW
002171,000185:                                                                                                  #                BIT 4           THRUSTERS 6 & 7 DISABLED BY CREW
002172,000186:                                                                                                  #                BIT 5           THRUSTERS 14 & 16 DISABLED BY CREW
002173,000187:                                                                                                  #                BIT 6           THRUSTERS 13 & 15 DISABLED BY CREW
002174,000188:                                                                                                  #                BIT 7           THRUSTERS 9 & 12 DISABLED BY CREW
002175,000189:                                                                                                  #                BIT 8           THRUSTERS 10 & 11 DISABLED BY CREW
002176,000190:                                                                                                  #                BIT 9           DESCENT ENGINE GIMBALS DISABLED BY CREW
002177,000191:                                                                                                  #                BIT 10          APPARENT DESCENT ENGINE GIMBAL FAILURE
002178,000192:                                                                                                  #                BIT 14          INDICATES PROCEED KEY IS DEPRESSED
002179,000193: 
002180,000194:                                                                                                  #  CHANNEL 33    CHAN33; INPUT CHANNEL; FOR HARDWARE STATUS AND COMMAND INFORMATION.  BITS 15-11 ARE FLIP-
002181,000195:                                                                                                  #                FLOP BITS RESET BY A CHANNEL "WRITE" COMMAND THAT ARE RESET BY A RESTART & BY T4RUPT LOOP.
002182,000196: 
002183,000197:                                                                                                  #                BIT 1           SPARE
002184,000198:                                                                                                  #                BIT 2           RR AUTO-POWER ON
002185,000199:                                                                                                  #                BIT 3           RR RANGE LOW SCALE
002186,000200:                                                                                                  #                BIT 4           RR DATA GOOD
002187,000201:                                                                                                  #                BIT 5           LR RANGE DATA GOOD
002188,000202:                                                                                                  #                BIT 6           LR POS1
002189,000203:                                                                                                  #                BIT 7           LR POS2

Page 60

002191,000205:                                                                                                  #                BIT 8           LR VEL DATA GOOD
002192,000206:                                                                                                  #                BIT 9           LR RANGE LOW SCALE
002193,000207:                                                                                                  #                BIT 10          BLOCK UPLINK INPUT
002194,000208:                                                                                                  #                BIT 11          UPLINK TOO FAST
002195,000209:                                                                                                  #                BIT 12          DOWNLINK TOO FAST
002196,000210:                                                                                                  #                BIT 13          PIPA FAIL
002197,000211:                                                                                                  #                BIT 14          WARNING OF REPEATED ALARMS: RESTART, COUNTER FAIL, VOLTAGE FAIL, AND SCALAR DOUBLE.
002198,000212:                                                                                                  #                BIT 15          LGC OSCILLATOR STOPPED
002199,000213: 
002200,000214:                                                                                                  #  CHANNEL 34    DNT M1; OUTPUT CHANNEL; DOWNLINK 1  FIRST OF TWO WORDS SERIALIZATION.
002201,000215:                                                                                                  #  CHANNEL 35    DNT M2; OUTPUT CHANNEL DOWNLINK 2 SOCOND OF TWO   WORDS SERIALIZATION.
002202,000216: 
002203,000217: 

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