# chrislgarry/apollo-11 architecture

> Architecture diagram of the GitHub repository chrislgarry/apollo-11, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-18). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/chrislgarry/apollo-11
- Repository: https://github.com/chrislgarry/apollo-11

## Overview

Apollo-11 is a transcription repository for the original Apollo Guidance Computer programs: Comanche 055 for the Command Module and Luminary 099 for the Lunar Module. The operational picture is crew interaction with an AGC program, which performs mission guidance and vehicle control and presents information through displays. The tree identifies these distinct capabilities, but the sampled source contains no AGC excerpts; therefore internal runtime links are shown as unverified dashed edges rather than asserted call chains. The repository README describes transcription provenance, not execution details.

Main entry points: [`Luminary099/P20-P25.agc`](https://github.com/chrislgarry/apollo-11/blob/master/Luminary099/P20-P25.agc) (Mission Programs), [`Comanche055/P20-P25.agc`](https://github.com/chrislgarry/apollo-11/blob/master/Comanche055/P20-P25.agc) (Mission Programs), [`Comanche055/EXECUTIVE.agc`](https://github.com/chrislgarry/apollo-11/blob/master/Comanche055/EXECUTIVE.agc) (Executive Scheduler), [`Comanche055/DISPLAY_INTERFACE_ROUTINES.agc`](https://github.com/chrislgarry/apollo-11/blob/master/Comanche055/DISPLAY_INTERFACE_ROUTINES.agc) (Crew Interface)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_cm["Command Module"]
  node_cm_program["Comanche 055<br/>[MAIN.agc]"]
  node_cm_input["Crew Interface"]
  node_cm_modes["Mission Programs<br/>[P20-P25.agc]"]
  node_cm_guidance["Guidance"]
  node_cm_navigation["Navigation"]
  node_cm_control["Flight Control"]
  node_cm_output["Displays and Telemetry"]
end

subgraph group_lm["Lunar Module"]
  node_lm_program["Luminary 099<br/>[MAIN.agc]"]
  node_lm_input["Crew Interface"]
  node_lm_modes["Mission Programs<br/>[P20-P25.agc]"]
  node_lm_guidance["Landing Guidance"]
  node_lm_navigation["Navigation<br/>[KALMAN_FILTER.agc]"]
  node_lm_control["Flight Control"]
  node_lm_output["Displays and Telemetry"]
end

subgraph group_runtime["AGC Runtime"]
  node_executive["Executive Scheduler<br/>[EXECUTIVE.agc]"]
  node_interpreter["Interpreter<br/>[INTERPRETER.agc]"]
  node_waitlist["Timed Tasks<br/>[WAITLIST.agc]"]
end

subgraph group_mission["Guidance and Control"]
  node_cm_orbit["Orbital Maneuvers<br/>[P30-P37.agc]"]
  node_lm_landing["Lunar Landing"]
  node_lm_ascent["Lunar Ascent"]
end

node_crew(("Crew"))

node_crew -.->|"inputs commands"| node_cm_input
node_crew -.->|"inputs commands"| node_lm_input
node_cm_program -.->|"schedules tasks"| node_executive
node_lm_program -.->|"schedules tasks"| node_executive
node_executive -.->|"dispatches work"| node_interpreter
node_executive -.->|"uses timing"| node_waitlist
node_cm_modes -.->|"uses guidance"| node_cm_guidance
node_cm_modes -.->|"uses navigation"| node_cm_navigation
node_cm_modes -.->|"commands vehicle"| node_cm_control
node_cm_modes -.->|"updates displays"| node_cm_output
node_cm_modes -.->|"includes maneuvers"| node_cm_orbit
node_cm_input -.->|"selects programs"| node_cm_modes
node_lm_modes -.->|"uses guidance"| node_lm_guidance
node_lm_modes -.->|"uses navigation"| node_lm_navigation
node_lm_modes -.->|"commands vehicle"| node_lm_control
node_lm_modes -.->|"updates displays"| node_lm_output
node_lm_modes -.->|"includes landing"| node_lm_landing
node_lm_modes -.->|"includes ascent"| node_lm_ascent
node_lm_input -.->|"selects programs"| node_lm_modes

click node_cm_program "https://github.com/chrislgarry/apollo-11/blob/master/Comanche055/MAIN.agc"
click node_cm_input "https://github.com/chrislgarry/apollo-11/blob/master/Comanche055/DISPLAY_INTERFACE_ROUTINES.agc"
click node_cm_modes "https://github.com/chrislgarry/apollo-11/blob/master/Comanche055/P20-P25.agc"
click node_cm_guidance "https://github.com/chrislgarry/apollo-11/blob/master/Comanche055/CONIC_SUBROUTINES.agc"
click node_cm_navigation "https://github.com/chrislgarry/apollo-11/blob/master/Comanche055/IMU_COMPENSATION_PACKAGE.agc"
click node_cm_control "https://github.com/chrislgarry/apollo-11/blob/master/Comanche055/CM_ENTRY_DIGITAL_AUTOPILOT.agc"
click node_cm_output "https://github.com/chrislgarry/apollo-11/blob/master/Comanche055/DOWN-TELEMETRY_PROGRAM.agc"
click node_lm_program "https://github.com/chrislgarry/apollo-11/blob/master/Luminary099/MAIN.agc"
click node_lm_input "https://github.com/chrislgarry/apollo-11/blob/master/Luminary099/DISPLAY_INTERFACE_ROUTINES.agc"
click node_lm_modes "https://github.com/chrislgarry/apollo-11/blob/master/Luminary099/P20-P25.agc"
click node_lm_guidance "https://github.com/chrislgarry/apollo-11/blob/master/Luminary099/LUNAR_LANDING_GUIDANCE_EQUATIONS.agc"
click node_lm_navigation "https://github.com/chrislgarry/apollo-11/blob/master/Luminary099/KALMAN_FILTER.agc"
click node_lm_control "https://github.com/chrislgarry/apollo-11/blob/master/Luminary099/P-AXIS_RCS_AUTOPILOT.agc"
click node_lm_output "https://github.com/chrislgarry/apollo-11/blob/master/Luminary099/DOWN_TELEMETRY_PROGRAM.agc"
click node_executive "https://github.com/chrislgarry/apollo-11/blob/master/Comanche055/EXECUTIVE.agc"
click node_interpreter "https://github.com/chrislgarry/apollo-11/blob/master/Comanche055/INTERPRETER.agc"
click node_waitlist "https://github.com/chrislgarry/apollo-11/blob/master/Comanche055/WAITLIST.agc"
click node_cm_orbit "https://github.com/chrislgarry/apollo-11/blob/master/Comanche055/P30-P37.agc"
click node_lm_landing "https://github.com/chrislgarry/apollo-11/blob/master/Luminary099/THE_LUNAR_LANDING.agc"
click node_lm_ascent "https://github.com/chrislgarry/apollo-11/blob/master/Luminary099/ASCENT_GUIDANCE.agc"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_cm_program,node_cm_input,node_cm_modes,node_cm_guidance,node_cm_navigation,node_cm_control,node_cm_output toneBlue
class node_lm_program,node_lm_input,node_lm_modes,node_lm_guidance,node_lm_navigation,node_lm_control,node_lm_output toneAmber
class node_executive,node_interpreter,node_waitlist toneMint
class node_cm_orbit,node_lm_landing,node_lm_ascent toneRose
class node_crew toneIndigo
```

## Components

### Command Module

- [Comanche 055](https://github.com/chrislgarry/apollo-11/blob/master/Comanche055/MAIN.agc): `Comanche055/MAIN.agc`
- [Crew Interface](https://github.com/chrislgarry/apollo-11/blob/master/Comanche055/DISPLAY_INTERFACE_ROUTINES.agc): `Comanche055/DISPLAY_INTERFACE_ROUTINES.agc`
- [Mission Programs](https://github.com/chrislgarry/apollo-11/blob/master/Comanche055/P20-P25.agc): `Comanche055/P20-P25.agc`
- [Guidance](https://github.com/chrislgarry/apollo-11/blob/master/Comanche055/CONIC_SUBROUTINES.agc): `Comanche055/CONIC_SUBROUTINES.agc`
- [Navigation](https://github.com/chrislgarry/apollo-11/blob/master/Comanche055/IMU_COMPENSATION_PACKAGE.agc): `Comanche055/IMU_COMPENSATION_PACKAGE.agc`
- [Flight Control](https://github.com/chrislgarry/apollo-11/blob/master/Comanche055/CM_ENTRY_DIGITAL_AUTOPILOT.agc): `Comanche055/CM_ENTRY_DIGITAL_AUTOPILOT.agc`
- [Displays and Telemetry](https://github.com/chrislgarry/apollo-11/blob/master/Comanche055/DOWN-TELEMETRY_PROGRAM.agc): `Comanche055/DOWN-TELEMETRY_PROGRAM.agc`

### Lunar Module

- [Luminary 099](https://github.com/chrislgarry/apollo-11/blob/master/Luminary099/MAIN.agc): `Luminary099/MAIN.agc`
- [Crew Interface](https://github.com/chrislgarry/apollo-11/blob/master/Luminary099/DISPLAY_INTERFACE_ROUTINES.agc): `Luminary099/DISPLAY_INTERFACE_ROUTINES.agc`
- [Mission Programs](https://github.com/chrislgarry/apollo-11/blob/master/Luminary099/P20-P25.agc): `Luminary099/P20-P25.agc`
- [Landing Guidance](https://github.com/chrislgarry/apollo-11/blob/master/Luminary099/LUNAR_LANDING_GUIDANCE_EQUATIONS.agc): `Luminary099/LUNAR_LANDING_GUIDANCE_EQUATIONS.agc`
- [Navigation](https://github.com/chrislgarry/apollo-11/blob/master/Luminary099/KALMAN_FILTER.agc): `Luminary099/KALMAN_FILTER.agc`
- [Flight Control](https://github.com/chrislgarry/apollo-11/blob/master/Luminary099/P-AXIS_RCS_AUTOPILOT.agc): `Luminary099/P-AXIS_RCS_AUTOPILOT.agc`
- [Displays and Telemetry](https://github.com/chrislgarry/apollo-11/blob/master/Luminary099/DOWN_TELEMETRY_PROGRAM.agc): `Luminary099/DOWN_TELEMETRY_PROGRAM.agc`

### AGC Runtime

- [Executive Scheduler](https://github.com/chrislgarry/apollo-11/blob/master/Comanche055/EXECUTIVE.agc): `Comanche055/EXECUTIVE.agc`
- [Interpreter](https://github.com/chrislgarry/apollo-11/blob/master/Comanche055/INTERPRETER.agc): `Comanche055/INTERPRETER.agc`
- [Timed Tasks](https://github.com/chrislgarry/apollo-11/blob/master/Comanche055/WAITLIST.agc): `Comanche055/WAITLIST.agc`

### Guidance and Control

- [Orbital Maneuvers](https://github.com/chrislgarry/apollo-11/blob/master/Comanche055/P30-P37.agc): `Comanche055/P30-P37.agc`
- [Lunar Landing](https://github.com/chrislgarry/apollo-11/blob/master/Luminary099/THE_LUNAR_LANDING.agc): `Luminary099/THE_LUNAR_LANDING.agc`
- [Lunar Ascent](https://github.com/chrislgarry/apollo-11/blob/master/Luminary099/ASCENT_GUIDANCE.agc): `Luminary099/ASCENT_GUIDANCE.agc`

### Other components

- **Crew**

## Connections

- Crew → Crew Interface: inputs commands
- Crew → Crew Interface: inputs commands
- Comanche 055 → Executive Scheduler: schedules tasks
- Luminary 099 → Executive Scheduler: schedules tasks
- Executive Scheduler → Interpreter: dispatches work
- Executive Scheduler → Timed Tasks: uses timing
- Mission Programs → Guidance: uses guidance
- Mission Programs → Navigation: uses navigation
- Mission Programs → Flight Control: commands vehicle
- Mission Programs → Displays and Telemetry: updates displays
- Mission Programs → Orbital Maneuvers: includes maneuvers
- Crew Interface → Mission Programs: selects programs
- Mission Programs → Landing Guidance: uses guidance
- Mission Programs → Navigation: uses navigation
- Mission Programs → Flight Control: commands vehicle
- Mission Programs → Displays and Telemetry: updates displays
- Mission Programs → Lunar Landing: includes landing
- Mission Programs → Lunar Ascent: includes ascent
- Crew Interface → Mission Programs: selects programs
