Types of Addressing Modes
5-3C28x Addressing Modes
An example C28x instruction description, which uses the above, would be:
- ADD AL,loc16
Take the 16-bit contents of AL register, add the contents of 16-bit location
specified by the ”loc16” field and store the contents in AL register.
- ADDL loc32,ACC
Take the 32-bit contents of the location pointed to by the ”loc32” field, add
the contents of the 32-bit ACC register, and store the result back into the
location specified by the ”loc32” field.
Other types of addressing modes supported are:
- Data/Program/IO Space Immediate Addressing Modes:
In this mode, the address of the memory operand is embedded in the in-
struction.
- Program Space Indirect Addressing Modes:
Some instructions can access a memory operand located in program
space using an indirect pointer. Since memory is unified on the C28x CPU,
this enables the reading of two operands in a single cycle.
Only a small number of instructions use the above modes and typically they
are in combination with the ”loc16/loc32” modes.
The following sections contain detailed descriptions of the addressing modes
with example instructions. For more information about the instructions shown
in examples throughout this chapter, see Chapter 6, Assembly Language In-
structions.