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.
Technical requirements
You can find the programs used in this chapter on GitHub ...
Get Computer Architecture with Python and ARM now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.