6

Instruction set and code assembly

In designing the hardware of the G80 we have noted a few instructions that it must be able to perform. In this chapter we introduce other useful instructions together with different addressing modes. We also see how these instructions, written in assembly language, can be converted to the 0s and 1s that will be stored in the computer memory. We do this initially by hand and then use a software tool called an assembler. By using the simulator software, we watch the activity of the G80 as it executes a program.

6.1 Programmer’s model

The G80 microprocessor contains several registers that are accessible to the programmer. In order to write programs for it we must be aware of these registers; we have to keep ...

Get Embedded Systems and Computer Architecture 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.