3 ms·
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 c
by PaulHoule 2y ago
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.
There is a nice image of such a notebook here
https://www.quora.com/What-is-the-real-purpose-of-graph-paper-notebooks 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.