8

Simulators for Other Architectures

In this chapter, you will learn how to create simulators for different instruction set architectures, for example, the stack-based computer and the classic CISC.

After describing a simple stack-based calculator, TC0, we will introduce a simulator for a one-address format. Most operations take place between an accumulator (i.e., register) and the contents of a memory location; for example, ADD Y means add the contents of memory location Y to the accumulator. The term accumulator indicates the location where the result of an addition is accumulated. Early microprocessors lacked room on the silicon chip for multiple registers, and all data had to pass through one or two accumulators.

After that, we will simulate ...

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.