Checkout the source code for the Apollo moon mission
Resharing a link I discovered through the Adafruit blog…
The AGC’s source code is an excellent example of organising a large and complex codebase. Written in an assembly language, the code is impressively well-structured. Tasks are split into separate modules and routines for better maintainability, a practice that is even more vital in today’s complex software projects.
https://www.bytelimes.com/what-we-can-learn-from-the-code-that-took-us-to-the-moon/