Slashdot Mirror


The Apollo 11 Guidance Computer

wiredog writes "Dr. Dobbs has an article on the Apollo Guidance Computer with a jpg of a source code listing. Some specs: 70-lb box , Approximately 20 instructions, 16 bit word, ROM (rope core) 36K words; RAM (core) 2K words, Basic machine cycle: 2.048 MHz"

19 of 154 comments (clear)

  1. If you're ever in Bozeman, MT... by KnightStalker · · Score: 3

    the American Computer Museum there actually HAS an Apollo guidance computer, along with a lot of other neat stuff. Very cool. No, they don't let you use it. :-)

    --
    * And remember, it's spelled N-e-t-s-c-a-p-e, but it's pronounced "Mozilla."
  2. Apollo Guidance Computer Manual by dbremner · · Score: 5

    A Google search found this site. It lists all the commands and has an ASCII drawing of the display.

    --

    Life is a psychology experiment gone awry.
  3. Re:Use of GOTO?!? by Qoud · · Score: 3

    Yes, they should have used GOSUB, they'd have stood a much better chance of RETURN'ing.

  4. Scarcasim Alert! by Auckerman · · Score: 3

    Oh, come on! Everyone knows the moon landings were faked .

    --

    Burn Hollywood Burn
  5. Re:But it worked by sphealey · · Score: 3

    "He then manually landed the craft, with only 4 seconds of fuel remaining on touchdown"

    I believe that was 64 seconds of fuel, with 60 seconds being needed to orient the descent module and fire the ascent module engine for a successful abort. The real question is whether Armstrong would have eaten into that 60 seconds to land. On the records he has always said no...

    sPh

  6. massively parallel human computers by peter303 · · Score: 3

    The current issue of Amerian Scientist has an
    article about a British meterologist who conducted
    the first finite-difference weather prediction
    calculation in the 1920s using a room full of
    people with adding machines. The motive for this
    was there were a few very dense measurements
    of weather data during the Great War,
    and Prof. Richardson wanted to see if it was predictable.

    Richard Feymann in "Surely you aren't joking"
    mentions a human calculation room for a-bomb
    modeling at Los Alamos in the 1940s.

  7. Women are better in space by Hairy_Potter · · Score: 3
    and it only takes a back of the envelope calculations to figure that out.

    • Women are smaller, and require less food, water and oxygen.

      The average woman astronaut, at 100 pounds, is 2/3 the weight of the average male astronaut at 150 pounds. With present day launch costs of 10,000 USD per pound, replacing a 6 person male shuttle crew with 6 females results in a cost savings of $3,000,000 dollars, or 300 extra pounds of equipment and payload. Factor in the reduced fod, water and oxygen requirements, and you might be able to loft 500 extra pounds into orbit.

    • Women are hardier.

      Woman live longer than men, and are healthier in general. When you are talking about expeditions lasting 3+ years (ala Mars), you want the healthiest people you can going.

    • Women are less aggressive and territorial than men.

      When you are talking about being locked in the space the size of 2 cubibles with 5 other people for 3+ years, you want low aggression, non-territorial people there, to avoid infighting and chaos. While Europe is making admirable strides towards breeding a complacent, passive population, for now, the best. most compatible crew would be woman.



    However, due to the stranglehold that the caucasian patricarchy has on the space program, don't expect this to be acknowledged, or to even see more than a token amount of women in space. Pity the Israelis don't have a space program, they don't have the resources for false pride and propping up insecure males, the would go for the gusto and have woman like Golda Meir in orbit.

    Thanks,
  8. Mirror by tedtimmons · · Score: 3
    It's already loading VERY slowly. Feel free to use the following mirror:

    http://www.perljam.net/misc/apollo11-code.jpg

  9. A noble era which passed us long ago. by cje · · Score: 3

    I really miss the days where software development and hardware engineering was really about being clever. A lot of the work being done these days has been tainted by the Microsoft mindset: "If it's too slow, throw more CPU at it; if it's too big, throw more RAM at it." This is a luxury that we didn't always have, and it's something that I think a lot of people take for granted these days. Programmers are at their best when they take a machine with definite resource limitations and work with those limitations to develop an acceptable solution. This is, IMHO, a far more noble effort than simply throwing more resources at the problem until you've gotten to the point where the "lazy man's method" is acceptable.

    I can remember years back writing some assembly code on an Apple II; I had a routine that ended up being two bytes too long to fit between Page 3 and the keyboard buffer. In order to make it fit, I ended up resorting to self-modifying code that saved three bytes. Now, you might make the argument that self-modifying code is horrible style (and you'd be right), but at the time, that didn't matter to me; what mattered was that I'd come up with a solution that worked given the limitations I was stuck with. Coming up with something like that gives a person a far greater sense of accomplishment than does a solution that was attained simply by artificially throwing more resources at the problem.

    This type of mindset is for the most part dead. Oh, there are examples of it around in certain specialized arenas (for example, the current crop of Playstation 1 games has pretty much pushed that platform to its limitations.) But Moore's Law and dropping RAM prices have mandated that general software development should be quick and dirty rather than compact and elegant. And maybe, from a financial standpoint, that's how it should be; after all, it takes considerably more development time and effort (and therefore more money) to write the slickest code than it does to write acceptable code that works, given enough resources. However, that doesn't mean that we should not be able to lament the passing of the earlier era.

    Finally, I should point out that I am not saying that current software developers are entirely devoid of creativity, because they're not. There are a lot of developers for a lot of different hardware platforms and operating systems that are doing some pretty cool things. I am claiming, however, that software development is rapidly becoming a field of endeavor that requires far less cleverness and wherewithall than it once did. Whether this is good or bad depends on your point of view, but I don't see how it can contribute to any increase in general software quality.

    --
    We're going down, in a spiral to the ground
  10. Re:But it worked by ptomblin · · Score: 3

    Actualy, it didn't work.

    Actually, it didwork. Armstrong left the docking radar on when the procedure said to shut it off. This consumed processing cycles which meant that not all the events could be processed in the time allotted, which meant that some very critical calculations weren't getting done. The problem wasn't in the computer, it was in the astronauts not following procedure. The program was basically a big loop which had to be executed every 'n' milliseconds, and the engineers knew how many cycles they had to burn during those 'n' milliseconds, and designed and tested the procedures and programs accordingly. Once the astronauts deviated from the procedures, they were in unknown territory.

    --
    The next Cmdr Taco duplicate will be ready soon, but subscribers can beat the rush and see it early!
  11. Re:Complexity Kills by arivanov · · Score: 3
    You are deeply misguided.

    They are not laptops. The laptops are only for austronauts personal use and sometimes for control of non-critical experiments

    The guydance and control computers are actually almost as simple as apollo 11. They were either 804(X=8,9)or 805(X=0,1). These were the highest ones certified for NASA use at the time the shuttle was designed. There is an overall of 5 of these extremely simple systems operating commands to the valves and the engine ignition system on a voting principle. The majority gets to execute the command. The idea is that there cannot be a simultaneous triple failure. This is actually described in detail in one of the articles on the shuttle ran by Scientific American in the eighties.

    --
    Baker's Law: Misery no longer loves company. Nowadays it insists on it
    http://www.sigsegv.cx/
  12. Use of GOTO?!? by 2ndPersonShooter · · Score: 5
    I figured these NASA guys are crack engineers, so if I look at the code I might learn a thing or two. But then there it is, plain as day, the use of GOTO in line 470! I mean, come on, using GOTO in a guidance system? I couldn't believe my eyes!

    470 on BLASTOFF goto MOON

    Who do these guys think they are? Every 1st year CS student knows that GOTO is considered harmful.

    Let's do ourselves all a favor and never go to the moon again using a GOTO statement!

    --
    also by 2ndPersonShooter: Voices Inside My Head - The Unauthorized Autobiography
  13. By comparison... by Gordonjcp · · Score: 4

    The fuel injection controller in most newish cars uses an embedded controller, usually with about 8k of ROM (most of which is lookup tables) and 256 bytes of RAM.
    They are usually based on 8032 family processors, and are clocked at a stunning 12MHz.
    Of course, I'm speaking for the Bosch Jetronic family, newer ones are more powerful (but not by much).

  14. But it worked by sharkticon · · Score: 5

    Considering that today people seem to want to throw the latest technologies at every tiny little problem they encounter the fact that the Apollo 11 worked is a testament to the fact that more is not always better, and that complexity brings its own problems.

    Unfortunately, it seems as though people have gotten used to the idea that they require the latest technology, the latest "innovations" in order to be successful and cool. Hence the market for shoddy products that are rushed out quickly to customers, who can be guaranteed to solve their problems by getting the next release because it's newer and therefore superior.

    Whereas this machine, so simple compared to even the simplest of embedded processors today, did what it was supposed to, and did it well. Today, we see all kinds of computer problems due to technology being thrown at projects as a miracle cure without considering what is actually required! Just look at the Navy's debacle with NT for a prime example.

    Well done /. We need more stories to remind us that more technology isn't always good. Remember, 90% of everything is crap, and technology is no exception.

    --

    1. Re:But it worked by selectspec · · Score: 3

      Actualy, it didn't work. Fortunately, Armstrong noticed that Eagle was heading towards some jagged craters and turned the landing computer off. He then manually landed the craft, with only 4 seconds of fuel remaining on touchdown. Not too shabby.

      --

      Someone you trust is one of us.

  15. Complexity Kills by Bonker · · Score: 5

    Part of the beauty of this old, seemingly useless system was that it was simply designed, and almost perfectly optimized for the task.

    Now we have astronauts taking laptops into space and using MS software for email and networking while on board. The testing cycles for all this software is long because all faults have to be eliminated, but the simple fact remains that computer and software designs are becoming so complex that in the very near future, if not already, they are too complex for use in the space program.

    Hunting down a bug in a 100000 lines of code is one thing. Hunting down a bug and all the other bugs it causes in 4 million lines? NASA has already faced this problem, because they use Win 95 laptops. How about 10 million lines. How about 20 M?

    What about the computer processors that run the space shuttles. Frankly, they're all old technology, because upgrading to the newer stuff is just too damned dangerous. If the video processor that powers your HUD guidance systems crashes because of an obscure hardware bug that occurs only in freefall, you're screwed.

    Personally, I think that this sort of complexity is going to become the limiting factor in the advancement of technology. A point will come in the very near future when systems, be they processors or OS's, become so complex that the testing time necessary for critical use makes rapid development unprofitable.

    --
    The next Slashdot story will be ready soon, but subscribers can beat the rush and slashdot the links early!
  16. The DSKY Rules! by QuantumHack · · Score: 5
    The Display/Keyboard interface (DSKY, pronounced 'diskey') to the Guidance/Nav computer (GNC) was a superb interface. I know an engineer who actually got to play with one. In a pre-GUI, pre-command-line age, the verb-noun interface was actually very intuitive. It's kind of like having a hardware interface that allows you to call various API methods or functions, which prompts you as to the various parameters, then displays the returned values.

    To the astronauts, the DSKY was the GNC; the GNC really was just a box stowed in the Lower Equipment Bay.

    The interface was so good, it was subsequently used on the F-8 fighter prototype. For more on the DSKY, see:

    http://www.dfrc.nasa.gov/gallery/photo/F-8DFBW/HTM L/EC96-43408-1.html

    To see it in action, watch the "From the Earth to the Moon" series from HBO. Most local video stores have 'em. The Apollo 12 one was my favorite for seeing the DSKY in action, when Al Sheppard helped upload new code (IN FLIGHT) to ignore a flakey ABORT button.

    Best to ya,

    Quantum Hack

    http://www.hamhud.net

    --
    www.backwoodsengineer.com
  17. Re:Midgets are better in space by Sethb · · Score: 4

    Why not send dwarves/midgets? They're even smaller! You could build smaller vehicles, smaller spacesuits, pack less food, etc.

    Send Mini-Me to Mars!
    ---

    --
    When in danger or in doubt, run in circles, scream and shout. --Robert A. Heinlein
  18. Not practical. by BigBlockMopar · · Score: 3

    For this reason, it is my belief that gay men are far better suited for long term space exploration,

    Are you kidding? The Madonna CDs alone would make the launch weight prohibitive!

    --
    Fire and Meat. Yummy.