6
TC1 Assembler and Simulator Design
In this chapter, we will put together the lessons we have learned in previous chapters and construct a computer simulator. The key topics we will cover in this chapter are as follows:
- Analyzing instructions
- Dealing with assembler directives
- Building the binary instruction
- The pre-TC1 (a prequel to the actual simulator)
- The TC1 simulator program
- A TC1 assembly language program
- TC1 postscript
By the end of this chapter, you should understand how a simulator is designed and be able to create one. The following two chapters concentrate on expanding the simulator and providing more facilities, such as error detection in the input.