ADDRESSING MODES

6. 5 ADDRESSING MODES

The addressing mode is a way of specifying an operand or pointing to a data location. The Z80 microprocessor has ten addressing modes, as shown in Table 6.1. The first three are explained here as illustrations, and the others will be explained in later chapters.

In Section 6.2.2, we listed various categories of data copy operations. Data can be loaded directly into registers (or memory), or they can be copied from registers and memory, including I/O ports. Here are the addressing modes of these data copy operations.

z80 Interfacing and programming-5_03

At this point, you are unfamiliar with the instruction types; therefore, you should avoid the details of the addressing modes given in Table 6.1. As we begin to use various instructions in following chapters, we will discuss the appropriate addressing modes. As you become more familiar with the instruction set, you will be able to choose an appropriate addressing mode for a given task.

Leave a comment

Your email address will not be published. Required fields are marked *