this post was submitted on 04 Jun 2026
258 points (100.0% liked)
Programmer Humor
31674 readers
1639 users here now
Welcome to Programmer Humor!
This is a place where you can post jokes, memes, humor, etc. related to programming!
For sharing awful code theres also Programming Horror.
Rules
- Keep content in english
- No advertisements
- Posts must be related to programming or programmer topics
founded 3 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Ima be honest, I have no idea wtf I'm looking at
I know people hate AI, but I fed the OP pic to Claude and asked it to explain the code and maybe gice modern comparisons to something like Python.
This is AGC (Apollo Guidance Computer) assembly code from the lunar module's landing radar routines. Let me walk through it:
P63SPOT3— "Is the antenna in position yet?"Reads a hardware channel (CHAN33) to check the state of the landing radar antenna.
BZFmeans "Branch if Zero" — if the antenna bit is already set, skip ahead."Nope, not there yet — bug the astronaut"
Loads error code 500 and calls
GOPERF1— this triggers a crew alert, literally asking the astronaut to manually crank the antenna into position. The comment says it all: "PLEASE CRANK THE SILLY THING AROUND""Did they fix it or bail?"
Two possible outcomes: crew hits terminate (
GOTOPOOH— yes, really), or hits proceed and the code loops back toP63SPOT3to check again. "See if he's lying" is the actual comment, meaning: verify they actually moved it.P63SPOT4— "Okay, antenna's good, initialize radar"Calls
SETPOS1to initialize the landing radar into position 1."And we're off"
BURNBABY. That's the actual name of the burn routine. Jumps to the powered descent initiation — the engine ignition sequence for landing.The whole thing is basically: check hardware → nag human if needed → loop until fixed → initialize systems → light the engine. Written by people with a great sense of humor under enormous pressure, in 4KB of RAM.
I know what
P00is, that's program 00 or the root process of the computer. Terminating the subprocess hands control back toP00, which is why the processor is instructed toGOTOP00H.