Operand addressing, Ee the – Zilog Z16F2810 User Manual
Page 43

UM018809-0611
Operand Addressing
ZNEO
®
CPU Core
User Manual
27
Operand Addressing
Most ZNEO CPU instructions operate on one or two registers, or one register and one
memory address. Operands following the instruction specify which register or memory
address to use.
Example.
The assembly language statement below loads one 32-bit register with data
from another:
LD R7, R8
The first operand almost always specifies the destination, and the second operand (if any)
specifies the source for the operation. In this example, the R7 register is loaded with the
value from R8 register.
There are four kinds of operand addressing, each of which is described in this chapter:
•
Immediate Data, in which the value specified by the operand is used for operation.
•
Register Addressing, in which the specified 32-bit register is used for operation.
•
Direct Memory Addressing, in which the value specified by the operand addresses a
memory location that is used for the operation. This section introduces the following
topics:
–
–
These topics also apply to Register-Indirect memory addressing.
•
Register-Indirect Memory Addressing, in which the specified 32-bit register and
optional offset point to a memory location that is used for the operation. This section
covers the following topics specific to register-indirect addressing:
–
–
Using the Program Counter as a Base Address
–
Memory Address Decrement and Increment
–
–
This chapter also describes