Administrator
|
I also don't see anything mentioned in the web materials, but they haven't yet been updated for the 2nd Edition. I don't know what the time table for that is.
However, assembling a program with pencil and paper is very straight-forward and will really help you understand what your assembler program must do.
Follow the same implementation steps that are in the text, just do the actual work on a piece of paper.
The Basic Assembler has no symbols in it, so you can focus on just understanding how to convert each instruction into the proper strings of 1s and 0s based solely on what is there for each instruction. Start with the A-type instructions and then move to the C-type instructions.
Once you are comfortable with that, the next thing is to add support for labels. Once that is working, add support for variables. Finally, consider how you would deal with comments in the source code and also the various spacings that people might employ to make their code more readable.
|