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

  Переглядів 537,754

CuriousMarc

CuriousMarc

День тому

Mike Stewart recently acquired an original source code listing of Apollo 12, that he had been working on for years. In this longish video, he gives us a glimpse of what's inside, including the software fix for the infamous 1202 errors that had plagued the Apollo 11 landing.
0:00 How we got the Apollo listings
2:45 How to read the assembly listings
16:50 Landing on the Moon with the P66 program
18:15 1202 error fix code added after Apollo 11
24:27 Version control in the 1960's
The scan of the listing has been made available to all right here, thanks to Mike's dedication and the Internet Archive:
archive.org/details/luminary1...
The clean, hand-recovered, checked and known-to-recompile code derived from this listing is available here, also the master work of Mike Stewart:
www.ibiblio.org/apollo/listin...
Here is a link to the installation instructions of the unmodified Orbiter/NASSP software, which flies with the original code:
www.orbiter-forum.com/showthr...
Our sponsor for PCBs: www.pcbway.com
Support the team on Patreon: / curiousmarc
Buy shirts on Teespring: teespring.com/stores/curiousm...
Learn more on the companion site: www.curiousmarc.com
Contact info: ukposts.infoa...

КОМЕНТАРІ: 553
@scowell
@scowell 4 роки тому
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 роки тому
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: ukposts.info/have/v-deo/cZmSqoF5m4aglYk.html.
@mikestewart8928
@mikestewart8928 4 роки тому
@@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 роки тому
@@mikestewart8928 Oh, oops, monumental fail. Glad you are here Mike.
@Nidge2013
@Nidge2013 3 роки тому
@@CuriousMarc 1q
@spacedmanspiff1543
@spacedmanspiff1543 2 роки тому
@@CuriousMarc ahhh well it happens.....now crank that silly thing around !!!
@squidkid2
@squidkid2 2 роки тому
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 Рік тому
Brasil - sério? Bacana
@JuliusWise
@JuliusWise 11 місяців тому
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 11 місяців тому
@@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 11 місяців тому
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 11 місяців тому
@@squidkid2 brother, am Brasil, e fico feliz em conseguir lhe entender
@keithtyler9372
@keithtyler9372 6 місяців тому
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 6 місяців тому
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 6 місяців тому
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 6 місяців тому
I must close Marc. Too lengthy
@CuriousMarc
@CuriousMarc 6 місяців тому
@@keithtyler9372 Ah, booster guidance then. For the IBM LVDC computer. Thanks for the details!
@keithtyler9372
@keithtyler9372 4 місяці тому
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 роки тому
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!
@hoofie2002
@hoofie2002 4 роки тому
Absolutely - so much information and history in that one printout.
@nielsdegroot9138
@nielsdegroot9138 4 роки тому
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 роки тому
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 роки тому
Very true. After all, real men wire wrap and real women weave!
@lenpalmeri6228
@lenpalmeri6228 3 роки тому
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.
@charlestonyank2067
@charlestonyank2067 4 роки тому
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.
@thesillyhatday
@thesillyhatday 4 роки тому
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 роки тому
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 роки тому
@@CuriousMarc Of course, I forgot about the emulators you spent ages repairing!. I need to watch the restoration once again. Silly me.
@twiff3rino28
@twiff3rino28 4 місяці тому
Now we can't update an app without breaking the UI 💀
@aydenlokey3641
@aydenlokey3641 Місяць тому
Not to mention they did it all in assembly too! Absolutely mind-boggling
@RevMikeBlack
@RevMikeBlack Рік тому
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.
@baxtermullins1842
@baxtermullins1842 6 місяців тому
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.
@John_L
@John_L 4 роки тому
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 3 роки тому
@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
@badguy1481
@badguy1481 2 роки тому
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 9 місяців тому
It is modern archeology. Tracing back an acient language. Very well done.
@nic_earrings
@nic_earrings 9 місяців тому
Is your work publicly available?
@ChrisM541
@ChrisM541 7 місяців тому
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 6 місяців тому
@@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
@rjy8960
@rjy8960 4 роки тому
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 роки тому
@@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...
@pentachronic
@pentachronic 3 роки тому
Same here Bro'. I'm a year older than you. Still love assembler!
@James_Bowie
@James_Bowie 4 роки тому
Assembly code with comments. Amazing.
@lineshaftrestorations7903
@lineshaftrestorations7903 3 роки тому
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.
@jabbawok944
@jabbawok944 4 роки тому
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 роки тому
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 роки тому
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 роки тому
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.
@pentachronic
@pentachronic 3 роки тому
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.
@gregdaweson4657
@gregdaweson4657 Рік тому
Sadly, computers have made elegant coding unnecessary.
@buenaventuralife
@buenaventuralife 4 роки тому
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.
@nemesi8800
@nemesi8800 8 місяців тому
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.
@kbates666
@kbates666 4 роки тому
Its so cool to see the exact changes the programmers made to fix 1202. Love your videos, thanks for sharing.
@yellowlynx
@yellowlynx 4 місяці тому
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.
@Capt.Turner
@Capt.Turner Рік тому
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 !
@chrisforeman5745
@chrisforeman5745 3 роки тому
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.
@fredflintstone8048
@fredflintstone8048 4 роки тому
Mike's depth of knowledge is amazing, same with Ken.
@phomchick
@phomchick 4 роки тому
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.
@macboy91si
@macboy91si 4 роки тому
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!
@wktodd
@wktodd 4 роки тому
Fantastic! Love Mike's enthusiasm for this stuff.
@72polara
@72polara 4 роки тому
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.
@tradingwizard562
@tradingwizard562 5 місяців тому
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 .
@LauwersFreddy
@LauwersFreddy 4 роки тому
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
@ThomasGabrielsen
@ThomasGabrielsen Рік тому
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!
@mathgeek7966
@mathgeek7966 6 місяців тому
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!
@paulromsky9527
@paulromsky9527 Рік тому
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.
@dr.strangelove5622
@dr.strangelove5622 4 роки тому
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!!
@asher05
@asher05 4 місяці тому
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...
@hamishgrove7722
@hamishgrove7722 4 роки тому
Wow what a fantastic explanation of the way that the code went together thank you.
@asimms65
@asimms65 10 місяців тому
Thanks for deep diving all things Apollo especially the AGC. This has always fascinated me.
@CuriousMarc
@CuriousMarc 10 місяців тому
Thanks for the support!
@hoofie2002
@hoofie2002 4 роки тому
Absolutely fascinating yet again. So much information even in each line.
@sergeybabkin9614
@sergeybabkin9614 4 роки тому
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.
@mikefochtman7164
@mikefochtman7164 8 місяців тому
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.
@trex70
@trex70 10 місяців тому
A nice piece of real History. Thank you all for showing it to us.
@williamskiba6786
@williamskiba6786 2 роки тому
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"
@AdrianChallinor
@AdrianChallinor 4 роки тому
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!
@UpcycleElectronics
@UpcycleElectronics 4 роки тому
You guys aren't just sharing with the geeks, you're making them. Thanks for sharing! -Jake
@pokerandphilosophy8328
@pokerandphilosophy8328 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.
@user-vm1hi7bo5s
@user-vm1hi7bo5s 7 місяців тому
I love that code isn't some kind of a top secret documentation and we able to dive into and appreciate it.
@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!!
@AlainHubert
@AlainHubert 4 роки тому
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...
@raymitchell9736
@raymitchell9736 4 роки тому
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 роки тому
Mike is the today,s Don.
@CuriousMarc
@CuriousMarc 4 роки тому
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.
@mimsnshine
@mimsnshine 10 місяців тому
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.
@alpcns
@alpcns 4 роки тому
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 роки тому
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 роки тому
Major consumer operating systems are closed and bloated to maintain demand for better hardware. It's a swamp...
@user2C47
@user2C47 4 роки тому
@@manuell3505 That's why Linux is so popular.
@AdrianChallinor
@AdrianChallinor 4 роки тому
@@LubosMudrak An up vote for Rust!
@digiowl9599
@digiowl9599 4 роки тому
@@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.
@garyhoffmann1615
@garyhoffmann1615 4 роки тому
That code deserves to be etched into concrete, not only nerdy computer history but a huge part of the history of humanity.
@nigelft
@nigelft 3 роки тому
Even concrete (depending on the mix) weathers, so something tougher than that would be neded ... But definitely ...
@garyhoffmann1615
@garyhoffmann1615 3 роки тому
@@nigelft The Romans made concrete that is still standing today.
@InquisitorMatthewAshcraft
@InquisitorMatthewAshcraft 3 роки тому
@@nigelft Portland cement, or hydraulic concrete.
@mitfreundlichengrussen1234
@mitfreundlichengrussen1234 4 роки тому
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.
@simonlyons5681
@simonlyons5681 4 роки тому
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.
@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!
@rustywidebottom4678
@rustywidebottom4678 4 роки тому
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.
@And_Rec
@And_Rec 8 місяців тому
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! ❤
@tekvax01
@tekvax01 4 роки тому
So very interesting! Thank you for spending the time to explain this!
@DeanPickersgill
@DeanPickersgill 3 роки тому
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!
@catafest
@catafest 3 роки тому
wow ... this is awesome and good work of the programming team. Thank's for share.
@astrojourneyuk
@astrojourneyuk 2 роки тому
A great video explaining how to read the ACG assembler code. Thank you!
@rrl4245
@rrl4245 3 роки тому
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!!!
@paulcushing8663
@paulcushing8663 4 роки тому
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 роки тому
Oh awesome! It sure does. P/N 6966000-6, S/N 308.
@paulcushing8663
@paulcushing8663 4 роки тому
@@mikestewart8928 can you tell me where they bought it from? I am amazed that it was out in the wild.
@paulcushing8663
@paulcushing8663 4 роки тому
@@mikestewart8928 Ah, it is a pre-production unit. A lot like the actual flight computers but not quite the same.
@mikestewart8928
@mikestewart8928 4 роки тому
@@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 3 роки тому
@@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!
@twostickes
@twostickes 4 роки тому
"FIX IT IN sOFTWARE!". and still happens even now for us bare metal guys! Love this listing!!
@valerys.219
@valerys.219 3 роки тому
Thank you so much for this ; it's like studying DeVinci drawings but for passionate programmers. Really great.
@brocktechnology
@brocktechnology 4 роки тому
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 роки тому
That picture is heartbreaking, haha. If only that stack of listings still existed...
@JOHNTHE8TH1
@JOHNTHE8TH1 Місяць тому
Great to see this copy of the AGC program, thank you!
@mikematkovic8733
@mikematkovic8733 4 роки тому
Truly amazing stuff. Thanks for sharing !!
@lwilton
@lwilton 4 роки тому
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 роки тому
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.
@RussellRiker
@RussellRiker 4 роки тому
Great work Marc. Thank you for sharing.
@grantechsweng5268
@grantechsweng5268 3 роки тому
Octal I wrote assembler back in 1985. wow brings back memories. I worked on the pre-internet. And Fortran.
@johndododoe1411
@johndododoe1411 2 роки тому
The x86 instruction set makes more sense in octal, but is documented and used in hex.
@ProPatriaRO
@ProPatriaRO 3 роки тому
The amount of work that went into that code...
@adampatterson
@adampatterson Рік тому
Absolutely incredible how these systems were made. Todays stuff is just neat.
@eightsprites
@eightsprites 4 роки тому
Thanks! I really enjoyed this episode.
@CebolaDeLed
@CebolaDeLed 8 місяців тому
Respect old developer... ✌️💙
@MikeBramm
@MikeBramm 4 роки тому
Very interesting. I'm sure glad editing code is a LOT easier than it used to be.
@cowboyfrankspersonalvideos8869
@cowboyfrankspersonalvideos8869 4 роки тому
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 роки тому
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!
@rasberrycast
@rasberrycast 4 роки тому
A fantastic insight into NASA documentation. Thank you for your upload.
@didierluthi
@didierluthi 4 роки тому
Incredible video, thanks for sharing!
@mancavemusician
@mancavemusician 3 роки тому
A piece of history saved, well done all at CuriousMarc
@SammYLightfooD
@SammYLightfooD 10 місяців тому
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!
@dosgos
@dosgos 4 роки тому
Awesome narrative; learned a lot! My grandfather programmed with these systems.
@ScienceAppliedForGood
@ScienceAppliedForGood 4 роки тому
Keep on doing a great job guys!
@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.
@Astroponicist
@Astroponicist 8 місяців тому
it would be fantastic to have a movie made with attention to the things that your group and others have found.
@jonny__b
@jonny__b 3 роки тому
Ken is the funniest, his quips make my day
@joshman1019
@joshman1019 4 роки тому
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.
@sbalogh53
@sbalogh53 Рік тому
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.
@PeterdelCanal
@PeterdelCanal 7 місяців тому
Viendolo.... Simplemente Es Espectacular..... muchas gracias....❤
@albertteng1191
@albertteng1191 8 місяців тому
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
@mikemike7001
@mikemike7001 Рік тому
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.
@devrim-oguz
@devrim-oguz 4 роки тому
Long time no see!!!
@YoutubeAdministrator
@YoutubeAdministrator 4 роки тому
This feel like alien technology. Simply amazing
@G3PWP
@G3PWP Рік тому
Thank you for this its so interesting keep up the good work
@johnvanantwerp2791
@johnvanantwerp2791 3 роки тому
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.
@rty1955
@rty1955 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
@rhymereason3449
@rhymereason3449 10 місяців тому
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 10 місяців тому
You’ve got to see my IBM 1401 videos! I have a playlist somewhere. Here: ukposts.info/slow/PL-_93BVApb5-F-M6WhZwwuQWpvo8LqAor
@armchairtin-kicker503
@armchairtin-kicker503 7 місяців тому
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 7 місяців тому
@@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!
@Hyperious_in_the_air
@Hyperious_in_the_air 3 місяці тому
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 3 місяці тому
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.
@staglomagnifico5711
@staglomagnifico5711 4 роки тому
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."
@javierguardiola7122
@javierguardiola7122 3 роки тому
r/adeptusmechanicus
@harmonicresonanceproject
@harmonicresonanceproject Рік тому
Loved this, thank you.
@Albertkallal
@Albertkallal 3 роки тому
At least these guys have the know how to restart the software and enable us to re-land on the Moon again!
@Maescool
@Maescool 3 роки тому
Mike seems an amazing guy, I'd like to meet him one day.
Apollo Core Rope Memory (Apollo Guidance Computer Part 30)
49:03
CuriousMarc
Переглядів 467 тис.
Кровосток - разговор с легендами / вДудь
2:12:57
How did NASA Steer the Saturn V?- Smarter Every Day 223
14:21
SmarterEveryDay
Переглядів 5 млн
What was Coding like 40 years ago?
29:05
The Coding Train
Переглядів 1,6 млн
Inside the WILD Lab of CuriousMarc
18:18
Keysight Labs
Переглядів 101 тис.
The Real Story Behind the Apollo 11 Computer Error | WSJ
7:18
The Wall Street Journal
Переглядів 2,1 млн
Light Years Ahead | The 1969 Apollo Guidance Computer
1:21:22
TNMoC
Переглядів 2,4 млн
The Gigatron TTL Computer without a Microprocessor
12:16
The 8-Bit Guy
Переглядів 2,5 млн
Fast Inverse Square Root - A Quake III Algorithm
20:08
Nemean
Переглядів 4,8 млн
MIT Science Reporter-"Computer for Apollo" (1965)
29:21
From the Vault of MIT
Переглядів 934 тис.
We attend the Vintage Computer Festival (VCF East 2024)
15:41
CuriousMarc
Переглядів 33 тис.
Такого вы точно не видели #SonyEricsson #MPF10 #K700
0:19
BenJi Mobile Channel
Переглядів 261 тис.
ИГРОВОЙ ПК c WILDBERRIES за 40 тысяч рублей
30:17
Ремонтяш
Переглядів 483 тис.
Как открыть дверь в Jaecoo J8? Удобно?🤔😊
0:27
Суворкин Сергей
Переглядів 752 тис.
Vortex Cannon vs Drone
20:44
Mark Rober
Переглядів 11 млн