|
When I first did this project I hand assembled the project files. Easy enough.
But now I looked at it again, and started writing, in bash.
I have a parser script that removes all formatting and comment, using a lot of sed. This script also replace the predefined symbols with their numeric values
And I have a linker that reads each line of the parsed file, extracting all labels and getting all variables, before linking each to their numeric values (first pass)
The output of these two scripts are almost identical to the ProgL.asm files provided in the project. The difference being that the linker links variables to different locations compared to the provided assembler.
Next will be to make the assembler to produce hack files. (second pass)
Aetesaki
|