11

ARM Addressing Modes

Addressing modes are a fundamental part of computer architecture and are concerned with how you express the location of an operand. We introduced addressing modes in earlier chapters. Now, we will examine the ARM’s rather sophisticated set of addressing modes.

The topics to be discussed are as follows:

  • Literal addressing
  • Scaled literals
  • Register indirect addressing
  • The use of two-pointer registers
  • Auto-incrementing pointers

Literal addressing

The easiest addressing mode is literal addressing. Instead of saying where an operand is in memory, you provide the operand in an instruction (i.e., this is literally the value). Other addressing modes require you to specify where an operand is in memory. Consider the following ...

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.