Status: Tags: Links: Nand2Tetris Unit 6
Nand2Tetris Project 6
Goal
Create an assembler that translates assembly code into machine language
Classes
Parser
- Unpacks each instruction into its underlying fields
Code
- Translates each field into its corresponding binary value
SymbolTable
- Manages the symbol table
Main
- Initializes I/O files, drives process
Suggestions
Development
- Develop a basic assembler that works without symbols
- Test it
- Develop an ability to handle symbols
- Test it
- Morph into an assembler that can translate any assembly program
- Refer to supplied test program
- L = less symbols
- Refer to supplied test program
Testing
- Use the assembler to translate .asm file into .hack
- Load .hack into one of the following:
- Hardware Simulator
- CPU Emulator
- Assembler
- Compare translated code into our own
References: