Re:Ask HN: How did people code entire machine language progr...
by PaulHoule on Thursday August 29, 2024 @09:37AM
(#41390671)
You get a piece of graph paper and do exactly what the assembler would do by hand.
First you write the program out in assembly language instructions then you convert individual instructions and keep track of the program counter on the left hand side, you will have to leave space for the operands of forward jumps because you don't know what that address will be be. Then you go back and fill them in. Easy-peasy.
First you write the program out in assembly language instructions then you convert individual instructions and keep track of the program counter on the left hand side, you will have to leave space for the operands of forward jumps because you don't know what that address will be be. Then you go back and fill them in. Easy-peasy.
There is a nice image of such a notebook here
https://www.quora.com/What-is-the-real-purpose-of-graph-pape...
which looks exactly like the listing output of an assembler because it is.