Apollo 12 Source Code: Looking at the original flown code printout, and the 1202 error fix

Поділитися
Вставка
  • Опубліковано 15 гру 2024

КОМЕНТАРІ • 562

  • @scowell
    @scowell 4 роки тому +272

    Interested to know who 'Hugh B-S' was! Great content again... even *I* could program assembly with such a good environment! Today's MAP files leave a lot to be desired.

    • @CuriousMarc
      @CuriousMarc  4 роки тому +62

      Hugh Blair-Smith. One of the pioneer programmers of the AGC who laid a foundation for the code, I believe the real-time executive and it's crash-resistant prioritized tasks which saved the mission (Mike did I get this right?). We met him at MIT, you can seem him briefly in this video: ua-cam.com/video/9iavKBdPo4U/v-deo.html.

    • @mikestewart8928
      @mikestewart8928 4 роки тому +59

      @@CuriousMarc Nope, you're thinking of Hal Laning. :) Hugh wrote the YUL assembler, and also played a large part in the design of the AGC's microcode and instruction set.

    • @CuriousMarc
      @CuriousMarc  4 роки тому +34

      @@mikestewart8928 Oh, oops, monumental fail. Glad you are here Mike.

    • @Nidge2013
      @Nidge2013 4 роки тому +1

      @@CuriousMarc 1q

    • @spacedmanspiff1543
      @spacedmanspiff1543 3 роки тому +2

      @@CuriousMarc ahhh well it happens.....now crank that silly thing around !!!

  • @squidkid2
    @squidkid2 3 роки тому +600

    My dad worked on the Apollo Guidance Computer design and software for Snoopy et al. He graduated from MIT with a degree in "automatic systems" and worked for Grumman on the LEM and the AGC and guidance system. He also was well versed in inertial navigation systems, radar, radio, computer design and programming and celestial navigation etc. Anyway, he had piles of those program folders that he would sit on his bed and pour over line by line, debugging errors one line at a time. Back then, to debug a program or analyze its performance they would run the program till they got an error, mark the line and then study that line of code to see what was causing the error. Since this was the 60's no one had a computer at home, so you had to debug line by line. And there were so many lines of code that one person couldn't debug the whole thing. So they printed up many copies and gave them to everyone to take home to debug a portion of the program. I know he had at least a half ton of those printouts stacked up floor to ceiling in his bedroom so they must have printed out hundreds of copies. And if they revised the program in anyway then all the previous versions became useless scrap paper. Of course, nowadays they are valuable historical artifacts that show the evolution of the whole programming part of Apollo. But in my day, they were just something that as a teenager I couldn't understand and something my mom complained about having to trip over in her bedroom. And yes I seem to recall there being a lot of strange comments in those printouts. Nasa even had small pins made that showed Snoopy in a space suit and helmet that they gave out to everyone working on the project.

    • @konohaneoas6070
      @konohaneoas6070 Рік тому +2

      Brasil - sério? Bacana

    • @JuliusWise
      @JuliusWise Рік тому +2

      Did your dad wrote some lines? Do you know if Margaret Hamilton wrote all the code by herself? Because she is the one that appears in the photo with the pile of books and took al the credit alone.

    • @squidkid2
      @squidkid2 Рік тому +17

      @@JuliusWise I can't say for sure but I imagine that most of the comments were written by the original programmer. Usually programmers add those comments so that anyone who works on the program afterwards will understand the thinking of the original programmer. I believe what my dad was doing was debugging the original code. As I recall they would run the program on a simulator and if there was a glitch they would mark the line that caused the problem and then guys like my dad would try to figure out what was wrong with those particular lines of code. I do remember seeing the actual printouts and I believe my dad remarked about some of the amusing comments that were written by the original code writer. I do know that my dad worked on the actual design of the Apollo guidance computer hardware but I don't know for certain how involved he was in writing the actual code. I do know that he was involved in designing the overall flow

    • @squidkid2
      @squidkid2 Рік тому +14

      Before any code was written the hardware designers had to have a good idea of what they needed the computer to do and what systems or peripherals if you will needed to be controlled. Engineers like my dad were working on the hardware first and then trying to get a computer to control all that Hardware.

    • @konohaneoas6070
      @konohaneoas6070 Рік тому +2

      @@squidkid2 brother, am Brasil, e fico feliz em conseguir lhe entender

  • @keithtyler9372
    @keithtyler9372 Рік тому +38

    I am an Apollo Engineer who was the Emergency Control Rate Gyro Guy.
    Mostly flight hardware .
    A little programming. Linking other programs . I got to send Gyro signals to the Capsule at T minus 2 min30 sec. The highest excitement of my life!!

    • @CuriousMarc
      @CuriousMarc  Рік тому +2

      You obviously did a great job! What was that signal? Was that for the laser beam aligned booster IMU, or for the IMU in the G&N of the spacecraft itself?

    • @keithtyler9372
      @keithtyler9372 Рік тому +4

      Marc,
      I was part of the IBM Guidance Navigation & Control group
      .Instrument Unit. The 9 Gyros, Pitch (3); Yaw (3) and Roll (3) were no output. Until T zero. Angular Rate ( Rotation) was phi .
      At Liftoff The engines were pointed to vertical Clear the Tower. The IMU and Guidance did that
      My group was called Flight Control Analog. We fed the DC current to the ( 4 ) engines hydraulics. Can you believe Milliamps.
      Summary: the Gyros only measured Rotation

    • @keithtyler9372
      @keithtyler9372 Рік тому +1

      I must close Marc.
      Too lengthy

    • @CuriousMarc
      @CuriousMarc  Рік тому +3

      @@keithtyler9372 Ah, booster guidance then. For the IBM LVDC computer. Thanks for the details!

    • @keithtyler9372
      @keithtyler9372 11 місяців тому +1

      Hey Marc, my EDS CRG inputs were to the guys in the Capsule. So the lights and indicators read correctly. No room for errors.
      Excessive Rate meant. We are turning in the right direction but we want to ABORT. The rocket can break apart. Your decision.

  • @Pants4096
    @Pants4096 4 роки тому +210

    It's downright criminal that this doesn't have millions of views and likes. Such an important part of computing history is being preserved and studied, here! I truly shudder to think what's going on in my modern laptop as I type this, and if its various codes and chip layouts were to be printed on paper if there is even a warehouse big enough to contain it all. YOU CAN PICK UP AND HOLD the apollo software. That is so amazing.
    One of the unsung heroes of the apollo program, in my opinion, was the ranging system they used, with the Unified S-band pseudo-random codes and the FANTASTIC precision they achieved in the 60s. If you ever discover information about that system's development, it would definitely be worth pursuing!

    • @Spookieham
      @Spookieham 4 роки тому +3

      Absolutely - so much information and history in that one printout.

    • @nielsdegroot9138
      @nielsdegroot9138 4 роки тому +7

      For a video that has been uploaded today, it's not surprising it doesn't have "millions of views and likes" (yet). It might never get those, but that doesn't mean that there aren't lots of people that love this kind of content.

    • @blackbird8632
      @blackbird8632 4 роки тому +2

      I'm doing my part!

    • @thiesenf
      @thiesenf 4 роки тому

      Yeah... good luck printing out the complete CAD drawings for any modern Inte/AMD cpu... 13-something BILION transistors...

    • @kevinreardon2558
      @kevinreardon2558 4 роки тому +4

      Very true. After all, real men wire wrap and real women weave!

  • @lenpalmeri6228
    @lenpalmeri6228 4 роки тому +119

    As a former IBM Series/1 assembler programmer from the 1980's, this video brought back many fond memories (no pun intended) of reading through big, fan-fold greenbar printer listings. You guys are awesome software archeologists in posession of some of the most significant computer code ever written. This is historic code that directly enabled human footfalls on another world.

  • @John_L
    @John_L 4 роки тому +155

    Fascinating trip back in time, thank you Mike and Marc. That was a good explanation of the layout of an assembler listing too, showing the one-to-one relationship between machine instructions and assembler language statements. Around the same era I was writing air traffic control software in IBM/360 assembler code (BAL) and it all came flooding back to me. I have happy memories of six inch thick assembler listings and boxes of punch cards, just like this. Too much of this history of computing has been lost for ever, so it's wonderful that you are rescuing, restoring and archiving for future generations.

    • @rty1955
      @rty1955 4 роки тому +2

      @Robert Slackware the 360/30 had no "hex pad" rather it had rotary dials that set the IPL device. The CPU woukd send a start I/o to that device to begin the IPL procedure. I wrote IPL code for punch cards, but its basically the same for tape or disk IPL

  • @baxtermullins1842
    @baxtermullins1842 Рік тому +4

    My first programming experience was RATFOR, then FORTRAN using and IBM at WVU to solve aerospace engineering design, structures and fluids problems in 1968/69. So I recognize the cards, etc. in 1969 I was on my first job and moved from cards to paper tape to analyze flight test data and calibration data using FORTRAN on a HP mini computer. A year later, I designed and coded assembly language programs to simulate surface to air, air to air missiles, and radar/IR hardware and man in the loop testing in real time! This taught me so much that about architecture and computer cpu/gpu operations and algorithm development. I still have boxes of cards, program listings etc to remind me how far we have come in just 50 years.

  • @asimms65
    @asimms65 Рік тому +2

    Thanks for deep diving all things Apollo especially the AGC. This has always fascinated me.

  • @thesillyhatday
    @thesillyhatday 4 роки тому +86

    How they achieved this in the 60s is incomprehensible. It's not like they could just write an EEPROM with their code and test it with a simulation. How they got it this bug free is insane. We talk about cutting edge now, this I feel was pushing it even further. A computer to some people in the 60s would have just sounded like a foreign language. This is such a great channel!

    • @CuriousMarc
      @CuriousMarc  4 роки тому +31

      They ran it on simulation on much larger mainframe computers, and ran it on the real hardware thing using core rope emulators that were loaded from regular core memory. See our restoration of the core rope emulator.

    • @thesillyhatday
      @thesillyhatday 4 роки тому +6

      @@CuriousMarc Of course, I forgot about the emulators you spent ages repairing!. I need to watch the restoration once again. Silly me.

    • @twiff3rino28
      @twiff3rino28 Рік тому +1

      Now we can't update an app without breaking the UI 💀

    • @aydenlokey3641
      @aydenlokey3641 8 місяців тому +1

      Not to mention they did it all in assembly too!
      Absolutely mind-boggling

  • @charlestonyank2067
    @charlestonyank2067 4 роки тому +78

    Fascinating. I wrote a lot of assembler in 67-76. Talk about cards. We had multiple pallets of cards delivered every other week or so. And green bar paper. I just can't believe that someone held on to this printout (safely no less) for all these years. Good stuff. That young man is on his game.

  • @badguy1481
    @badguy1481 2 роки тому +91

    I (and several others) were assigned to "translate" the code in that listing, generate flow diagrams that could be understood by real human beings and teach classes down at the Manned Space Craft Center in Houston. It was a BIG job because the MIT programmers did not always give written comments, to the side of the instruction flow, to help people understand what they were trying to do. Often times they would do a "weird" shifting of "words" in order to interrogate a particular bit (for instance a bit that meant a specific switch was on or off). We had to figure it out, ourselves. It took MONTHS of laboring over those Apollo listings to come up with those flow diagrams.

    • @louisvanrijn3964
      @louisvanrijn3964 Рік тому +1

      It is modern archeology. Tracing back an acient language. Very well done.

    • @nic_earrings
      @nic_earrings Рік тому +7

      Is your work publicly available?

    • @ChrisM541
      @ChrisM541 Рік тому

      That is shocking, in the extreme, that the programmers did not recognise that lack of documentation on something as important as this is a very serious no-no, unless of course, a decision had been taken that you were not meant to receive full documentation. If the functionality of those bit switches, for example, were not provided to then no one reading the code would be able to decode their meaning beyond bit x of byte/word y gets checked/set/cleared here. I wonder if the CPU had basic AND/OR opcodes or they had to suitably bit rotate to capture a suitable status flag e.g. carry?

    • @talison718
      @talison718 Рік тому

      @@ChrisM541I don't think you can even call the microchip that runs this a cpu, the generally considered "first cpu" the Intel 4004 was only released in 1971

  • @jabbawok944
    @jabbawok944 4 роки тому +83

    I build Industrial control systems and I've lost count of the number of times I've written software fixes for bad hardware. Rarely are they as elegant and simple as that fix.

    • @digiowl9599
      @digiowl9599 4 роки тому +3

      I guess that is also why Linux often has worse power usage compared to Windows on the same computer, as the OEM drivers in Windows have all kinds of hacks in place to work around faulty sleep modes etc.

    • @jabbawok944
      @jabbawok944 4 роки тому +11

      digi owl partly. Also I suspect that the manufacturers simply put more effort/money into Windows support. I wonder if the same bares out in the server market, where Linux is far more dominant.

    • @olvinjanoisin2255
      @olvinjanoisin2255 4 роки тому +10

      Yeah the ancient joke how many hw engineers it takes to change a light bulb (none, it'll be fixed in software) ain't so funny anymore.

    • @GodzillaGoesGaga
      @GodzillaGoesGaga 4 роки тому +2

      In all reality, software by it's nature can be iterated rapidly. Hardware not so. Now think of the number of bugs in software and compare that to hardware and you will see that hardware actually has a damn good record of getting things right at tape-out.

    • @Intelwinsbigly
      @Intelwinsbigly 2 роки тому +1

      Sadly, computers have made elegant coding unnecessary.

  • @rjy8960
    @rjy8960 4 роки тому +62

    I cut my teeth programming in hex and assembly - I was 2 years old when this was assembled! I always will be a low level guy!
    This is one of the most interesting video's I've ever watched. Thank you so much for all your work and dedication to the project.

    • @eloyex
      @eloyex 4 роки тому

      OCTAL !!!!! at leat i worked in HEX in the 80s !

    • @ChuckSwiger
      @ChuckSwiger 4 роки тому +4

      @@eloyex When they said erasable was 0 thru 2000 octal, I automatically reacted with, "you mean 0 thru 1777?" :) echo 'ibase=8; 1777' |bc = 1023

    • @alistair1978utube
      @alistair1978utube 4 роки тому

      @rjy8960 one misplaced apostrophe in that low level code could screw everything up...

    • @GodzillaGoesGaga
      @GodzillaGoesGaga 4 роки тому

      Same here Bro'. I'm a year older than you. Still love assembler!

  • @RevMikeBlack
    @RevMikeBlack Рік тому +16

    Don Eyles, a name that most people probably do not recognize, is one of the great unsung heroes of the Apollo program. May he live long and prosper.

  • @buenaventuralife
    @buenaventuralife 4 роки тому +76

    Assembler programmers and real time processing programmers are a very special breed. I spent my computer programming career donig that. Reading the green bar was a treat, especially when tracking down a bit problem on spacecraft. Remember this is an era when bytes and words were it. Computers might be eight or sixteen bit machines. You tended to memorize a lot and work between binary, octal, decimal and hex.

  • @James_Bowie
    @James_Bowie 4 роки тому +36

    Assembly code with comments. Amazing.

    • @lineshaftrestorations7903
      @lineshaftrestorations7903 4 роки тому +1

      It sux big time when you have to work on assembly code where there is one cryptic comment per 100 lines. Early in my career I had to take over a project written that way.

    • @nimerix
      @nimerix 3 роки тому

      @@lineshaftrestorations7903 I know that feeling.

  • @kbates666
    @kbates666 4 роки тому +36

    Its so cool to see the exact changes the programmers made to fix 1202. Love your videos, thanks for sharing.

  • @yellowlynx
    @yellowlynx Рік тому +1

    Those who could understand these programs are revered till this day. I could barely understand assembly language, but I still remember carrying the hugh pile of print outs during my programming term assignment.

  • @72polara
    @72polara 4 роки тому +27

    That way they wrote that code is a work of art. The way everything is organized and commented makes simple to follow. Had to make it a hell of a lot easier to troubleshoot and modify. Neat to see how the 1202 fix was done. Great work as usual Marc, Mike, and the rest of the Curious Crew.

  • @nemesi8800
    @nemesi8800 Рік тому +3

    The moon landing is one of the most important technological leaps in the history of mankind. Out of all the billions of humans that ever existed, 99.9999999999...% have never even been outer space, nevermind landing on the moon! This video is a part of that history and hundreds of years in the future (if we are still existing) this video will be a relic to something that was great.

  • @ThomasGabrielsen
    @ThomasGabrielsen Рік тому +7

    Thank you so much for the job you do. I've spent several hours browsing the PDF you uploaded with the code/documentation. What a massive job it must have been to scan all those pages. I'm very grateful!

  • @siobhanpeal38
    @siobhanpeal38 Рік тому

    This has brought back so many memories. As a specialist Air Traffic Controller we were authorised to code and patch the original IBM 360 9020D at the London Air Traffic Control Centre if there was an immediate ATC operational requirement that had to be met. So many punched cards to type!

  • @chrisforeman5745
    @chrisforeman5745 3 роки тому +7

    As someone who learnt to code on 6502 back in the day. This has some beautiful features built into it and looks very familiar. Thanks for this series its fantastic.

  • @mathgeek7966
    @mathgeek7966 Рік тому +1

    I'm in awe of assembly programmers. I learned FORTRAN in the 80s working on VAX/VMS and Modula-2 on Unix mainframes. Primitive compared to today, it was still a far cry from programming in assembly language. I learned some assembly language but never had to actually try to program in it, thankfully! Fascinating video, thank you for sharing!

  • @LauwersFreddy
    @LauwersFreddy 4 роки тому +18

    It’s not about how many bits you’ve got, its about how you use them ;-) Thank you for making these epic videos! Greetings from Belgium

  • @tradingwizard562
    @tradingwizard562 Рік тому +1

    I remember my Microprocessor language Professor telling us (in 2001) that Computer Scientists decades ago , in order to save a few bytes of memory space had some Programs rewritten
    entirely .
    This was after he had written two versions of one Assembly Language Program with one version of the Program saving a few bytes of space.
    Memory space was considered very precious .

  • @Capt.Turner
    @Capt.Turner 2 роки тому +15

    I really have no clue how Mike is able to store so much knowledge and information in this young brain of his and have it at the ready whenever Marc is asking him any in depth question.
    I mean, he is answering almost everyone of them off the top of his head. Does he suffer from photographic memory or does he have cybernetic implants already ?
    It kinda makes my programming job feel like I'm building Lego sets with a 4+ rating by comparison. Unbelievable.
    I also wonder how many hours and money went into all of this.
    After all it's "just" a hobby, right ?
    Anyway, you guys rock so hard, I can't wrap my head around it !

  • @pokerandphilosophy8328
    @pokerandphilosophy8328 4 роки тому +4

    The nicest thing about this code is that you only have to change one line at the beginning from "DEST := 'Moon''' to "DEST := 'Mars'" and it would land the astronauts on Mars rather than the Moon.

  • @williamskiba6786
    @williamskiba6786 3 роки тому +1

    For me, this is by far the most interesting video of the series. I'm a retired electrical engineer and spent a significant portion of my career on real-time software development (please everybody stop using the word "coding" -- it is highly insulting).
    My intro to computer languages was in high school, where an IBM employed neighbor brought to me an instruction manual IBM used to teach PL/1. I was instantly hooked. But, I never advanced to the point where any of my programs could be submitted for execution.
    In college, my very first semester (in 1973) included a FORTRAN course, in which we punched cards for batch submission to the Xerox Sigma-6 beast. In between the SPICE runs for circuit courses, I became especially fond of writing ASCII-art programs. Which came to an abrupt halt when the sysop eventually wrote on the top of my card deck something very close to "if you ever submit something like this again, you will be banned from ever using this facility again"

  • @paulromsky9527
    @paulromsky9527 Рік тому +5

    At 10:59, that feature where the code listing tells you how many times before a label has been used (REF) and the page number (Card Index) of its last occurrence is a "trace" feature. Most assemblers (or post assembler analyzers) have trace features like this, but they are not used much anymore since we all have computers and monitors on our desks that have source code specific editors - like Gnu's Emacs or IDEs like NI's LabWindows/CVI or Microsoft's Visual Studio. Those editors are so comprehensive and quick to browse code, there is little need to print out source listings anymore - not to mention having trace listings in them. I can't remember the last time I printed out a code listing... I think it was the mid 80's.

  • @asher05
    @asher05 Рік тому +1

    Man, i never thought i would be watching the *Apollo 12 source code* . THIS, this is really cool content. I actually dont have words to describe this, it's just amazing to see this...

  • @phomchick
    @phomchick 4 роки тому +8

    At just about the same time as the MIT programmers were fixing the 1202 bug, I was learning IBM 360 BAL for fun. This video is so cool, and it seems like both just yesterday, and a long time ago.

  • @fredflintstone8048
    @fredflintstone8048 4 роки тому +5

    Mike's depth of knowledge is amazing, same with Ken.

  • @dr.strangelove5622
    @dr.strangelove5622 4 роки тому +11

    The enthusiasm you all have for this stuff is infectious. So infectious that ever since I have watched your video on SCMP and AGC, my interest in the core working of these machines has increased!! Although I know only a teeny-tiny bit of AVR assembly, these videos are real gold and should be preserved!!

  • @AdrianChallinor
    @AdrianChallinor 4 роки тому +7

    Thank you Marc and Mike. This is a hugely important video, and one that along with the AGC rebuild will be kept for future generations. Anyone starting in systems programming and real time control should watch this and read some of the AGC manuals. There is a lot of knowledge to learn from this.
    I used to program in assembler in the late 70's and early 80's. I so wish that my assembler had been as helpful as this!

  • @trex70
    @trex70 Рік тому +2

    A nice piece of real History. Thank you all for showing it to us.

  • @mimsnshine
    @mimsnshine Рік тому +1

    So much fun to see your work , my grand parents just gave me original new york news prints of the first moon landing in color pictures and all, felt like the first day back then.

  • @mikefochtman7164
    @mikefochtman7164 Рік тому +1

    Worked on some mini computers in the 70's and 80's. Looking at that assembly on 'greenbar' paper takes me back. Wasn't the same assembler of course, but yeah, reading those columns with the instruction, reference addresses, comments, and all the rest was an everyday thing back then. And the assembler programs themselves, that kept track of all the 'labels' and references to print out the table at the end was something. We would spend hours flipping between the tables at the end and the listings. And to think, they were doing this decades before the TRS-80 or IBM PC.

  • @hamishgrove7722
    @hamishgrove7722 4 роки тому +8

    Wow what a fantastic explanation of the way that the code went together thank you.

  • @paulcushing8663
    @paulcushing8663 4 роки тому +43

    Marc, I worked on the Space Shuttle computers for 20 years at IBM and LM and would be very intereted as to whether that computer has a Serial Number on a tag on the side.

    • @mikestewart8928
      @mikestewart8928 4 роки тому +9

      Oh awesome! It sure does. P/N 6966000-6, S/N 308.

    • @paulcushing8663
      @paulcushing8663 4 роки тому +3

      @@mikestewart8928 can you tell me where they bought it from? I am amazed that it was out in the wild.

    • @paulcushing8663
      @paulcushing8663 4 роки тому +6

      @@mikestewart8928 Ah, it is a pre-production unit. A lot like the actual flight computers but not quite the same.

    • @mikestewart8928
      @mikestewart8928 4 роки тому +7

      @@paulcushing8663 Apparently it came from "The Spaceflight America Museum and Science Center in Prince Frederick, MD", on RR auction. Do you know how it differs from the flight computers? We haven't found too much documentation for it yet.

    • @paulcushing8663
      @paulcushing8663 4 роки тому +26

      @@mikestewart8928 Mike, From what I can see on the photos (the product test lab didn't work on the pre-prod units), the Pre-prod unit mainly differed physically with the black and yellow wiring harness replaced with tape-cable pages, the structure would become a welded construction instead of bolted and the electronic components, while based on Texas Instruments 74 and/or 54 series parts in the pre-prod, got new IBM-supplied partnumbers due to the radiation hardening requirement for all flight hardware.
      Also, i would be very surprised if you could find ANY documentation for it in the public domain. It was an IBM design, based on the B1 computer (we were told) with modifications to connect-to and operate-with the existing (from the 1st generation AP101B system) IO Processor box. They two boxes were interconnected with three shielded cables. The forth connecter on the computer is an AGE (for ground equipment) and capped when installed in the shuttle. The IO Processor box was the only interface to the shuttle systems via 24 serial channels plus approx 40 discrete in and out lines. When first powered-on, the computer was "stupid" as there was random data in the solid state memory and it had to be IPLed from a Mass Memory Unit. This was a big change from the 1st generation computers which had core memory in them.
      f more comes to mind I will post it. T'was a very long time ago!

  • @alpcns
    @alpcns 4 роки тому +15

    Ah, the good old days. Man, I miss Apollo. What a fantastic time. 50 years later we need megabyte executables to print "hello world". That's rather sad. Luckily much has improved, too.

    • @LubosMudrak
      @LubosMudrak 4 роки тому +2

      Well, in Rust you can get quite some bit of code that fits into 150 KB. Also, because it´s WAAYYYY easier to use than C/C++/Assembly, there is a potential to bring neat small apps back :)

    • @manuell3505
      @manuell3505 4 роки тому +2

      Major consumer operating systems are closed and bloated to maintain demand for better hardware. It's a swamp...

    • @user2C47
      @user2C47 4 роки тому +4

      @@manuell3505 That's why Linux is so popular.

    • @AdrianChallinor
      @AdrianChallinor 4 роки тому +3

      @@LubosMudrak An up vote for Rust!

    • @digiowl9599
      @digiowl9599 4 роки тому +1

      @@LubosMudrak Compiled code can indeed still be quite compact. But more and more software these days are written in the likes of Javascript by way of Electron or similar. Overweight turtles all the way to the ALU.

  • @macboy91si
    @macboy91si 4 роки тому +3

    One of the things I love and appreciate so much about so many CuriousMarc videos is the level of shear information that is there. This video is no let down. I've watched it a few times and there's just so much information and enthusiasm there. This is why I get excited about new videos. Great informative work guys!

  • @raymitchell9736
    @raymitchell9736 4 роки тому +2

    No matter how sophisticated we are today, this is still legendary and cool! Thanks for the video, more deep dives like this please!

  • @magomat6756
    @magomat6756 4 роки тому +21

    Mike is the today,s Don.

    • @CuriousMarc
      @CuriousMarc  4 роки тому +31

      No kidding, he sure is. I am so glad the listing went to him. He is probably the only one that understands it fully. The Apollo 11 one got very expensive and got away sadly, but fortunately Mike had scanned it beforehand.

  • @donmoore7785
    @donmoore7785 4 роки тому

    I started as an engineer in 1983, and never had cause to use octal. The seasoned digital people I worked with all had used it. Great video - I love the passion and achievements of this small group of historians!

    • @mikestewart8928
      @mikestewart8928 4 роки тому

      I had never used it before getting into the AGC. But the weird thing is, I spend so much time doing AGC stuff that I'm almost more comfortable with it than hex now... which has led to dumb bugs in software where I've absentmindedly put 0x7777 expecting that to be "all ones"...

  • @ЯСуперСтар
    @ЯСуперСтар Рік тому

    I love that code isn't some kind of a top secret documentation and we able to dive into and appreciate it.

  • @twostickes
    @twostickes 4 роки тому +4

    "FIX IT IN sOFTWARE!". and still happens even now for us bare metal guys! Love this listing!!

  • @sergeybabkin9614
    @sergeybabkin9614 4 роки тому +6

    Version control in the late 1960s! Very cool.

    • @astronichols1900
      @astronichols1900 3 роки тому

      Yeah that asterisk at the end is almost like a branch diff between the current and previous version. Now all they need is blame lol.

  • @AlainHubert
    @AlainHubert 4 роки тому +3

    Very interesting. It's crazy to think that such relatively limited technology allowed us to go to the moon, and today we can't even have synchronized, smart traffic lights everywhere in North America.
    These listings reminded me very much of my early days learning Z80 machine language on my Sinclair ZX81 back in 1982. I was 17. How time flies when you're having fun. Thanks for sharing.
    BTW, Mike's vast knowledge never ceases to amaze me!
    Looking closely at some of the listings, the printer had trouble printing clearly the last column which makes it sometimes difficult to distinguish a C from a 0...

  • @rustywidebottom4678
    @rustywidebottom4678 4 роки тому +3

    Thanks for making these videos. Thoroughly enjoyable. I programmed a mainframe on punch cards via a remote job entry station which consisted of card readers and printers, which were connected to an Amdahl IBM/370 clone. I was a high school student taking a programming class at my local state university, in 1982.

  • @UpcycleElectronics
    @UpcycleElectronics 4 роки тому +5

    You guys aren't just sharing with the geeks, you're making them. Thanks for sharing!
    -Jake

  • @And_Rec
    @And_Rec Рік тому +1

    I have no clue how I come up here but I loved every minute of it! Very fascinating stuff even if I understood probably a 1/20th of it! ❤

  • @cowboyfrankspersonalvideos8869
    @cowboyfrankspersonalvideos8869 4 роки тому +6

    Some years ago, my rodeo group got a guy to program an online contestant registration system in PHP. I designed the interface screens and wrote the requirements for each function. I also specified that all parts of the code was to have function comments embedded within the script. A few years later, the PHP engine on the server was updated and the entire registration system crashed. When I looked at the code, I found there were absolutely no comment markups anywhere in the script. He had not followed PHP standards and just wrote the script so it would work on the PHP version he was writing for, including a bunch of poorly implemented subroutines. Not being able to understand what each section did, required an almost entire recreation of the entire system. I really could have used your friend for that one.

    • @CuriousMarc
      @CuriousMarc  4 роки тому +7

      Badly written software running on super fast hardware is the pervasive bane of our modern existence! See, it can even ruin a cowboy’s day!

  • @Nightshft42
    @Nightshft42 Рік тому

    I grew up in the 80s and so I learned a bit of 6502asm for the C64 and a bit of 68K asm for the Amiga. And today I learned about how they programmed the AGC, and how the fixed that infamous 1202 Error. That was extremely interesting, thank you!

  • @lwilton
    @lwilton 4 роки тому +21

    It used to be in all the compilers and assemblers I knew about, when you were merging input from tape and punch cards with patches (usually known as patch cards) the asterisk next to the sequence number indicated that this was a patch card. Non-marked input was coming from the master tape. There were other possible flags, like a # sign if you were generating a new merged output tape and also resequencing a range of the input lines. Of course this assembler may have worked differently.

    • @mikestewart8928
      @mikestewart8928 4 роки тому +4

      Ah, interesting! A lot of the same terminology exists with YUL/GAP. Revision assemblies are handled with "merge control cards" -- things like DELETE 0024 THROUGH 0100. Actual code cards were called "detail cards" rather than patch cards. The only other marking like * that I can think of is that YUL (the Honeywell 1800 and earlier version of this assembler) would print an @ on any line that had been matched by an acceptor card. Acceptor cards were how they dealt with the punch card sequence number resetting to zero with each log section. In such a case, the sequence number "0123" is ambiguous, if there are multiple such cards in the program. The acceptor card let you specify the contents of a specific card (usually, the card defining the start of a log section), and it would halt the merging process until it encountered a card whose contents matched what you punched on the acceptor.

  • @my.own.devices
    @my.own.devices 4 роки тому +5

    What an incredible, beautiful, irreplaceable artifact.

    • @sibsbubbles
      @sibsbubbles 3 роки тому

      Quite amazing so much of it survived and, likely, still is out there. Never stops to amaze me in what ways those artifacts emerge and how diverse they are. I definitely don't know the computer side of things as much, but appreciate it when they show it and introduce it. But I also consider my Tek 2467B scope to be a beautiful artifact of testgear so lol. To each their own and to new stuff we encounter.

  • @wktodd
    @wktodd 4 роки тому +8

    Fantastic! Love Mike's enthusiasm for this stuff.

  • @adampatterson
    @adampatterson Рік тому

    Absolutely incredible how these systems were made.
    Todays stuff is just neat.

  • @grantechsweng5268
    @grantechsweng5268 4 роки тому +2

    Octal I wrote assembler back in 1985. wow brings back memories. I worked on the pre-internet. And Fortran.

    • @johndododoe1411
      @johndododoe1411 3 роки тому

      The x86 instruction set makes more sense in octal, but is documented and used in hex.

  • @mitfreundlichengrussen1234
    @mitfreundlichengrussen1234 4 роки тому +1

    Many thanks for the detailed video. When I see the straightforward, actually easy to read structure of the programming that was responsible for the successful missions and the rather modest success of various landing missions (moon, mars) today, it makes me think and wonder.

  • @rrl4245
    @rrl4245 4 роки тому +4

    This is Great! It's great that you're studying and documenting this. It's also great that you're sharing the examination of this code. I'm an old coder. I learned BAL in college before moving on to Fortran & Cobol, but when I moved into the business world, I had to occasionally write custom routines in assembler, and read core dumps of compiled code. This all brings back a lot of memories. And the coder's comments are exactly the type of stuff we used to lay into our code. Very Cool!!!

  • @adamglatt9484
    @adamglatt9484 4 роки тому

    I graduated HS in '79 and was skilled in keyboard (typing), punch card prep and entry, and were still using Guestener Machines for many duplication jobs. The next year I started my BA at Adelphi and for my required foreign language, I opted for Basic, Fortran And Pascal on the main frame in the basement of the Psychology Building...I still have a working C64 with 2 double speed 5 1/4" disk drives that runs a biofeedback system....we have come so far so fast....and still going.... we need Mars for Rare Earths alone.... NASA (Triple Redundant!!!)

  • @rgoodwinau
    @rgoodwinau 4 роки тому

    Really enjoyed this. I did much of my undergrad Computer Science degree with this sort of technology. Brought back memories of performing dry runs to track down bug, using all the features of the listings you discussed. That listing is gold. Comments and code structure give an insight into the mind of the programmer!!

  • @brocktechnology
    @brocktechnology 4 роки тому +2

    A fabulous artifact! I wish I could smell it. I can't help but be reminded of the famous picture of Margaret Hamilton standing next to a stack of these printouts as tall as she is.

    • @mikestewart8928
      @mikestewart8928 4 роки тому +2

      That picture is heartbreaking, haha. If only that stack of listings still existed...

  • @rasberrycast
    @rasberrycast 4 роки тому +7

    A fantastic insight into NASA documentation. Thank you for your upload.

  • @staglomagnifico5711
    @staglomagnifico5711 4 роки тому +22

    In the future, humanity leaves Earth, and the robots we left behind build a civilization of their own, worshiping this listing as a holy book.
    Priest: "...and deliver us from manic RR CDUs, TCF DANZIG."

  • @johnvanantwerp2791
    @johnvanantwerp2791 4 роки тому +2

    It was common for those old printers to have that kind of printing error when it reached the end of the box of paper. They relied on the pressure of the paper in the box to help control the feed. When you got to the end it would often skip and slew as you saw in the video. Then the printer would pause to load new paper. Then the operator would load a new box of paper and continue.

    • @johndododoe1411
      @johndododoe1411 3 роки тому

      Oh, the only ones I worked with had the blank paper in a hopper under the mechanism that pulled up reams past the print chain then dropped it in a second hopper for collection. Almost all the 132 column paper had the old name of the computing center preprinted in the margins, probably an over optimistic bulk purchase before my time.

  • @Spookieham
    @Spookieham 4 роки тому +2

    Absolutely fascinating yet again. So much information even in each line.

  • @ProPatriaRO
    @ProPatriaRO 4 роки тому +1

    The amount of work that went into that code...

  • @garyhoffmann1615
    @garyhoffmann1615 4 роки тому +18

    That code deserves to be etched into concrete, not only nerdy computer history but a huge part of the history of humanity.

    • @nigelft
      @nigelft 4 роки тому +1

      Even concrete (depending on the mix) weathers, so something tougher than that would be neded ...
      But definitely ...

    • @garyhoffmann1615
      @garyhoffmann1615 4 роки тому +2

      @@nigelft The Romans made concrete that is still standing today.

    • @InquisitorMatthewAshcraft
      @InquisitorMatthewAshcraft 4 роки тому

      @@nigelft Portland cement, or hydraulic concrete.

  • @rty1955
    @rty1955 4 роки тому +3

    I used to read core dumps on IBM mainframes for COBOL programmers as I was one of the only assembler programmers there. I used to diagnose 3,000 page CICS dumps. Then the operations manager decides "it was a waste of paper to print dumps" so instead if paper I would get microfiche on my desk, and I didnt have a microfiche reader!!!
    I taught at a large college in NY, mainframes and assembly language too. I still prefer assembly language to any other

  • @sbalogh53
    @sbalogh53 2 роки тому +2

    7:28 In 1973 I dropped two boxes of punch cards and they spread all over the floor. Luckily they were numbered from column 73 onward and there were many larger groups of cards that did not separate. It still took me all day to put the decks back together and my boss was NOT impressed. Unfortunately the company I worked for did not have a Hollerith card sorter which would have made my job so much easier.

  • @keithtyler9372
    @keithtyler9372 Рік тому +1

    The programs were tested in Huntsville Ala .MSFC
    A Saturn in a hangar all cut up. Minus fuel tanks and hydraulics.
    A miniature firing room ,electronics mostly. The Count clock was a simple timer. Set ...Run...Start.
    A test for programs on the Mag tape we brought from KSC.
    I was IBM Guidance and Control.
    The beauty of this" Breadboard " was you couldn't damage anything there. !!
    Test and correct.

    • @keithtyler9372
      @keithtyler9372 Рік тому +1

      Guidance and Control.
      The Huntsville Techs were great and all we 3 from KSC ask for a configuration and it was done. We purchased time on the resources $2000 per hour . Returning with tapes to load and validate (QC) at KSC.

  • @mikemike7001
    @mikemike7001 2 роки тому

    I love the cross-referencing info in the listing. I wish I had known about this when I worked on an assembler and a compiler in the 1970's. They had comprehensive cross-reference listings, but now I wish I could go back and make them even better. And I wish modern compilers told you all of the things they know about your code that you don't.

  • @Hyperious_in_the_air
    @Hyperious_in_the_air 11 місяців тому +2

    I love the engineers that came up with the 1202 hack. They essentially strangled the CDU with an always-0 command to shut it up.

    • @CuriousMarc
      @CuriousMarc  11 місяців тому +1

      That’s exactly what they did. Mind you, it was not that easy to shut down the runaway CDU, as even turning off the rendez-vous radar (as they did as an emergency measure for the Moon lift-off) would not do the trick, and the fault is so convoluted that it would have been a major redesign to fix the hardware. Fortunately there was that little reset line connected to the AGC. That’s how the rest of the missions flew.

  • @MikeBramm
    @MikeBramm 4 роки тому +1

    Very interesting. I'm sure glad editing code is a LOT easier than it used to be.

  • @magomat6756
    @magomat6756 4 роки тому +31

    The technology goes so fast ,its not so long ago.i can remember al this.

    • @eightsprites
      @eightsprites 4 роки тому +2

      Knarf Sreirb I remember the tractor printers, had one at home when I was a kid.

    • @edgeeffect
      @edgeeffect 4 роки тому +3

      @@eightsprites "remember"? "Remember"?!? I've got one on my desk now.... hooked up to an ATMega. :)

    • @masar-at
      @masar-at 4 роки тому

      @@edgeeffect any video about it ?

    • @GodzillaGoesGaga
      @GodzillaGoesGaga 4 роки тому

      Agree. Technology and time go quickly. I have happy memories of the dot matrix brrrring away with my listings getting churned out on fanfold paper.

    • @teckyify
      @teckyify 4 роки тому

      Not really, it got fast then all low level stuff stayed the same.

  • @mancavemusician
    @mancavemusician 4 роки тому +1

    A piece of history saved, well done all at CuriousMarc

  • @DeanPickersgill
    @DeanPickersgill 4 роки тому

    Wow, haven't done any assembler for about 40 years but I can pick my way through some of this. Wow, thanks for the share!

  • @kippie80
    @kippie80 4 роки тому

    Thanks for sharing. Can't think of a better way to honour these achievements other than by simply knowing of them. Thanks again!

  • @johnvanantwerp2791
    @johnvanantwerp2791 4 роки тому +4

    When you were talking about the symbol table, you talked about the first page and last page number of the reference of a symbol, but didn't know what the middle number was. If I remember correctly the middle number was the page the symbol was defined on.

  • @catafest
    @catafest 4 роки тому +1

    wow ... this is awesome and good work of the programming team. Thank's for share.

  • @joshman1019
    @joshman1019 4 роки тому +1

    I would love to have Mike as a friend. I bet he is fascinating to talk to. I thought I was the only person that was this fascinated by software lol.

  • @joachim2464
    @joachim2464 2 роки тому

    The code references blew my mind. Amazing how just a piece of paper of code from 1969 can be similar to a modern IDE :)

  • @coriscotupi
    @coriscotupi 4 роки тому +13

    02:29 line 2062 - "EARTH SPHERE". Flerfers will shrug at that.

  • @rhymereason3449
    @rhymereason3449 Рік тому +2

    Brings back fond memories - IBM 360 BAL and PL/1 programs submitted by punch cards and printed on green bar paper on a 1401 with symbol tables in the back. We burned thru a lot of paper back then!

    • @CuriousMarc
      @CuriousMarc  Рік тому

      You’ve got to see my IBM 1401 videos! I have a playlist somewhere. Here: ua-cam.com/play/PL-_93BVApb5-F-M6WhZwwuQWpvo8LqAor.html

    • @armchairtin-kicker503
      @armchairtin-kicker503 Рік тому

      When I became a system support analyst in the early 1980s, it was my task to install the software for the installation's IBM 3800 laser printer. In terms of speed, comparing the 1401 to the 3800 is like comparing a Volkswagen beetle to a Ferrari F40.

    • @rhymereason3449
      @rhymereason3449 Рік тому

      @@armchairtin-kicker503 Yeah... that is one heck of a printer! I never had the opportunity to work in a shop where I could actually watch one of those things in person. I bet those things could make one heck of a paper jam!

  • @JOHNTHE8TH1
    @JOHNTHE8TH1 9 місяців тому

    Great to see this copy of the AGC program, thank you!

  • @albertteng1191
    @albertteng1191 Рік тому

    brings back a lot of memories when i was still working in a bank using an IBM mainframe. Compiling source code takes the time of a coffee break, then when its finished there would be an error becoz of a misplaced period. Grrrr

  • @YoutubeAdministrator
    @YoutubeAdministrator 4 роки тому +4

    This feel like alien technology. Simply amazing

  • @nobytes2
    @nobytes2 3 роки тому

    The way references are listed, that's how electrical drawings are. By using a letter in one plane and a number in another you can navigate the drawings back and forth. Is quite interesting that they used a similar system back then, I'd imagine someone with an electronic/electrical background came up with that idea.

  • @valerys.219
    @valerys.219 4 роки тому

    Thank you so much for this ; it's like studying DeVinci drawings but for passionate programmers. Really great.

  • @harmonicresonanceproject
    @harmonicresonanceproject 2 роки тому

    Loved this, thank you.

  • @astrojourneyuk
    @astrojourneyuk 2 роки тому

    A great video explaining how to read the ACG assembler code. Thank you!

  • @philipjosefarmer5740
    @philipjosefarmer5740 2 роки тому

    I really admire your work and your genius. I have used assembly language to program the 6502, the z80, the 6800 family, the 8051 family and some PICs, but that was just a couple of drops compared to the ocean of your work.

  • @Albertkallal
    @Albertkallal 4 роки тому

    At least these guys have the know how to restart the software and enable us to re-land on the Moon again!

  • @damientonkin
    @damientonkin 4 роки тому +8

    Well this explains that Margret Hamilton photo. (NASA Margret Hamilton, not wizard of oz Margret Hamilton).

  • @PeterdelCanal
    @PeterdelCanal Рік тому +1

    Viendolo.... Simplemente Es Espectacular..... muchas gracias....❤

  • @joanatadeusz5352
    @joanatadeusz5352 Рік тому +8

    This is real programming.
    Different than importing a 100MB library to make a LED blink.

    • @aiexzs
      @aiexzs Рік тому +2

      this is just every reddit and stack exchange user gatekeeping programming as their own, "reinvent the wheel" definition

  • @ffmfg
    @ffmfg 4 роки тому

    Fascinating is the only right word to use here. My personal note on the punch card numbers: it's interesting how this filtered out to the 70s and 80s with the higher level languages like BASIC. Remember lines 10, 20, 30? I was learning programming in the 80s and I remember how I was confused of why I had to track code line numbers and insert line 55 or whatever instead of computer letting me insert what I want where I want. But now it's pretty clear where the origin of that kind of line numbering was.

  • @douro20
    @douro20 4 роки тому +4

    This was most certainly printed on a 1403, a printer which had the longest production run of any printer IBM produced.

    • @RossNixon
      @RossNixon 4 роки тому +2

      The IBM 1403 was a very noisy printer. I worked shifts at a banking processing centre. We had several going nearly all night.

    • @nigelft
      @nigelft 4 роки тому

      @@RossNixon
      I maybe wrong, but I think my High School had 1403's, but were kept in those darkened glass, acoustic cabinets, with extra foam 'dampening'. Even so, those things were _loud_ , so it made sense to do all the printing at night, otherwise you'll need hearing protection, with half a dozen, or more, of those things going at once ...
      [Edit: wow, am I _stupid_ ...
      No, it definitely _wasn't_ a 1403 printer I was thinking of ...
      It was definitely a dot matrix, as it was way, way, smaller, and faster in printing ... still was made by IBM --- I think; could've been a Compaq --- but it was in a metal stand of it's own, with a brown translucent cover/lid. Still had 'eggshell' acoustic foam on the inside, and, iirc, fans for ventilation, as the only other slots were fot the paper input, and output, with the input stack on the lowest shelf, and output on the shelf just below the printer itself. Funny thing, even with the lid closed and the fans --- if it indeed had fans for cooling --- it was still pretty loud, even with the lid shut; almost as loud as a 'golfball' printer ...
      I can figure out what that printer could have been ... so any ideas ...
      ... and forgive me for a _really_ dumb mistake ...]